mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-26 03:28:10 +00:00
27 lines
810 B
Kotlin
27 lines
810 B
Kotlin
|
package dev.inmo.tgbotapi.extensions.api.chat.members
|
||
|
|
||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||
|
import dev.inmo.tgbotapi.requests.chat.members.*
|
||
|
import dev.inmo.tgbotapi.types.*
|
||
|
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
|
||
|
|
||
|
suspend fun TelegramBot.unbanChatSenderChat(
|
||
|
chatId: ChatIdentifier,
|
||
|
senderChatId: ChatId
|
||
|
) = execute(UnbanChatSenderChat(chatId, senderChatId))
|
||
|
|
||
|
suspend fun TelegramBot.unbanChatSenderChat(
|
||
|
chat: PublicChat,
|
||
|
senderChatId: ChatId
|
||
|
) = unbanChatSenderChat(chat.id, senderChatId)
|
||
|
|
||
|
suspend fun TelegramBot.unbanChatSenderChat(
|
||
|
chatId: ChatId,
|
||
|
senderChat: PublicChat
|
||
|
) = unbanChatSenderChat(chatId, senderChat.id)
|
||
|
|
||
|
suspend fun TelegramBot.unbanChatSenderChat(
|
||
|
chat: PublicChat,
|
||
|
senderChat: PublicChat,
|
||
|
) = unbanChatSenderChat(chat.id, senderChat)
|