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