SHARE
TWEET

Untitled

a guest Jun 25th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 . 'хуй']);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top