2021-12-10 06:49:13 +00:00
|
|
|
package dev.inmo.tgbotapi.extensions.api.chat.members
|
|
|
|
|
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
|
|
|
import dev.inmo.tgbotapi.requests.chat.members.BanChatSenderChat
|
|
|
|
import dev.inmo.tgbotapi.types.*
|
2022-04-21 18:16:41 +00:00
|
|
|
import dev.inmo.tgbotapi.types.chat.PublicChat
|
2021-12-10 06:49:13 +00:00
|
|
|
|
|
|
|
suspend fun TelegramBot.banChatSenderChat(
|
|
|
|
chatId: ChatIdentifier,
|
|
|
|
senderChatId: ChatId
|
|
|
|
) = execute(BanChatSenderChat(chatId, senderChatId))
|
|
|
|
|
|
|
|
suspend fun TelegramBot.banChatSenderChat(
|
|
|
|
chat: PublicChat,
|
|
|
|
senderChatId: ChatId
|
|
|
|
) = banChatSenderChat(chat.id, senderChatId)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.banChatSenderChat(
|
|
|
|
chatId: ChatId,
|
|
|
|
senderChat: PublicChat
|
|
|
|
) = banChatSenderChat(chatId, senderChat.id)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.banChatSenderChat(
|
|
|
|
chat: PublicChat,
|
|
|
|
senderChat: PublicChat,
|
|
|
|
) = banChatSenderChat(chat.id, senderChat)
|