@@ -21,6 +21,7 @@ use Longman\TelegramBot\Request;
* @method User getFrom() Sender
* @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
* @method string getInlineMessageId() Optional. Identifier of the message sent via the bot in inline mode, that originated the query
* @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.
* @method string getData() Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field
* @method string getGameShortName() Optional. Short name of a Game to be returned, serves as the unique identifier for the game
`reply_to_message`bigintUNSIGNEDDEFAULTNULLCOMMENT'Message that this message is reply to',
`edit_date`bigintUNSIGNEDDEFAULTNULLCOMMENT'Optional. Date the message was last edited in Unix time',
`media_group_id`TEXTCOMMENT'The unique identifier of a media message group this message belongs to',
`author_signature`TEXTCOMMENT'Signature of the post author for messages in channels',
`text`TEXTCOMMENT'For text messages, the actual UTF-8 text of the message max message length 4096 char utf8mb4',
`entities`TEXTCOMMENT'For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text',
`caption_entities`TEXTCOMMENT'For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption',
`audio`TEXTCOMMENT'Audio object. Message is an audio file, information about the file',
`document`TEXTCOMMENT'Document object. Message is a general file, information about the file',
`animation`TEXTCOMMENT'Optional. Message is an animation, information about the animation',
...
...
@@ -103,6 +109,8 @@ CREATE TABLE IF NOT EXISTS `message` (
`migrate_to_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate to chat identifier. The group has been migrated to a supergroup with the specified identifier',
`migrate_from_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate from chat identifier. The supergroup has been migrated from a group with the specified identifier',
`pinned_message`TEXTNULLCOMMENT'Message object. Specified message was pinned',
`invoice`TEXTNULLCOMMENT'Message is an invoice for a payment, information about the invoice',
`successful_payment`TEXTNULLCOMMENT'Message is a service message about a successful payment, information about the payment',
`connected_website`TEXTNULLCOMMENT'The domain name of the website on which the user has logged in.',
PRIMARYKEY(`chat_id`,`id`),
...
...
@@ -130,7 +138,9 @@ CREATE TABLE IF NOT EXISTS `callback_query` (
`inline_message_id`CHAR(255)NULLDEFAULTNULLCOMMENT'Identifier of the message sent via the bot in inline mode, that originated the query',
`chat_instance`CHAR(255)NOTNULLDEFAULT''COMMENT'Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent',
`data`CHAR(255)NOTNULLDEFAULT''COMMENT'Data associated with the callback button',
`game_short_name`CHAR(255)NOTNULLDEFAULT''COMMENT'Short name of a Game to be returned, serves as the unique identifier for the game',
`created_at`timestampNULLDEFAULTNULLCOMMENT'Entry date creation',
ALTERTABLE`chat`ADDCOLUMN`first_name`CHAR(255)DEFAULTNULLCOMMENT'First name of the other party in a private chat'AFTER`username`;
ALTERTABLE`chat`ADDCOLUMN`last_name`CHAR(255)DEFAULTNULLCOMMENT'Last name of the other party in a private chat'AFTER`first_name`;
ALTERTABLE`message`ADDCOLUMN`animation`TEXTNULLCOMMENT'Optional. Message is an animation, information about the animation'AFTER`document`;
ALTERTABLE`message`ADDCOLUMN`forward_signature`TEXTCOMMENT'For messages forwarded from channels, signature of the post author if present'AFTER`forward_from_message_id`;
ALTERTABLE`message`ADDCOLUMN`edit_date`bigintUNSIGNEDDEFAULTNULLCOMMENT'Optional. Date the message was last edited in Unix time'AFTER`reply_to_message`;
ALTERTABLE`message`ADDCOLUMN`author_signature`TEXTCOMMENT'Signature of the post author for messages in channels'AFTER`media_group_id`;
ALTERTABLE`message`ADDCOLUMN`caption_entities`TEXTCOMMENT'For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption';
ALTERTABLE`message`ADDCOLUMN`invoice`TEXTNULLCOMMENT'Message is an invoice for a payment, information about the invoice'AFTER`pinned_message`;
ALTERTABLE`message`ADDCOLUMN`successful_payment`TEXTNULLCOMMENT'Message is a service message about a successful payment, information about the payment'AFTER`invoice`;
ALTERTABLE`callback_query`ADDCOLUMN`chat_instance`CHAR(255)NOTNULLDEFAULT''COMMENT'Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent'AFTER`inline_message_id`;
ALTERTABLE`callback_query`ADDCOLUMN`game_short_name`CHAR(255)NOTNULLDEFAULT''COMMENT'Short name of a Game to be returned, serves as the unique identifier for the game'AFTER`data`;