Class

com.bot4s.telegram.models

CallbackQuery

Related Doc: package models

Permalink

case class CallbackQuery(id: String, from: User, message: Option[Message] = None, inlineMessageId: Option[String] = None, chatInstance: String, data: Option[String] = None, gameShortName: Option[String] = None) extends Product with Serializable

This object 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.

id

String Unique identifier for this query

from

User Sender

message

Message Optional 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

String Optional Identifier of the message sent via the bot in inline mode, that originated the query

chatInstance

String Identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.

data

String Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.

gameShortName

String Optional. Short name of a Game to be returned, serves as the unique identifier for the game 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).

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

Instance Constructors

  1. new CallbackQuery(id: String, from: User, message: Option[Message] = None, inlineMessageId: Option[String] = None, chatInstance: String, data: Option[String] = None, gameShortName: Option[String] = None)

    Permalink

    id

    String Unique identifier for this query

    from

    User Sender

    message

    Message Optional 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

    String Optional Identifier of the message sent via the bot in inline mode, that originated the query

    chatInstance

    String Identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.

    data

    String Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.

    gameShortName

    String Optional. Short name of a Game to be returned, serves as the unique identifier for the game 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).

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val chatInstance: String

    Permalink

    String Identifier, uniquely corresponding to the chat to which the message with the callback button was sent.

    String Identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val data: Option[String]

    Permalink

    String Optional.

    String Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. val from: User

    Permalink

    User Sender

  11. val gameShortName: Option[String]

    Permalink

    String Optional.

    String Optional. Short name of a Game to be returned, serves as the unique identifier for the game 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).

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val id: String

    Permalink

    String Unique identifier for this query

  14. val inlineMessageId: Option[String]

    Permalink

    String Optional Identifier of the message sent via the bot in inline mode, that originated the query

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val message: Option[Message]

    Permalink

    Message Optional Message with the callback button that originated the query.

    Message Optional 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

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped