Commit Graph

1887 Commits

Author SHA1 Message Date
levlam
db4f963a68 Fix via_bot_user_id in game messages forwarded by the bot itself. 2021-09-02 22:21:26 +03:00
levlam
5a56ecea2a Remove pessimizing std::move. 2021-09-02 11:28:50 +03:00
levlam
b1db807868 Add forwardMessages.only_preview. 2021-08-31 23:37:21 +03:00
levlam
23a4c2c8a8 Return Message objects from send_message/forward_messages. 2021-08-31 22:34:46 +03:00
levlam
548ab8d7ee Add MessagesManager::get_forwarded_messages. 2021-08-31 20:39:32 +03:00
levlam
70a9d555a0 Split copied and forwarded new_media_album_ids just in case. 2021-08-31 20:09:00 +03:00
levlam
87e003916c Add MessagesManager::fix_forwarded_message. 2021-08-31 19:42:37 +03:00
levlam
52d605ed4d Add MessagesManager::create_message_forward_info. 2021-08-31 19:12:24 +03:00
levlam
dec26260d3 Add const MessagesManager::create_message_to_send. 2021-08-31 17:26:51 +03:00
levlam
f6fc10ab22 Add updateChatTheme. 2021-08-27 20:36:40 +03:00
levlam
abcfe46275 Fix MessageContentType::ChatSetTheme support. 2021-08-27 19:29:58 +03:00
levlam
c20fd1dd91 Add td_api::setChatTheme. 2021-08-27 19:23:22 +03:00
levlam
021474e8be Add chatEventThemeChanged. 2021-08-27 11:53:50 +03:00
levlam
5cfabdd589 Add chat.theme_name. 2021-08-23 18:47:32 +03:00
levlam
b4dc516b44 Add unread_count to MessageThreadInfo. 2021-08-13 18:24:00 +03:00
levlam
84be6f4485 Update layer to 132. 2021-08-12 21:15:08 +03:00
levlam
43d837df4e Call MessagesManager::on_load_folder_dialog_list_fail only once. 2021-08-12 16:33:39 +03:00
levlam
d9aa50e1be Use get_dialogs_from_list instead of get_dialogs. 2021-08-12 15:16:13 +03:00
levlam
307344da1c Remove promise from load_folder_dialog_list. 2021-08-11 16:32:00 +03:00
levlam
d49fdf3261 Remove offset from getChats and respect app-specified limit. 2021-08-11 15:59:09 +03:00
levlam
c35321b98e Add loadChats method. 2021-08-10 17:52:31 +03:00
levlam
fcfbb38f63 Fix MessageId::is_valid_scheduled. 2021-08-25 11:29:57 +03:00
levlam
8559392f6f Fix Dialog pts in run_after_channel_difference. 2021-08-25 11:21:17 +03:00
levlam
628648cd6c Use set_dialog_last_pinned_message_id instead of on_update_dialog_last_pinned_message_id. 2021-08-25 11:09:24 +03:00
levlam
dbdf69d076 Simplify on_update_dialog_last_pinned_message_id. 2021-08-25 11:03:07 +03:00
levlam
0f50f7a0f4 Ensure that channel Dialog exists before setting retry timeout. 2021-08-19 08:57:01 +03:00
levlam
d161323858 Add delay before reading history on server in non-joined channels with wrong server_unread_count. 2021-08-15 14:46:19 +03:00
levlam
9a5872fe27 Use update receive time to calculate proper gap time. 2021-08-15 12:46:38 +03:00
levlam
e62655efdf Add message.has_timestamped_media. 2021-08-13 14:49:24 +03:00
levlam
1885d232a9 Add parameter is_message_in_dialog to update_message. 2021-08-13 13:36:07 +03:00
levlam
4b06cb9f08 Avoid reply and bot commands registration for messages not in Dialog. 2021-08-13 13:19:58 +03:00
levlam
bff8f7550f Return MessageThreadInfo from GetDiscussionMessageQuery. 2021-08-13 12:26:47 +03:00
levlam
394e3450de Send updateMessageContent only for message known to the app. 2021-08-10 16:18:08 +03:00
levlam
bed3448fe1 Don't store server-generated message links. 2021-08-10 15:58:39 +03:00
levlam
db9db0eff1 Improve for_group flag in media timestamp links. 2021-08-09 20:47:03 +03:00
levlam
4b631b16bf Find MediaTimestamp entities in old messages. 2021-08-09 19:37:47 +03:00
levlam
0c3a9aebd8 Fix CHECK. 2021-08-09 17:48:57 +03:00
levlam
eee773901c Update max_reply_media_timestamp in replies when needed. 2021-08-06 05:55:43 +03:00
levlam
40d953ba20 Init max media timestamps for scheduled messages. 2021-08-05 10:41:13 +03:00
levlam
0e6584db87 Send updateChatLastMessage if content of the last yyet unsent message changes. 2021-08-05 10:13:06 +03:00
levlam
4ae305d8c4 Update max_media_timestamp when message content is changed. 2021-08-05 09:59:43 +03:00
levlam
9653cc9e3e Add separate get_message_content_media_duration. 2021-08-05 02:09:04 +03:00
levlam
da3b8f93a0 Hide too big media timestamps. 2021-08-04 09:28:53 +03:00
levlam
304280df69 Add message.can_get_media_timestamp_links. 2021-08-04 07:57:27 +03:00
levlam
389e92f1f4 Add skip_media_timestamps parameter to get_formatted_text. 2021-07-26 22:48:33 +03:00
levlam
3c7cf84216 Don't call ExportChannelMessageLinkQuery for bots. 2021-08-07 09:10:28 +03:00
levlam
5a8f8fbe82 Support awaited updates with promise in process_get_channel_difference_updates. 2021-08-06 07:07:03 +03:00
levlam
2f5020ad02 Improve logging. 2021-08-06 06:54:44 +03:00
levlam
0dc42e4410 Add source to get_message_sender_object. 2021-08-03 01:58:02 +03:00
levlam
9e7bce1b06 Don't warn about sent message ID decrease after message ID overflow. 2021-08-02 07:21:36 +03:00