Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. include 'auto_load.php';
  5. include 'vendor/autoload.php';
  6.  
  7. use Telegram\Bot\Api;
  8.  
  9. $telegram = new Api('812490224:AAGDC-Jv4LzQcfxd4vc1UQCaq1DE8ZKl7II');
  10. $result = $telegram->getWebhookUpdates();
  11.  
  12. $chat_id = $result["message"]["chat"]["id"];
  13. $text = $result["message"]["text"];
  14. $telegram->sendMessage(['chat_id' => $chat_id, 'text' => $text . 'Ρ…ΡƒΠΉ']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement