1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-01 23:45:25 +00:00
tgbotapi/TelegramBotAPI-extensions-api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/chat/ExportChatInviteLink.kt

15 lines
569 B
Kotlin
Raw Normal View History

package dev.inmo.tgbotapi.extensions.api.chat
2020-02-15 09:33:04 +00:00
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
2020-02-15 09:33:04 +00:00
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 TelegramBot.exportChatInviteLink(
2020-02-15 09:33:04 +00:00
chatId: ChatIdentifier
) = execute(ExportChatInviteLink(chatId))
suspend fun TelegramBot.exportChatInviteLink(
2020-02-15 09:33:04 +00:00
chat: PublicChat
) = exportChatInviteLink(chat.id)