Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from telethon import TelegramClient, events
- from telethon.sync import TelegramClient
- from telethon import functions, types
- api_id = ...
- api_hash = ...
- client = TelegramClient('me', api_id, api_hash)
- @client.on(events.NewMessage(outgoing=True, pattern='\.nq'))
- async def nq(event):
- result = await client(functions.messages.StartBotRequest(
- bot='NitroSeenEnBot',
- peer='NitroSeenEnBot',
- start_param='6471521244'
- ))
- print(result.stringify())
- client.start()
- client.run_until_disconnected()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement