`reply_to_message`bigintUNSIGNEDDEFAULTNULLCOMMENT'Message that this message is reply to',
`text`TEXTDEFAULTNULLCOMMENT'For text messages, the actual UTF-8 text of the message max message length 4096 char utf8mb4',
`entities`TEXTDEFAULTNULLCOMMENT'For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text',
`audio`TEXTDEFAULTNULLCOMMENT'Audio object. Message is an audio file, information about the file',
...
...
@@ -91,21 +95,22 @@ CREATE TABLE IF NOT EXISTS `message` (
`sticker`TEXTDEFAULTNULLCOMMENT'Sticker object. Message is a sticker, information about the sticker',
`video`TEXTDEFAULTNULLCOMMENT'Video object. Message is a video, information about the video',
`voice`TEXTDEFAULTNULLCOMMENT'Voice Object. Message is a Voice, information about the Voice',
`caption`TEXTDEFAULTNULLCOMMENT'For message with caption, the actual UTF-8 text of the caption',
`contact`TEXTDEFAULTNULLCOMMENT'Contact object. Message is a shared contact, information about the contact',
`location`TEXTDEFAULTNULLCOMMENT'Location object. Message is a shared location, information about the location',
`venue`TEXTDEFAULTNULLCOMMENT'Venue object. Message is a Venue, information about the Venue',
`new_chat_member`bigintNULLDEFAULTNULLCOMMENT'User id. A new member was added to the group, information about them (this member may be bot itself)',
`left_chat_member`bigintNULLDEFAULTNULLCOMMENT'User id. A member was removed from the group, information about them (this member may be bot itself)',
`new_chat_title`CHAR(255)DEFAULTNULLCOMMENT'A group title was changed to this value',
`new_chat_photo`TEXTDEFAULTNULLCOMMENT'Array of PhotoSize objects. A group photo was change to this value',
`delete_chat_photo`tinyint(1)DEFAULT0COMMENT'Informs that the group photo was deleted',
`caption`TEXTDEFAULTNULLCOMMENT'For message with caption, the actual UTF-8 text of the caption',
`new_chat_member`bigintNULLDEFAULTNULLCOMMENT'Unique user identifier, a new member was added to the group, information about them (this member may be bot itself)',
`left_chat_member`bigintNULLDEFAULTNULLCOMMENT'Unique user identifier, a member was removed from the group, information about them (this member may be bot itself)',
`new_chat_title`CHAR(255)DEFAULTNULLCOMMENT'A chat title was changed to this value',
`new_chat_photo`TEXTDEFAULTNULLCOMMENT'Array of PhotoSize objects. A chat photo was change to this value',
`delete_chat_photo`tinyint(1)DEFAULT0COMMENT'Informs that the chat photo was deleted',
`group_chat_created`tinyint(1)DEFAULT0COMMENT'Informs that the group has been created',
`supergroup_chat_created`tinyint(1)DEFAULT0COMMENT'Informs that the supergroup has been created',
`channel_chat_created`tinyint(1)DEFAULT0COMMENT'Informs that the channel chat has been created',
`migrate_from_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate from chat identifier.',
`migrate_to_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate to chat identifier.',
`migrate_to_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate to chat identifier. The group has been migrated to a supergroup with the specified identifie',
`migrate_from_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate from chat identifier. The supergroup has been migrated from a group with the specified identifier',
`pinned_message`TEXTNULLDEFAULTNULLCOMMENT'Message object. Specified message was pinned',
PRIMARYKEY(`chat_id`,`id`),
KEY`user_id`(`user_id`),
KEY`forward_from`(`forward_from`),
...
...
@@ -125,7 +130,26 @@ CREATE TABLE IF NOT EXISTS `message` (
`chat_id`bigintNULLDEFAULTNULLCOMMENT'Telegram chat_id can be a the user id or the chat id ',
`status`ENUM('active','cancelled','stopped')NOTNULLDEFAULT'active'COMMENT'active conversation is active, cancelled conversation has been truncated before end, stopped conversation has end',
`command`varchar(160)DEFAULT''COMMENT'Default Command to execute',
`id`bigint(20)unsignedAUTO_INCREMENTCOMMENT'Unique identifier for this entry',
`user_id`bigintNULLDEFAULTNULLCOMMENT'Unique user identifier',
`chat_id`bigintNULLDEFAULTNULLCOMMENT'Unique user or chat identifier',