You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Entities/CallbackQuery.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
* @method User getFrom() Sender
22
22
* @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
23
23
* @method string getInlineMessageId() Optional. Identifier of the message sent via the bot in inline mode, that originated the query
24
+
* @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.
24
25
* @method string getData() Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field
25
26
* @method string getGameShortName() Optional. Short name of a Game to be returned, serves as the unique identifier for the game
`reply_to_message`bigint UNSIGNED DEFAULT NULL COMMENT 'Message that this message is reply to',
82
+
`edit_date`bigint UNSIGNED DEFAULT NULL COMMENT 'Optional. Date the message was last edited in Unix time',
79
83
`media_group_id`TEXT COMMENT 'The unique identifier of a media message group this message belongs to',
84
+
`author_signature`TEXT COMMENT 'Signature of the post author for messages in channels',
80
85
`text`TEXT COMMENT 'For text messages, the actual UTF-8 text of the message max message length 4096 char utf8mb4',
81
86
`entities`TEXT COMMENT 'For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text',
87
+
`caption_entities`TEXT COMMENT 'For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption',
82
88
`audio`TEXT COMMENT 'Audio object. Message is an audio file, information about the file',
83
89
`document`TEXT COMMENT 'Document object. Message is a general file, information about the file',
84
90
`animation`TEXT COMMENT 'Optional. Message is an animation, information about the animation',
@@ -103,6 +109,8 @@ CREATE TABLE IF NOT EXISTS `message` (
103
109
`migrate_to_chat_id`bigintNULL DEFAULT NULL COMMENT 'Migrate to chat identifier. The group has been migrated to a supergroup with the specified identifier',
104
110
`migrate_from_chat_id`bigintNULL DEFAULT NULL COMMENT 'Migrate from chat identifier. The supergroup has been migrated from a group with the specified identifier',
105
111
`pinned_message`TEXTNULL COMMENT 'Message object. Specified message was pinned',
112
+
`invoice`TEXTNULL COMMENT 'Message is an invoice for a payment, information about the invoice',
113
+
`successful_payment`TEXTNULL COMMENT 'Message is a service message about a successful payment, information about the payment',
106
114
`connected_website`TEXTNULL COMMENT 'The domain name of the website on which the user has logged in.',
107
115
108
116
PRIMARY KEY (`chat_id`, `id`),
@@ -130,7 +138,9 @@ CREATE TABLE IF NOT EXISTS `callback_query` (
`inline_message_id`CHAR(255) NULL DEFAULT NULL COMMENT 'Identifier of the message sent via the bot in inline mode, that originated the query',
141
+
`chat_instance`CHAR(255) NOT NULL DEFAULT '' COMMENT 'Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent',
133
142
`data`CHAR(255) NOT NULL DEFAULT '' COMMENT 'Data associated with the callback button',
143
+
`game_short_name`CHAR(255) NOT NULL DEFAULT '' COMMENT 'Short name of a Game to be returned, serves as the unique identifier for the game',
134
144
`created_at`timestampNULL DEFAULT NULL COMMENT 'Entry date creation',
ALTERTABLE`chat` ADD COLUMN `first_name`CHAR(255) DEFAULT NULL COMMENT 'First name of the other party in a private chat' AFTER `username`;
2
+
ALTERTABLE`chat` ADD COLUMN `last_name`CHAR(255) DEFAULT NULL COMMENT 'Last name of the other party in a private chat' AFTER `first_name`;
1
3
ALTERTABLE`message` ADD COLUMN `animation`TEXTNULL COMMENT 'Optional. Message is an animation, information about the animation' AFTER `document`;
4
+
ALTERTABLE`message` ADD COLUMN `forward_signature`TEXT COMMENT 'For messages forwarded from channels, signature of the post author if present' AFTER `forward_from_message_id`;
5
+
ALTERTABLE`message` ADD COLUMN `edit_date`bigint UNSIGNED DEFAULT NULL COMMENT 'Optional. Date the message was last edited in Unix time' AFTER `reply_to_message`;
6
+
ALTERTABLE`message` ADD COLUMN `author_signature`TEXT COMMENT 'Signature of the post author for messages in channels' AFTER `media_group_id`;
7
+
ALTERTABLE`message` ADD COLUMN `caption_entities`TEXT COMMENT 'For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption';
8
+
ALTERTABLE`message` ADD COLUMN `invoice`TEXTNULL COMMENT 'Message is an invoice for a payment, information about the invoice' AFTER `pinned_message`;
9
+
ALTERTABLE`message` ADD COLUMN `successful_payment`TEXTNULL COMMENT 'Message is a service message about a successful payment, information about the payment' AFTER `invoice`;
10
+
ALTERTABLE`callback_query` ADD COLUMN `chat_instance`CHAR(255) NOT NULL DEFAULT '' COMMENT 'Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent' AFTER `inline_message_id`;
11
+
ALTERTABLE`callback_query` ADD COLUMN `game_short_name`CHAR(255) NOT NULL DEFAULT '' COMMENT 'Short name of a Game to be returned, serves as the unique identifier for the game' AFTER `data`;
0 commit comments