libtd-ktx / kotlinx.telegram.coroutines / joinChatByInviteLink
joinChatByInviteLink
suspend fun
TelegramFlow
.joinChatByInviteLink(inviteLink:
String
?):
Chat
Suspend function, which uses an invite link to add the current user to the chat if possible. The new member will not be added until the chat state has been synchronized with the server.
Parameters
inviteLink
- Invite link to import; should begin with "https://t.me/joinchat/",
"https://telegram.me/joinchat/", or "https://telegram.dog/joinchat/".
Return Chat A chat. (Can be a private chat, basic group, supergroup, or secret chat.)