Advertisement
disk6969

bin

Oct 11th, 2023 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. from telethon import TelegramClient, events
  2. from telethon.sync import TelegramClient
  3. from telethon import functions, types
  4.  
  5. api_id = ...
  6. api_hash = ...
  7.  
  8. client = TelegramClient('me', api_id, api_hash)
  9.  
  10. @client.on(events.NewMessage(outgoing=True, pattern='\.nq'))
  11. async def nq(event):
  12.     result = await client(functions.messages.StartBotRequest(
  13.         bot='NitroSeenEnBot',
  14.         peer='NitroSeenEnBot',
  15.         start_param='6471521244'
  16.     ))
  17.     print(result.stringify())
  18.  
  19. client.start()
  20. client.run_until_disconnected()
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement