Dolban1337

Untitled

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