Dolban1337

Untitled

Aug 18th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 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.     text = open('text.txt', 'r').readline()
  10.     f = open('id.txt', 'rb')
  11.     try:
  12.         for i in f.readlines():
  13.             print(i.decode())
  14.             app.send_message(i.decode(), text)
  15.             print(message.chat.id)
  16.     except:
  17.         pass
  18.  
  19.  
  20.  
  21. app.run()
Advertisement
Add Comment
Please, Sign In to add comment