Skip to content

Commit 7a4f157

Browse files
committed
Added the fields is_topic_message and message_thread_id to the class Message\
Added the fields forum_topic_created, forum_topic_closed, and forum_topic_reopened to the class Message
1 parent 53939e8 commit 7a4f157

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

structure.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ CREATE TABLE IF NOT EXISTS `message` (
7474
`chat_id` bigint COMMENT 'Unique chat identifier',
7575
`sender_chat_id` bigint COMMENT 'Sender of the message, sent on behalf of a chat',
7676
`id` bigint UNSIGNED COMMENT 'Unique message identifier',
77+
`message_thread_id` bigint(20) DEFAULT NULL COMMENT 'Unique identifier of a message thread to which the message belongs; for supergroups only',
7778
`user_id` bigint NULL COMMENT 'Unique user identifier',
7879
`date` timestamp NULL DEFAULT NULL COMMENT 'Date the message was sent in timestamp format',
7980
`forward_from` bigint NULL DEFAULT NULL COMMENT 'Unique user identifier, sender of the original message',
@@ -82,6 +83,7 @@ CREATE TABLE IF NOT EXISTS `message` (
8283
`forward_signature` TEXT NULL DEFAULT NULL COMMENT 'For messages forwarded from channels, signature of the post author if present',
8384
`forward_sender_name` TEXT NULL DEFAULT NULL COMMENT 'Sender''s name for messages forwarded from users who disallow adding a link to their account in forwarded messages',
8485
`forward_date` timestamp NULL DEFAULT NULL COMMENT 'date the original message was sent in timestamp format',
86+
`is_topic_message` tinyint(1) DEFAULT 0 COMMENT 'True, if the message is sent to a forum topic',
8587
`is_automatic_forward` tinyint(1) DEFAULT 0 COMMENT 'True, if the message is a channel post that was automatically forwarded to the connected discussion group',
8688
`reply_to_chat` bigint NULL DEFAULT NULL COMMENT 'Unique chat identifier',
8789
`reply_to_message` bigint UNSIGNED DEFAULT NULL COMMENT 'Message that this message is reply to',
@@ -125,6 +127,9 @@ CREATE TABLE IF NOT EXISTS `message` (
125127
`connected_website` TEXT NULL COMMENT 'The domain name of the website on which the user has logged in.',
126128
`passport_data` TEXT NULL COMMENT 'Telegram Passport data',
127129
`proximity_alert_triggered` TEXT NULL COMMENT 'Service message. A user in the chat triggered another user''s proximity alert while sharing Live Location.',
130+
`forum_topic_created` TEXT DEFAULT NULL COMMENT 'Service message: forum topic created',
131+
`forum_topic_closed` TEXT DEFAULT NULL COMMENT 'Service message: forum topic closed',
132+
`forum_topic_reopened` TEXT DEFAULT NULL COMMENT 'Service message: forum topic reopened',
128133
`video_chat_scheduled` TEXT COMMENT 'Service message: video chat scheduled',
129134
`video_chat_started` TEXT COMMENT 'Service message: video chat started',
130135
`video_chat_ended` TEXT COMMENT 'Service message: video chat ended',

0 commit comments

Comments
 (0)