📜  Telethon 邀请加入群组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:37.544000             🧑  作者: Mango

代码示例1
# public chat
from telethon.tl.functions.channels import JoinChannelRequest
await client(JoinChannelRequest(channel))

# private chat
from telethon.tl.functions.messages import ImportChatInviteRequest
updates = await client(ImportChatInviteRequest('AAAAAEHbEkejzxUjAUCfYg'))