io.github.dehuckakpyt.telegrambot.container.CallbackContainer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegram-bot-core Show documentation
Show all versions of telegram-bot-core Show documentation
Kotlin Telegram Bot library
The newest version!
package io.github.dehuckakpyt.telegrambot.container
import io.github.dehuckakpyt.telegrambot.model.telegram.CallbackQuery
import io.github.dehuckakpyt.telegrambot.model.telegram.Chat
import io.github.dehuckakpyt.telegrambot.model.telegram.MaybeInaccessibleMessage
import io.github.dehuckakpyt.telegrambot.model.telegram.User
/**
* Created on 13.08.2023.
*
*
* @author Denis Matytsin
*/
class CallbackContainer(
public val query: CallbackQuery,
step: String?,
content: String?,
) : GeneralContainer(step, content) {
override val chat: Chat get() = query.message!!.chat
override val from: User get() = query.from
override val type: String = "CALLBACK"
val message: MaybeInaccessibleMessage get() = query.message!!
val inlineMessageId: String? get() = query.inlineMessageId
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy