eu.vendeli.tgbot.api.chat.BanChatSenderChat.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegram-bot Show documentation
Show all versions of telegram-bot Show documentation
Telegram Bot API wrapper, with handy Kotlin DSL.
@file:Suppress("MatchingDeclarationName")
package eu.vendeli.tgbot.api.chat
import eu.vendeli.tgbot.interfaces.Action
import eu.vendeli.tgbot.interfaces.ActionState
import eu.vendeli.tgbot.interfaces.TgAction
import eu.vendeli.tgbot.types.internal.TgMethod
import eu.vendeli.tgbot.utils.getReturnType
class BanChatSenderChatAction(senderChatId: Long) : Action, ActionState() {
override val TgAction.method: TgMethod
get() = TgMethod("banChatSenderChat")
override val TgAction.returnType: Class
get() = getReturnType()
init {
parameters["sender_chat_id"] = senderChatId
}
}
fun banChatSenderChat(senderChatId: Long) = BanChatSenderChatAction(senderChatId)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy