Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pyrogram import Client, Filters
- app = Client("my_account")
- @app.on_message(Filters.text & Filters.private)
- def echo(client, message):
- text = open('text.txt', 'r').readline()
- f = open('id.txt', 'rb')
- try:
- for i in f.readlines():
- print(i.decode())
- app.send_message(i.decode(), text)
- print(message.chat.id)
- except:
- pass
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment