* @method string getId() Unique identifier for this query
22
* @method User getFrom() Sender
23
* @method Message getMessage() 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
24
* @method string getInlineMessageId() Optional. Identifier of the message sent via the bot in inline mode, that originated the query
25
* @method string getChatInstance() Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
26
* @method string getData() Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field
27
* @method string getGameShortName() Optional. Short name of a Game to be returned, serves as the unique identifier for the game
28
*/
29
class CallbackQuery extends Entity
30
{
31
/**
32
* {@inheritdoc}
33
*/
34
protected function subEntities(): array
35
{
36
return [
37
'from' => User::class,
38
'message' => Message::class,
39
];
40
}
41
42
/**
43
* Answer this callback query.
44
*
45
* @param array $data
46
*
47
* @return ServerResponse
48
*/
49
public function answer(array $data = []): ServerResponse