Untitled

 avatar
unknown
python
3 years ago
297 B
13
Indexable
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())
Editor is loading...