@@ -1131,24 +1131,26 @@ public static function insertMessageRequest(Message $message): bool
1131
1131
$ sth = self ::$ pdo ->prepare ('
1132
1132
INSERT IGNORE INTO ` ' . TB_MESSAGE . '`
1133
1133
(
1134
- `id`, `user_id`, `chat_id`, `sender_chat_id`, `date`, `forward_from`, `forward_from_chat`, `forward_from_message_id`,
1135
- `forward_signature`, `forward_sender_name`, `forward_date`,
1134
+ `id`, `user_id`, `chat_id`, `message_thread_id`, ` sender_chat_id`, `date`, `forward_from`, `forward_from_chat`, `forward_from_message_id`,
1135
+ `forward_signature`, `forward_sender_name`, `forward_date`, `is_topic_message`,
1136
1136
`reply_to_chat`, `reply_to_message`, `via_bot`, `edit_date`, `media_group_id`, `author_signature`, `text`, `entities`, `caption_entities`,
1137
1137
`audio`, `document`, `animation`, `game`, `photo`, `sticker`, `video`, `voice`, `video_note`, `caption`, `contact`,
1138
1138
`location`, `venue`, `poll`, `dice`, `new_chat_members`, `left_chat_member`,
1139
1139
`new_chat_title`, `new_chat_photo`, `delete_chat_photo`, `group_chat_created`,
1140
1140
`supergroup_chat_created`, `channel_chat_created`, `message_auto_delete_timer_changed`, `migrate_to_chat_id`, `migrate_from_chat_id`,
1141
1141
`pinned_message`, `invoice`, `successful_payment`, `connected_website`, `passport_data`, `proximity_alert_triggered`,
1142
+ `forum_topic_created`, `forum_topic_closed`, `forum_topic_reopened`,
1142
1143
`video_chat_scheduled`, `video_chat_started`, `video_chat_ended`, `video_chat_participants_invited`, `web_app_data`, `reply_markup`
1143
1144
) VALUES (
1144
- :message_id, :user_id, :chat_id, :sender_chat_id, :date, :forward_from, :forward_from_chat, :forward_from_message_id,
1145
- :forward_signature, :forward_sender_name, :forward_date,
1145
+ :message_id, :user_id, :chat_id, :message_thread_id, : sender_chat_id, :date, :forward_from, :forward_from_chat, :forward_from_message_id,
1146
+ :forward_signature, :forward_sender_name, :forward_date, :is_topic_message,
1146
1147
:reply_to_chat, :reply_to_message, :via_bot, :edit_date, :media_group_id, :author_signature, :text, :entities, :caption_entities,
1147
1148
:audio, :document, :animation, :game, :photo, :sticker, :video, :voice, :video_note, :caption, :contact,
1148
1149
:location, :venue, :poll, :dice, :new_chat_members, :left_chat_member,
1149
1150
:new_chat_title, :new_chat_photo, :delete_chat_photo, :group_chat_created,
1150
1151
:supergroup_chat_created, :channel_chat_created, :message_auto_delete_timer_changed, :migrate_to_chat_id, :migrate_from_chat_id,
1151
1152
:pinned_message, :invoice, :successful_payment, :connected_website, :passport_data, :proximity_alert_triggered,
1153
+ :forum_topic_created, :forum_topic_closed, :forum_topic_reopened,
1152
1154
:video_chat_scheduled, :video_chat_started, :video_chat_ended, :video_chat_participants_invited, :web_app_data, :reply_markup
1153
1155
)
1154
1156
' );
@@ -1167,6 +1169,7 @@ public static function insertMessageRequest(Message $message): bool
1167
1169
$ sth ->bindValue (':message_id ' , $ message ->getMessageId ());
1168
1170
$ sth ->bindValue (':chat_id ' , $ chat_id );
1169
1171
$ sth ->bindValue (':sender_chat_id ' , $ sender_chat_id );
1172
+ $ sth ->bindValue (':message_thread_id ' , $ message ->getMessageThreadId ());
1170
1173
$ sth ->bindValue (':user_id ' , $ user_id );
1171
1174
$ sth ->bindValue (':date ' , $ date );
1172
1175
$ sth ->bindValue (':forward_from ' , $ forward_from );
@@ -1175,6 +1178,7 @@ public static function insertMessageRequest(Message $message): bool
1175
1178
$ sth ->bindValue (':forward_signature ' , $ message ->getForwardSignature ());
1176
1179
$ sth ->bindValue (':forward_sender_name ' , $ message ->getForwardSenderName ());
1177
1180
$ sth ->bindValue (':forward_date ' , $ forward_date );
1181
+ $ sth ->bindValue (':is_topic_message ' , $ message ->getIsTopicMessage ());
1178
1182
1179
1183
$ reply_to_chat_id = null ;
1180
1184
if ($ reply_to_message_id !== null ) {
@@ -1222,6 +1226,9 @@ public static function insertMessageRequest(Message $message): bool
1222
1226
$ sth ->bindValue (':connected_website ' , $ message ->getConnectedWebsite ());
1223
1227
$ sth ->bindValue (':passport_data ' , $ message ->getPassportData ());
1224
1228
$ sth ->bindValue (':proximity_alert_triggered ' , $ message ->getProximityAlertTriggered ());
1229
+ $ sth ->bindValue (':forum_topic_created ' , $ message ->getForumTopicCreated ());
1230
+ $ sth ->bindValue (':forum_topic_closed ' , $ message ->getForumTopicClosed ());
1231
+ $ sth ->bindValue (':forum_topic_reopened ' , $ message ->getForumTopicReopened ());
1225
1232
$ sth ->bindValue (':video_chat_scheduled ' , $ message ->getVideoChatScheduled ());
1226
1233
$ sth ->bindValue (':video_chat_started ' , $ message ->getVideoChatStarted ());
1227
1234
$ sth ->bindValue (':video_chat_ended ' , $ message ->getVideoChatEnded ());
0 commit comments