📅  最后修改于: 2022-03-11 14:46:37.544000             🧑  作者: Mango
# 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'))