Packages

c

canoe.models

CallbackQuery

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

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CallbackQuery
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val chatInstance: String
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val data: Option[String]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. val from: User
  11. val gameShortName: Option[String]
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. val id: String
  14. val inlineMessageId: Option[String]
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val message: Option[TelegramMessage]
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped