K0
Size: a a a
K0
AS
r
m
NK
from telethon.sync import TelegramClient, events
with TelegramClient('name', api_id, api_hash) as client:
client.send_message('me', 'Hello, myself!')
print(client.download_profile_photo('me'))
@client.on(events.NewMessage(pattern='(?i).*Hello'))
async def handler(event):
await event.reply('Hey!')
print(client.chat.id)
client.run_until_disconnected()
NK
NK
NK
NK
K0
r
K0
️️
K0
r
️️
️️
r
K0
️️