Dolban1337

Untitled

Aug 18th, 2020
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. from pyrogram import Client, Filters
  2.  
  3. app = Client("my_account")
  4.  
  5.  
  6.  
  7. @app.on_message(Filters.text & Filters.private)
  8. def echo(client, message):
  9.     f = open('id.txt', 'rb')
  10.     for i in str(f.readlines()):
  11.         app.send_message(i, message.text)
  12.         print(message.chat.id)
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. app.run()
Advertisement
Add Comment
Please, Sign In to add comment