libtd-ktx / kotlinx.telegram.coroutines / generateChatInviteLink
generateChatInviteLink
suspend fun
TelegramFlow
.generateChatInviteLink(chatId:
Long
):
ChatInviteLink
Suspend function, which generates a new invite link for a chat; the previously generated link is revoked. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right.
Parameters
chatId
- Chat identifier.
Return ChatInviteLink Contains a chat invite link.