Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'auto_load.php';
- include 'vendor/autoload.php';
- use Telegram\Bot\Api;
- $telegram = new Api('812490224:AAGDC-Jv4LzQcfxd4vc1UQCaq1DE8ZKl7II');
- $result = $telegram->getWebhookUpdates();
- $chat_id = $result["message"]["chat"]["id"];
- $text = $result["message"]["text"];
- $telegram->sendMessage(['chat_id' => $chat_id, 'text' => $text . 'Ρ ΡΠΉ']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement