【发布时间】:2021-01-12 17:29:11
【问题描述】:
以下代码用于加入电报组:
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.messages.ImportChatInviteRequest(
hash='A4LmkR23G0IGxBE71zZfo1'
))
print(result.stringify())
工作完成后如何离开那个小组?
【问题讨论】:
标签: python telegram telethon telegram-api