Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
297 B
8
Indexable
Never
from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.messages.GetCommonChatsRequest(
        user_id='username',
        max_id=0,
        limit=100
    ))
    print(result.stringify())