Commit Graph

3490 Commits

Author SHA1 Message Date
levlam
8ca99fb186 Add td_api::stopBusinessPoll. 2024-06-11 15:05:06 +03:00
levlam
8827ffbbd6 Add class MessageEffectId. 2024-06-05 17:01:11 +03:00
levlam
0b255f0260 Use request promise in searchCallMessages. 2024-06-13 15:09:20 +03:00
levlam
b64fe94003 Add logging for ENTITY_BOUNDS_INVALID errors. 2024-06-12 14:08:46 +03:00
levlam
95715158fe Fix replies for scheduled messages. 2024-06-11 16:57:53 +03:00
levlam
fdee1297df Improve on_external_update_message_content. 2024-06-10 20:10:05 +03:00
levlam
015f8cdd8f Don't retry get channel difference for unknown chats. 2024-06-09 22:12:04 +03:00
levlam
c39b7dce9a Use request promise ib getChatMessageCalendar. 2024-06-08 21:20:11 +03:00
levlam
cc02215c5f Fix is_cashtag. 2024-06-04 13:14:21 +03:00
levlam
02ad1269d6 Add cashtag support in searchPublicHashtagMessages. 2024-05-31 18:10:02 +03:00
levlam
c44ad4af49 Check that dialog_id is valid in MessagesManager::process_input_message_content. 2024-05-29 13:22:03 +03:00
levlam
42295ba33e Move edit_inline_message_* to InlineMessageManager. 2024-05-29 13:19:53 +03:00
levlam
7d6d1f3a46 Don't set has_bots for bots. 2024-05-27 12:46:58 +03:00
levlam
c0cdea4771 Always cancel file upload after message edit. 2024-05-27 02:34:08 +03:00
levlam
57186fca18 Add td_api::getSearchedForHashtags. 2024-05-25 20:18:29 +03:00
levlam
4b6db81c65 Check fact check in closed chats. 2024-05-23 20:46:45 +03:00
levlam
4344d1235e Fix identifier generation for failed to send messages for bots with database. 2024-05-20 17:13:15 +03:00
levlam
5e12908520 Add td_api::setMessageFactCheck. 2024-05-20 12:30:05 +03:00
levlam
4cd02020ee Add polling for message.fact_check. 2024-05-19 21:22:51 +03:00
levlam
3dffbae7bc Add message.fact_check. 2024-05-18 23:59:26 +03:00
levlam
4434bd327a Allow to edit show_caption_above_media. 2024-05-16 12:42:36 +03:00
levlam
ec5e2353c3 Add messageCopyOptions.new_show_caption_above_media. 2024-05-16 00:04:30 +03:00
levlam
30416fe801 Add function check_message_group_message_contents. 2024-05-15 22:53:41 +03:00
levlam
f9d3431401 Add flag show_caption_above_media to relevant message content types. 2024-05-15 17:19:41 +03:00
levlam
6111abc0a1 Add td_api::searchPublicHashtagMessages. 2024-05-10 16:24:32 +03:00
levlam
27499808ed Add class MessageSearchOffset. 2024-05-10 15:28:37 +03:00
levlam
d490e9a122 Add messageSendOptions.effect_id. 2024-05-09 19:02:17 +03:00
levlam
fe239b7595 Add Message.effect_id. 2024-05-09 17:55:33 +03:00
levlam
22ebe2c7bf Update layer to 181. 2024-05-06 19:14:42 +03:00
levlam
d269672357 Combine non-bot actions after adding a message to a chat. 2024-05-15 12:23:07 +03:00
levlam
7ab118780a Add source to on_external_update_message_content. 2024-05-15 11:40:47 +03:00
levlam
783033c430 Ignore saved to database order for chats that must not be added to chat list. 2024-05-15 00:29:19 +03:00
levlam
e15768d520 Fix CHECK in need_skip_bot_commands. 2024-05-14 22:02:13 +03:00
levlam
6fe43311cb Add protection from chat folder deletion and recreation with the same identifier while chat list is loaded. 2024-05-14 21:00:59 +03:00
levlam
1fdb72aece Add replied_message_info CHECKs. 2024-05-14 20:39:07 +03:00
levlam
a33ba10197 Add more message_id validness CHECKs. 2024-05-14 19:14:09 +03:00
levlam
b45769f4da Handle deletion of chat filter during chat list loading. 2024-05-14 15:21:46 +03:00
levlam
7b5a88f003 Use Promise in getChatMessageByDate instead of RequestActor. 2024-05-12 00:48:28 +03:00
levlam
3cca264f8d Use Promise in searchSecretMessages instead of RequestActor. 2024-05-11 21:54:21 +03:00
levlam
cf4cfc3c57 Move chat list check inside search_messages. 2024-05-10 14:15:02 +03:00
levlam
1d9f7c0482 Use Promise in searchMessages instead of RequestActor. 2024-05-10 14:08:10 +03:00
levlam
da687ab202 Improve channel accessibility check. 2024-05-09 00:15:11 +03:00
levlam
0535cba37c Add source to send_update_new_chat. 2024-05-07 20:03:04 +03:00
levlam
486ecb8d70 Improve processing of already applied channel updates. 2024-05-02 21:35:25 +03:00
levlam
0b5da7fcd2 Reload chats with inaccessible users for bots. 2024-05-02 17:21:29 +03:00
levlam
a89be2370c Support live_period in editInlineMessageLiveLocation. 2024-05-02 16:32:44 +03:00
levlam
140c97f8ac Support live_period in edtiMessageLiveLocation. 2024-05-02 16:24:35 +03:00
levlam
379fdf85b7 Various improvements. 2024-04-30 20:48:24 +03:00
levlam
8515e24c17 Improve source in on_message_notification_changed. 2024-04-26 16:54:33 +03:00
levlam
b359b32080 Add searchMessages.only_in_channels. 2024-04-22 16:38:30 +03:00
levlam
6194fb4aa1 Support max_reaction_count setting. 2024-04-22 03:19:40 +03:00
levlam
4134f608af Update layer to 179. 2024-04-21 21:57:10 +03:00
levlam
0e1600ac7d Don't store copy of created public broadcasts in MessagesManager. 2024-04-30 14:07:06 +03:00
levlam
02a99f3c50 Add and use MessageQuote(td_api::inputTextQuote). 2024-04-25 16:18:07 +03:00
levlam
1f6fdd554a Add class MessageQuote and use it in MessageInputReplyTo and RepliedMessageInfo. 2024-04-25 15:52:19 +03:00
levlam
e08cf00efb Remove unused get_formatted_text parameters. 2024-04-23 20:04:38 +03:00
levlam
2ddab77b3e Fix some misprints. 2024-04-21 02:43:33 +03:00
levlam
f3385d6cb7 Improve edit of quick reply messages. 2024-04-21 02:07:16 +03:00
levlam
1221cccbdf Support quick reply media editing. 2024-04-20 18:57:32 +03:00
levlam
0f25201248 Use TRY_RESULT_PROMISE in edit_message_*. 2024-04-19 15:29:47 +03:00
levlam
4c72dc8ec5 Add and use FileManager::try_merge_documents. 2024-04-18 00:21:17 +03:00
levlam
298d16c150 Use MessagesManager::check_dialog_access. 2024-04-15 18:08:30 +03:00
levlam
c4e1a44a5c Add MessagesManager::check_dialog_access. 2024-04-15 17:28:13 +03:00
levlam
723ba8978d Use messages.affectedMessages.pts even if pts_count == 0. 2024-04-15 02:55:53 +03:00
levlam
c0ed8f09b0 Add explicit allow_secret_chats to have_input_peer. 2024-04-14 22:59:05 +03:00
levlam
9243f51ff9 Add SendQuickReplyShortcutMessagesLogEvent. 2024-04-12 02:10:55 +03:00
levlam
27721159bd Return failed to add members in createNewBasicGroupChat. 2024-04-09 16:19:33 +03:00
levlam
4c1fa3b45d Add td_api::removeBusinessConnectedBotFromChat. 2024-04-08 03:10:33 +03:00
levlam
69fd5333d7 Hide all business bot manage bars when changing business bot. 2024-04-08 02:45:54 +03:00
levlam
7aad37608f Add separate BusinessBotManageBar. 2024-04-08 02:37:52 +03:00
levlam
e7ff4688fc Add td_api::toggleBusinessConnectedBotChatIsPaused. 2024-04-07 22:45:55 +03:00
levlam
83a3190f2f Add action bar dependencies. 2024-04-07 01:59:13 +03:00
levlam
f9dfd502da Add td_api::chatActionBarManageBusinessBot. 2024-04-07 01:46:46 +03:00
levlam
4444f0e328 Log failed message edits. 2024-04-06 21:52:28 +03:00
levlam
bd8c6be0cd Rename rest of ContactsManager to ChatManager. 2024-04-02 13:06:22 +03:00
levlam
03a624903e Move relevant functions to UserManager. 2024-04-02 03:52:34 +03:00
levlam
0a21620194 Remove extract_group_invite_privacy_forbidden_updates. 2024-03-30 02:56:24 +03:00
levlam
a042122b7a Add source to get_chat_type_object. 2024-03-29 11:19:50 +03:00
levlam
93663c2542 Improve maintaining of created public broadcasts. 2024-03-28 23:56:06 +03:00
levlam
e1f7a1331d Fetch last message of the personal channel if needed. 2024-03-28 18:58:45 +03:00
levlam
5acff85fa9 Handle MESSAGE_IDS_MISMATCH errors. 2024-03-21 15:13:03 +03:00
levlam
49372ab4c2 Add message.is_from_offline flag. 2024-03-20 18:54:04 +03:00
levlam
b28e1d2fd8 Support via_bot_user_id in sendQuickReplyShortcutMessages. 2024-03-18 22:38:30 +03:00
levlam
dd69dcdfe3 Support server-side updateMessageID for messages.sendQuickReplyMessages. 2024-03-18 22:32:08 +03:00
levlam
4219c62ee2 Ignore business messages not from private chats. 2024-03-18 17:17:48 +03:00
levlam
630762e511 Support reply to messages in business messages. 2024-03-17 00:19:24 +03:00
levlam
1b448b93e5 Add and use MessageInputReplyTo::clone(). 2024-03-13 16:08:49 +03:00
levlam
c46af3318d Add FileManager::delete_partial_remote_location_if_needed. 2024-03-12 18:52:23 +03:00
levlam
4a64803805 Support media upload to business connection. 2024-03-12 16:26:43 +03:00
levlam
0f98e748a8 Add td_api::sendBusinessMessage. 2024-03-11 21:27:16 +03:00
levlam
171e254634 Improve process_message_send_options. 2024-03-11 15:56:38 +03:00
levlam
69dd255f3d Pass only chat type to get_reply_markup. 2024-03-11 15:08:17 +03:00
levlam
8770955522 Improve function name. 2024-03-11 14:19:08 +03:00
levlam
75d0114c5f Add message.sender_business_bot_user_id. 2024-03-09 03:08:19 +03:00
levlam
b9891e0871 Add td_api::updateNewBusinessMessage. 2024-03-09 02:14:02 +03:00
levlam
bf3e25def0 Make MessagesManager::create_message static. 2024-03-08 22:19:22 +03:00
levlam
e46e342eba Make parse_telegram_api_message static. 2024-03-08 22:11:50 +03:00
levlam
e6b9f2eb07 Support sendChatAction for business connections. 2024-03-07 23:05:58 +03:00
levlam
bce17cb5d8 Update layer to 177. 2024-03-07 15:24:28 +03:00
levlam
11a35768b7 Fix some plural spelling. 2024-03-28 02:03:03 +03:00