mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
15 lines
609 B
Kotlin
15 lines
609 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.chat
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.RequestsExecutor
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.chat.ExportChatInviteLink
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatIdentifier
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.PublicChat
|
||
|
|
||
|
suspend fun RequestsExecutor.exportChatInviteLink(
|
||
|
chatId: ChatIdentifier
|
||
|
) = execute(ExportChatInviteLink(chatId))
|
||
|
|
||
|
suspend fun RequestsExecutor.exportChatInviteLink(
|
||
|
chat: PublicChat
|
||
|
) = exportChatInviteLink(chat.id)
|