Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. if($msg and $chatID == "-1001097357345")
  2. {
  3. $utenti = scandir("utenti");
  4. foreach($utenti as $to)
  5. {
  6. fm($to, $chatID, $msgID);
  7. }
  8. }
  9.  
  10. $msgID = $update["message"]["message_id"];
  11.  
  12. function fm($utenti, $chatID, $msgID)
  13. {
  14. global $api;
  15. $args = array(
  16. 'chat_id' => $chatID,
  17. 'from_chat_id' => $utenti,
  18. 'message_id' => $msgID
  19. );
  20. $r = new HttpRequest("get", "https://api.telegram.org/$api/forwardMessage", $args);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement