Advertisement
N3ll4

Untitled

Sep 24th, 2023
839
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. import telethon
  2. import asyncio
  3. import time
  4. from telethon import TelegramClient, sync
  5. from telethon.sync import TelegramClient, events
  6. my.telegram.org
  7. api_id =
  8. api_hash = ''
  9.  
  10. message = '<fΓΌge Text ein>'
  11.  
  12. client = TelegramClient('bebra', api_id, api_hash)
  13. client.start()
  14. print(client.get_me().stringify())
  15. print('Account is valid')
  16. @client.on(events.NewMessage)
  17. async def handler(event):
  18.     time.sleep(3)
  19.     await event.reply(message)
  20.     time.sleep(10)
  21. client.run_until_disconnected()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement