Commit Graph

2676 Commits

Author SHA1 Message Date
levlam
c4b7100ad8 Repair unread mention count in channels when a mention is read. 2023-02-22 13:09:24 +03:00
levlam
bc8811ea82 Simplify MessagesManager::can_unload_message for bots; allow to unload the last message. 2023-02-20 12:40:49 +03:00
levlam
6cf6f32418 Add Global::ignore_result_if_closing. 2023-02-16 13:35:27 +03:00
levlam
5a39bb4952 Use error code returned by get_input_file_id. 2023-02-09 18:31:02 +03:00
levlam
f6616f6ba3 Fix creator in ForumTopicInfo. 2023-02-04 17:59:17 +03:00
levlam
0adcac246a Use explicit as_mutable_slice to get MutableSlice. 2023-02-02 17:40:47 +03:00
levlam
882de6e8e8 Replace unsafe to maintain data_ field with get_data() method. 2023-02-02 03:08:26 +03:00
levlam
b067159d78 Improve chat type check. 2023-02-01 02:10:03 +03:00
levlam
b1ea693f1b Don't try to repair empty draft message. 2023-02-01 01:51:41 +03:00
levlam
a347eb4da3 Add ability to check shared with bot user/chat. 2023-01-31 16:52:05 +03:00
levlam
ade5a089e9 Implement ReplyMarkup::check_shared_dialog. 2023-01-31 16:40:51 +03:00
levlam
4d70d1e920 Minor improvements. 2023-01-31 13:33:30 +03:00
levlam
0469ac0147 Add inputChatPhotoSticker. 2023-01-30 00:35:14 +03:00
levlam
25cdd0e6ec Ignore message_thread_id for channel posts. 2023-01-26 01:12:23 +03:00
levlam
f9b81efe4b Replace result with "Request Aborted" error only if it is successful. 2023-01-25 19:58:23 +03:00
levlam
5cd523408d Asynchronously check local location of all viewed and opened files. 2023-01-25 19:25:04 +03:00
levlam
57548741c4 Send updateNewMessage after file upload has started. 2023-01-25 13:03:57 +03:00
levlam
0feb0f15ce Improve names of methods and message contents related to sharing user/chat with a bot. 2023-01-23 18:19:35 +03:00
levlam
136a50d0ae Add translateMessageText. 2023-01-23 15:46:26 +03:00
levlam
a7e4c54f63 Support stickers in setChatPhoto. 2023-01-23 13:53:23 +03:00
levlam
8137572794 Send updateChatIsTranslatable when premium is switched on or off. 2023-01-20 12:57:06 +03:00
levlam
337aef5c02 Support chat.is_translatable, toggleChatIsTranslatable and updateChatIsTranslatable. 2023-01-20 12:38:25 +03:00
levlam
8c43a7c0bb Add TranslationManager. 2023-01-18 14:47:31 +03:00
levlam
7288e90211 Untie can_send_messages right from other rights. 2023-01-17 18:13:27 +03:00
levlam
91ab399946 Improve repair of unread reaction count. 2023-01-16 20:30:52 +03:00
levlam
24786e05d0 Improve error messages. 2023-01-16 16:55:05 +03:00
levlam
14fbdf5928 Forcely load chosen chat from database. 2023-01-13 17:47:08 +03:00
levlam
97cc57a25c Add td_api::sendChosenChat. 2023-01-13 17:16:16 +03:00
levlam
0b54e28467 Add td_api::sendChosenUser. 2023-01-13 17:03:35 +03:00
levlam
83403d9836 Add keyboardButtonTypeRequestChat. 2023-01-11 16:54:46 +03:00
levlam
06a432a373 Add td_api::messageChatChosen. 2023-01-10 16:20:30 +03:00
levlam
f0d0ac6b78 Allow to create forum supergroups. 2023-01-09 21:43:51 +03:00
levlam
ad8ecec67c Support separate chat permissions for different media types. 2023-01-06 14:16:34 +03:00
levlam
050a11ece7 Update layer to 152. 2023-01-06 12:42:16 +03:00
levlam
1588f0d687 Return after call to on_error. 2023-01-18 17:10:08 +03:00
levlam
42af57ee05 Support General topic in getMessageThread. 2023-01-17 15:34:31 +03:00
levlam
ad8f0c4146 Improve some spelling. 2023-01-16 12:59:43 +03:00
levlam
45ff12ca49 Improve PTS/QTS spelling. 2023-01-15 11:05:53 +03:00
levlam
3b6874818a Always wait for mailbox. 2023-01-11 01:08:22 +03:00
levlam
ac0de06b5f Ensure that PTS/QTS updates are null after processing. 2023-01-09 13:27:28 +03:00
levlam
4a5b2ac722 Skip returned by server messages, not matching the filter. 2023-01-04 13:18:38 +03:00
levlam
887ddbd88e Improve warnings about changed MessageForwardInfo. 2023-01-04 10:49:53 +03:00
levlam
29c264df59 Log number of unprocessed updateMessageID while closing. 2023-01-02 19:07:48 +03:00
levlam
686fcc1933 Log source for failed to add awaited messages. 2023-01-02 18:05:35 +03:00
levlam
12561229fe Improve logging in on_get_channel_difference. 2023-01-02 17:36:38 +03:00
levlam
0f05e72fa3 Silently ignore PERSISTENT_TIMESTAMP_INVALID errors for channels.getDifference. 2023-01-02 17:06:26 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
24a67cb67c Send typings to General topic by default in forums. 2022-12-30 04:00:52 +03:00
levlam
e4c8eb376e Fix spoiler in on_upload_message_media_success. 2022-12-30 02:39:31 +03:00
levlam
86f0de23f5 Improve message-TTL-related log messages. 2022-12-28 21:59:41 +03:00
levlam
90b6403e86 Improve message_auto_delete_time field and class names. 2022-12-28 21:46:16 +03:00
levlam
a77c7d566c Avoid duplicate 't' and 'i' photo sizes. 2022-12-28 20:39:24 +03:00
levlam
6aa4558850 Improve return value of searchCallMessages. 2022-12-28 19:17:25 +03:00
levlam
9663dc98b5 Improve return type of searchChatMessages. 2022-12-28 18:42:11 +03:00
levlam
1ff40ce132 Rename message TTL to auto-delete timer when appropriate. 2022-12-28 17:02:41 +03:00
levlam
5c89fe749a Separately create admin log message ogjects. 2022-12-26 20:30:44 +03:00
levlam
dcd1e60910 Add separate message.auto_delete_in. 2022-12-26 17:31:04 +03:00
levlam
a4fc556e5e Minor improvements. 2022-12-26 14:58:31 +03:00
levlam
fa06258486 Returm server messages for General topic in getMessageThreadHistory. 2022-12-25 23:10:28 +03:00
levlam
f694687e47 Improve next_offset in getMessagePublicForwards. 2022-12-25 22:59:57 +03:00
levlam
fc2ab0a7ab Use next_rate in searchMessages. 2022-12-25 22:43:37 +03:00
levlam
3080f64273 Simplify searchMessages usage. 2022-12-25 22:28:05 +03:00
levlam
f6de50e19f Fix some spelling. 2022-12-22 17:04:18 +03:00
levlam
d810a73a4f Hide can_get_message_thread for non-root messages. 2022-12-21 19:10:36 +03:00
levlam
8bfc68b3f8 Improve ContactsManager::get_channel_effective_has_hidden_participants. 2022-12-20 15:12:36 +03:00
levlam
f4f156a5b1 Hide viewers in chats with hidden participants. 2022-12-19 21:34:38 +03:00
levlam
89c407c129 Use server-side online count for supergroups with hidden members. 2022-12-19 21:25:53 +03:00
levlam
02db4f2fac Support sending of photos and videos with spoiler animation. 2022-12-15 22:41:55 +03:00
levlam
cc52263026 Add td_api::messageBotWriteAccessAllowed 2022-12-14 21:13:48 +03:00
levlam
ebeb524f70 Add messageSuggestProfilePhoto. 2022-12-09 14:13:37 +03:00
levlam
86d5f12e6e Don't try to load the same chat many times from the database. 2022-12-23 14:28:03 +03:00
levlam
1e65d38483 Ignore ReadMessageContents updates for bots. 2022-12-22 17:19:33 +03:00
levlam
f1eedfaa47 Simplify some usages of optional TL fields. 2022-12-18 22:15:57 +03:00
levlam
f97c103e2b Update last read inbox/outbox message identifiers in topics. 2022-12-14 14:25:04 +03:00
levlam
848de33676 Replace top_thread_message_id in unsupported messages. 2022-12-14 13:28:16 +03:00
levlam
0e33195953 Move static get_message_id/get_message_dialog_id to corresponding classes. 2022-12-12 21:43:49 +03:00
levlam
b634948c15 Move static MessageId helpers to MessageId class. 2022-12-10 22:57:41 +03:00
levlam
6cbe1825ef Delete left dialogs from filters. 2022-12-08 13:14:50 +03:00
levlam
a32bb3e7ef Move get_messages_info to MessagesInfo.cpp. 2022-12-07 19:38:42 +03:00
levlam
75453b542f Add separate header for MessagesInfo. 2022-12-07 19:28:27 +03:00
levlam
2e139cc895 Fix processing of links to messages in General topic. 2022-12-07 18:18:39 +03:00
levlam
67a67276a3 Support creation of message links for messages in General topic. 2022-12-07 17:54:03 +03:00
levlam
1db1532591 Add is_forum_channel. 2022-12-07 17:21:36 +03:00
levlam
294c99248e Fix add_local_message. 2022-12-06 19:32:02 +03:00
levlam
bc2e23a27f Add need_update_dialog_notification_settings. 2022-12-06 16:34:17 +03:00
levlam
58d84a1c7e Improve get_dialog_notification_settings(td_api::object_ptr<td_api::chatNotificationSettings> &&notification_settings). 2022-12-06 16:18:11 +03:00
levlam
3c842f1ecb Improve get_dialog_notification_settings(tl_object_ptr<telegram_api::peerNotifySettings>). 2022-12-06 15:23:11 +03:00
levlam
d9e16106af Add setForumTopicNotificationSettings. 2022-12-06 14:53:54 +03:00
levlam
426c308e23 Add ForumTopic cache. 2022-12-05 17:37:09 +03:00
levlam
a40acdfcc3 Support General forum topic links. 2022-12-05 14:13:55 +03:00
levlam
374f3249be Use need_unread_counter. 2022-12-05 13:44:50 +03:00
levlam
68ebfa3055 Don't try to change top_thread_message_id for messages in dialog. 2022-12-04 17:58:18 +03:00
levlam
31fb277acf Fix topic message count. 2022-12-02 20:39:52 +03:00
levlam
2f8d60669a Update rights check for setChatMessageTtl. 2022-12-02 14:52:02 +03:00
levlam
70cfbab277 Extract only relevant random_id from updates. 2022-12-02 12:36:31 +03:00
levlam
f8a5f42886 Improve return value of UpdatesManager::get_new_messages. 2022-12-02 12:11:07 +03:00
levlam
fff8e81261 Don't return SetMessagesTTL messages in get_new_messages. 2022-12-01 23:44:58 +03:00
levlam
4f737910ab Ignore message interaction info updates for bots. 2022-11-29 17:25:43 +03:00
levlam
0cf9eb0b4b Avoid unneeded calls to channels.getDifference. 2022-11-29 17:14:45 +03:00
levlam
2844156dfc Allow to specify message_ttl during creation of basic group and channel chats. 2022-11-29 15:44:12 +03:00