Commit Graph

2473 Commits

Author SHA1 Message Date
levlam
1f7258f697 Add getChatMessagePosition. 2022-09-30 20:04:21 +03:00
levlam
92f9f8bdd0 Support extended media polling. 2022-09-24 22:17:17 +03:00
levlam
7f353cd064 Support telegram_api::updateMessageExtendedMedia. 2022-09-23 12:07:07 +03:00
levlam
e9b181ec42 Support ExtendedMedia in MessageContent. 2022-09-22 18:05:58 +03:00
levlam
798f4fdb2f Add MessageReactions::add_min_channels. 2022-09-24 21:09:07 +03:00
levlam
375446ac88 Add MessageReactions::add_dependencies. 2022-09-24 21:07:35 +03:00
levlam
da00ea6f86 Add MessageReactions::get_message_reactions_object. 2022-09-24 20:58:54 +03:00
levlam
c9f7603ad7 Add MessageReactions::are_consistent_with_list. 2022-09-24 20:15:38 +03:00
levlam
831f0bead3 Send updateMessageContent about edited messages. 2022-09-21 18:02:28 +03:00
levlam
23fe3994bf Don't unload messages from the last media album. 2022-09-21 17:44:25 +03:00
levlam
e9ccb43ccd Use const Message * earlier in add_message_to_dialog. 2022-09-21 17:30:03 +03:00
levlam
097f3d42e1 Fix error code in on_upload_error/on_download_error. 2022-09-20 02:02:28 +03:00
levlam
06e1ebf809 Add check just in case. 2022-09-19 16:34:28 +03:00
levlam
b9bd024969 Update message notifications after external changes of message content. 2022-09-19 16:26:56 +03:00
levlam
bb6fc999f8 Add on_message_notification_changed function. 2022-09-19 16:19:59 +03:00
levlam
618bface99 Save voice message to database when it is recognized. 2022-09-19 11:15:13 +03:00
levlam
8d0cb5b82d Return is_content_changed from update_message_content. 2022-09-19 01:12:20 +03:00
levlam
5cf248ae01 Call on_message_changed after send_update_message_content. 2022-09-19 01:05:23 +03:00
levlam
51403c883c Avoid usage of send_update_message_content with dialog_id. 2022-09-19 00:29:31 +03:00
levlam
91c54cc748 Move send_update_message_content out of update_message_content. 2022-09-19 00:24:15 +03:00
levlam
cef7ca17f3 Always show all reaction choosers in private chats. 2022-09-14 17:15:12 +03:00
levlam
534f17e784 Randomize delays between failed getChannelDifference. 2022-09-14 16:41:59 +03:00
levlam
124b0dee6c Ensure that custom reactions aren't added twice. 2022-09-13 19:39:35 +03:00
levlam
30b961aebf Sort reactions returned in getMessageAvailableReactions. 2022-09-13 19:19:35 +03:00
levlam
5213561096 Make non-const MessageReaction functions private. 2022-09-13 15:35:18 +03:00
levlam
8e5dccbdb5 Fix updating of active reactions in MessagesManager. 2022-09-12 21:39:23 +03:00
levlam
999326d56a Locally add reaction to recent. 2022-09-12 20:17:14 +03:00
levlam
f119e867df Update chosen reaction order when reactions are added or removed. 2022-09-11 15:10:56 +03:00
levlam
2ee994aed1 Add MessageReactions::get_chosen_reactions. 2022-09-11 14:06:01 +03:00
levlam
e07ab8e71a Save chosen reaction order. 2022-09-11 13:35:25 +03:00
levlam
ce9175a00b Always use "must be non-empty". 2022-09-10 22:48:34 +03:00
levlam
345c930aa7 Explicitly disallow removal of an empty reaction. 2022-09-09 19:42:14 +03:00
levlam
52fbb073fe Fix reaction updating. 2022-09-09 19:42:02 +03:00
levlam
6fb097dfe0 Return only reactions that can be added in getMessageAvailableReactions. 2022-09-09 18:15:03 +03:00
levlam
28d3d1ab37 Add MessageReactis::add_reaction/remove_reaction. 2022-09-09 17:43:21 +03:00
levlam
89a1311c91 Add ChatReactions::is_allowed_reaction. 2022-09-09 16:34:14 +03:00
levlam
a223067cd1 Add availableReactions.allow_custom_emoji. 2022-09-09 16:28:51 +03:00
levlam
55ec944266 Pass all chosen reactions to send_message_reaction. 2022-09-09 16:21:00 +03:00
levlam
6b2f6b4204 Split setMessageReaction to addMessageReaction and removeMessageReaction. 2022-09-09 15:56:45 +03:00
levlam
4ae5b9a533 Consistently use is_active_reaction. 2022-09-08 21:04:23 +03:00
levlam
148f1bf794 Update get_message_available_reactions. 2022-09-08 20:04:32 +03:00
levlam
ac5e8e7eda Remove class AvailableReactionType. 2022-09-08 18:25:12 +03:00
levlam
81159edcd9 Move get_active_reactions to ChatReactions. 2022-09-08 17:56:39 +03:00
levlam
c6d5bbb151 Remove class AvailableReaction. 2022-09-08 17:45:19 +03:00
levlam
9bd566702e Add source to MessagesManager::fix_new_dialog. 2022-09-07 20:02:44 +03:00
levlam
4fdac24cc5 Add setMessageReaction.update_recent_reactions. 2022-09-05 22:04:50 +03:00
levlam
c5040d9fcd Locally move sticker set to top. 2022-09-04 21:35:11 +03:00
levlam
16ba2ebfb8 Add messageSendOptions.update_order_of_installed_sticker_sets. 2022-09-04 01:14:25 +03:00
levlam
c662b81a3d Return ChatReactions from MessagesManager::get_message_active_reactions. 2022-09-02 18:59:15 +03:00
levlam
20332b5afb Check and fix all received reactions. 2022-09-02 17:30:15 +03:00
levlam
c65af3ac6e Improve field name. 2022-08-31 11:11:37 +03:00
levlam
0b8e143056 Add class ChatAvailableReactions. 2022-08-30 11:45:27 +03:00
levlam
6fbb4ef09a Use static helpers from InputDialogId. 2022-08-30 02:09:00 +03:00
levlam
408a6a9d74 Remove failed to load chats from chat filters. 2022-08-30 01:18:20 +03:00
levlam
d110b0f5bc Add MessagesManager::load_dialog_filter_dialogs function. 2022-08-29 22:43:36 +03:00
levlam
3c56140995 Ignore error 400 in GetDialogsQuery. 2022-08-29 15:35:37 +03:00
levlam
1e10ece916 Keep dialog object inside channelDifferenceTooLong for following logging. 2022-08-29 07:38:13 +03:00
levlam
b4b9ff563f Fix applying of postponed pts updates after pts repair. 2022-08-29 01:16:29 +03:00
levlam
57d7a2b10c Remove unknown pinned secret chats if failed to load them. 2022-08-27 23:12:50 +03:00
levlam
b0f4c45104 Return a 404 error in case of invalid load_dialog_list call. 2022-08-27 22:37:09 +03:00
levlam
0ed8f95cec Make distribution of dialog unloads uniform instead of normal. 2022-08-27 11:19:00 +03:00
levlam
2e31ba5188 Return multiple payment options in premiumState. 2022-08-25 22:51:04 +03:00
levlam
4e6046b9ec Treat all emoji reactions as non-premium. 2022-08-24 23:31:15 +03:00
levlam
b359a09464 Add message.can_report_reactions. 2022-08-23 16:44:20 +03:00
levlam
bb2034ae36 Update layer to 145. 2022-08-08 23:00:06 +03:00
levlam
551d42b9cf Fix compilation error. 2022-08-21 19:57:43 +03:00
levlam
1a8dbf8e4f Improve error logging. 2022-08-21 19:53:50 +03:00
levlam
869e9bd422 Avoid warning about wrong chat order for bots. 2022-08-21 12:46:06 +03:00
levlam
8c5833b009 Delete yet unsent message if receive messageEmpty for the sent message. 2022-08-21 10:08:09 +03:00
levlam
acbc2cebf4 Process request result in MessagesManager actor context. 2022-08-21 07:24:53 +03:00
levlam
f99327ca50 Add more CHECK logging. 2022-08-19 00:00:32 +03:00
levlam
04b98aa385 Use OptionManager directly if possible. 2022-08-18 17:00:18 +03:00
levlam
3318ffdb20 Proxy all option-related requests through G. 2022-08-17 16:11:13 +03:00
levlam
f0a89c3dbe Remove process_input_caption in favor of get_formatted_text. 2022-08-15 16:26:51 +03:00
levlam
17a18e8def Always use send_closure_later to keep relative message order. 2022-08-10 16:25:17 +03:00
levlam
f342b65500 Check for close status as early as possible. 2022-08-10 14:04:36 +03:00
levlam
12d852abc5 Check for close_flag as early as possible. 2022-08-10 13:57:41 +03:00
levlam
8e5d85eb11 Add error logging. 2022-08-08 19:52:29 +03:00
levlam
57947f549d Remove now unneeded restore of PTS in channels. 2022-08-08 18:38:25 +03:00
levlam
d04527d10e Avoid expected error logging. 2022-08-08 13:19:11 +03:00
levlam
18948ca87e Disallow reactions on self-destruct media. 2022-08-08 09:44:58 +03:00
levlam
ae14546613 Disallow adding new reactions in supergroup if can't send messages there. 2022-08-07 12:48:36 +03:00
levlam
44e96081c6 Support file reference repair for bot description photo and animation. 2022-08-06 13:42:35 +03:00
levlam
edaff2eba5 Don't send unneeded user from inlineKeyboardButtonTypeUser for bots. 2022-08-05 16:47:47 +03:00
levlam
515bd488fb Use WaitFreeHashMap for dialogs. 2022-08-04 17:38:33 +03:00
levlam
699b421824 Use full variable names for unique_ptr<Dialog>. 2022-08-04 16:30:14 +03:00
levlam
898c5c5cf3 Improve error message. 2022-08-02 19:35:35 +03:00
levlam
84dc36bea8 Remove expected logging for qts messages. 2022-08-01 20:47:38 +03:00
levlam
a67155a145 Add source to get_message_content. 2022-08-01 14:45:44 +03:00
levlam
4d6d1def85 Ignore updateServiceNotification by bots. 2022-08-01 01:42:53 +03:00
levlam
3f1e0a9317 Add explicit limit on the number of saved auth notifications. 2022-08-01 01:39:09 +03:00
levlam
e8b2971a42 Add more checks for HashTable keys. 2022-07-31 01:15:23 +03:00
levlam
3047262889 Print warning about unusable database messages, only if expected database messages weren't deleted. 2022-07-30 13:02:08 +03:00
levlam
2fb59c4d7b Drop last_database_message_id if deleted the only database message. 2022-07-30 12:55:59 +03:00
levlam
8072fe673e Switch back to server-side copy for polls. 2022-07-29 14:58:57 +03:00
levlam
86acab5250 Support getMessageThread with non-root messages in supergroups. 2022-07-28 15:06:58 +03:00
levlam
a5da79327d Preload and check all custom emoji in secret chats. 2022-07-27 23:47:16 +03:00
levlam
97ab564e07 Prepare for removing premium custom emoji if have no premium. 2022-07-22 18:11:55 +03:00
levlam
03773d01fd Disallow emoji stickers in secret chats. 2022-07-22 16:11:33 +03:00
levlam
347e1b81cf Avoid warnings for changes of restricted messages. 2022-07-15 17:04:41 +03:00