кредит тек 2025 бот орігінвд 17 кнопкок
$userId,
"min_api_version" => 7,
"sender" => [
"name" => "My7ViberBot",
"avatar" => "https://example.com/avatar.jpg"
],
"type" => "text",
"text" => $text,
"keyboard" => [
"Type" => "keyboard",
"InputFieldState" => "hidden",
"Buttons" => [
[
"Columns" => 2,
"Rows" => 1,
"Text" => "Dodam 12000грн. Активувати💸👉💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/jsk61c8788c12e3c",
"BgColor" => "#8B0000",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "MyCredit 18000грн. Активувати💸👉💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/j2p61cc92d94853c",
"BgColor" => "#008000",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "Швидка фін. допомога Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://minizaim.com.ua/v/5ewfl",
"BgColor" => "#ffff00",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "Avans 30000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/k9563a72595633e0",
"BgColor" => "#3388dd",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "Credit7 15000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/j2i61cc904add72c",
"BgColor" => "#ffff00",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "Tengo 15000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/jir634a75038c7f5",
"BgColor" => "#cc7722",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "Creditplus 20000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/j2t61d6e706cd5bd",
"BgColor" => "#DAA520",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "ШвидкоГроші 50000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/j9l62c85cb78099b",
"BgColor" => "#0000FF",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "MILOAN 15000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/j2j634a7534509f3",
"BgColor" => "#BA55D3",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "MILOAN 15000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/j2j634a7534509f3",
"BgColor" => "#DC143C",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "CreditKasa 55000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/j4a62dae961cc16b",
"BgColor" => "#FF1493",
"OpenURLType" => "internal"
],
[
"Columns" => 2,
"Rows" => 1,
"Text" => "Moneyveo 35000грн. Активувати💸👉",
"ActionType" => "open-url",
"ActionBody" => "https://tds.pdl-profit.com/h/j2v61cc77c69ec32",
"BgColor" => "#79ff00",
"OpenURLType" => "internal"
]
]
]
];
$ch = curl_init("https://chatapi.viber.com/pa/send_message");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($messageData));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"X-Viber-Auth-Token: " . $authToken
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
file_put_contents("log.txt", "Response: " . $response . "\n", FILE_APPEND);
}
http_response_code(200);
?>