Answers for "telethon invite to group"

1

telethon invite to group

# 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'))
Posted by: Guest on October-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language