final case class CallbackQuery(id: String, from: User, message: Option[TelegramMessage], inlineMessageId: Option[String], chatInstance: String, data: Option[String], gameShortName: Option[String]) extends Product with Serializable
Represents an incoming callback query from a callback button in an inline keyboard.
If the button that originated the query was attached to a message sent by the bot, the field message will be presented. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be presented.
Note: After the user presses an inline button, Telegram clients will display a progress bar until you call answerCallbackQuery. It is, therefore, necessary to react by calling answerCallbackQuery even if no notification to the user is needed (e.g., without specifying any of the optional parameters).
- id
Unique identifier for this query
- from
Sender
- message
Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
- inlineMessageId
Identifier of the message sent via the bot in inline mode, that originated the query
- chatInstance
Identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
- data
Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
- gameShortName
Short name of a Game to be returned, serves as the unique identifier for the game
- Alphabetic
- By Inheritance
- CallbackQuery
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CallbackQuery(id: String, from: User, message: Option[TelegramMessage], inlineMessageId: Option[String], chatInstance: String, data: Option[String], gameShortName: Option[String])
- id
Unique identifier for this query
- from
Sender
- message
Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
- inlineMessageId
Identifier of the message sent via the bot in inline mode, that originated the query
- chatInstance
Identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
- data
Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
- gameShortName
Short name of a Game to be returned, serves as the unique identifier for the game
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val chatInstance: String
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val data: Option[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val from: User
- val gameShortName: Option[String]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val id: String
- val inlineMessageId: Option[String]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val message: Option[TelegramMessage]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()