Commit Graph

5348 Commits

Author SHA1 Message Date
levlam
9ebeafbb5b Add get_json_value_bool helper function. 2021-09-03 18:17:11 +03:00
levlam
9a6e8cad9e Add get_json_value_string helper function. 2021-09-03 18:14:15 +03:00
levlam
1d41017d3a Add get_json_value_int helper method. 2021-09-03 17:54:04 +03:00
levlam
7dffe5aabe Use Promise instead of RequestActor in getBackgrounds. 2021-09-03 09:07:18 +03:00
levlam
d2f9c264ca Use promise instead of RequestActor in td_api::getChatThemes. 2021-09-03 08:59:34 +03:00
levlam
db4f963a68 Fix via_bot_user_id in game messages forwarded by the bot itself. 2021-09-02 22:21:26 +03:00
levlam
6fad8e897f Improve Game constructor. 2021-09-02 16:49:57 +03:00
levlam
895d7f68d8 Improve Game::is_empty method name. 2021-09-02 16:35:56 +03:00
levlam
7135caa2be Update version to 1.7.7. 2021-09-02 12:39:05 +03:00
levlam
5a56ecea2a Remove pessimizing std::move. 2021-09-02 11:28:50 +03:00
levlam
6beaf41231 Minor improvements. 2021-09-01 20:31:39 +03:00
levlam
2b980ec215 Remove default source from have_dialog_force. 2021-09-01 19:41:00 +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
532a0f4502 Add td_api::pushMessageContentChatChangeTheme. 2021-08-27 16:38:05 +03:00
levlam
83e55b6b56 Add td_api::getChatThemes. 2021-08-27 15:51:50 +03:00
levlam
3e77161e46 Don't replace main background type if appropriate. 2021-08-27 12:10:51 +03:00
levlam
021474e8be Add chatEventThemeChanged. 2021-08-27 11:53:50 +03:00
levlam
e3f55a71cd Add td_api::viewSponsoredMessage. 2021-08-25 22:34:18 +03:00
levlam
658d172256 Improve method name. 2021-08-25 20:29:14 +03:00
levlam
723b203c7d Add td_api::getSponsoredMessages. 2021-08-24 23:44:47 +03:00
levlam
1e663dea46 Add group_call.is_video_recorded. 2021-08-24 17:49:08 +03:00
levlam
5cfabdd589 Add chat.theme_name. 2021-08-23 18:47:32 +03:00
levlam
b56119951b Support video streaming in group calls. 2021-08-23 16:59:00 +03:00
levlam
2045c131a9 Support video recording in group calls. 2021-08-23 15:29:03 +03:00
levlam
d61b1d9348 Add chatActionChoosingSticker. 2021-08-19 22:43:38 +03:00
levlam
31a4a97ec1 Add messageChatSetTheme. 2021-08-18 16:03:10 +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
086ec3d2e5 Add td_api::getPhoneNumberInfoSync. 2021-08-30 22:26:02 +03:00
levlam
a68402719c Improve logging for secret chats. 2021-08-30 19:28:54 +03:00
levlam
8699d0aadb Make country information static. 2021-08-30 19:20:40 +03:00
levlam
44556b3309 Add CountryInfoManager::get_phone_number_info_object. 2021-08-30 17:51:09 +03:00
levlam
c5a2105b61 Improve getPhoneNumberInfo. 2021-08-30 17:11:45 +03:00
levlam
788c13f834 Update built-in list of countries. 2021-08-29 18:03:26 +03:00
levlam
aaff89a6c3 Make get_document_object methods const. 2021-08-28 14:16:29 +03:00
levlam
97fccf7f27 Fix identityDocument.reverse_side description. 2021-08-27 00:36:03 +03:00
levlam
b1eb6db7b5 Minor logging improvements. 2021-08-26 21:44:29 +03:00
levlam
209dd8b41b Don't drop fully uploaded partial secure location. 2021-08-26 21:20:55 +03:00
levlam
897a4e26a7 Allow RemoteFileLocation logging. 2021-08-26 20:34:51 +03:00
levlam
cf7c14fb59 Remove unneeded document.is_changed. 2021-08-26 18:50:28 +03:00
levlam
ca03135f02 Use (1 << 30) as pts overflow mark. At least 1e9 must be used, because pts can jump from 1 to 1e9 when switching to tmessages. 2021-08-26 18:05:27 +03:00
levlam
e31a48998d Remove "Filling gap" warnings during getDifference. 2021-08-26 17:23:18 +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
bba085318e Return BackgroundType from on_get_background. 2021-08-24 17:13:51 +03:00
levlam
8e7eba4f8c Reload ChannelFull in get_channel_statistics_dc_id. 2021-08-23 11:59:37 +03:00
levlam
828e1e22a0 Skip unneeded getFullChannel requests. 2021-08-23 11:10:46 +03:00
levlam
3749e1f672 Add warning for very old updates. 2021-08-23 00:08:05 +03:00
levlam
6507fb7602 Use array-based MessageIdDuplicateChecker. 2021-08-22 22:08:46 +03:00
levlam
b3aa31d398 Minor cut_tail improvements. 2021-08-22 13:36:47 +03:00
levlam
4a3f56e6c1 Check that updates aren't received in rpc_result. 2021-08-22 13:23:21 +03:00
levlam
7faf7aeba7 Improve logging on too old update. 2021-08-22 13:16:10 +03:00
levlam
d154399d70 Optimize MessageIdDuplicateChecker::check. 2021-08-21 22:41:06 +03:00
levlam
43d9ba81ac Prefer std::unordered_map to std::map. 2021-08-21 21:42:07 +03:00
levlam
d229c5daed Fix handling of empty permissions in chatMemberStatusRestricted. 2021-08-21 19:57:01 +03:00
levlam
1a2faf5ae6 Add feedback_link to WebPageInstantView. 2021-08-21 10:22:41 +03:00
levlam
6393923d3a Make internalLinkTypeUnknownDeepLink self-contained. 2021-08-20 20:56:07 +03:00
levlam
df11403739 Make internalLinkTypeMessage self-contained. 2021-08-20 20:27:39 +03:00
levlam
618742acc2 Make internalLinkTypeChatInvite self-contained. 2021-08-20 18:44:02 +03:00
levlam
241718eae8 Extract pts and qts updates and apply them during getDifference. 2021-08-20 17:21:31 +03:00
levlam
a7e2e85119 Simplify check that all updates were processed. 2021-08-20 15:04:24 +03:00
levlam
7129a6d090 Apply typings and other short updates immediately. 2021-08-20 14:18:11 +03:00
levlam
7261c9579f Improve logging. 2021-08-20 10:57:19 +03:00
levlam
a6ba1240c1 Fix applying of postponed updates. 2021-08-20 10:29:57 +03:00
levlam
4988e94c02 Don't save pts too often for bots. 2021-08-19 20:36:26 +03:00
levlam
0f50f7a0f4 Ensure that channel Dialog exists before setting retry timeout. 2021-08-19 08:57:01 +03:00
levlam
5c2441021e Add fast path in remove_invalid_entities. 2021-08-18 21:37:31 +03:00
levlam
ca9dd55141 Improve documentation. 2021-08-18 21:08:51 +03:00
levlam
23f5c52ad9 Support applying multiple postponed updates at once. 2021-08-18 17:40:28 +03:00
levlam
2eaa026bb7 Increase number of stored recently found chats. 2021-08-17 18:11:32 +03:00
levlam
7ac3c2bdb9 Update accumulated_pts_count_ when a pending pts update is processed. 2021-08-16 14:02:15 +03:00
levlam
c19a0751f0 Apply postponed pts/qts updates after each getDifference iteration. 2021-08-16 13:35:30 +03:00
levlam
b9b9f56b24 Process pending pts updates as fast as possible. 2021-08-16 12:19:30 +03:00
levlam
0f5127602a Cancel previous gap timeout if processed a pending update. 2021-08-16 08:38:29 +03:00
levlam
78534b15cf Minor improvememnts. 2021-08-16 01:30:38 +03:00
levlam
82918559b8 Refactor processing of differenceSlice. 2021-08-16 01:00:49 +03:00
levlam
2e524bb819 Fix log message. 2021-08-16 00:11:48 +03:00
levlam
2128c2e5ad Improve getDifference logging. 2021-08-15 22:54:18 +03:00
levlam
1f486a694b Switch back from getDifference to updates processing as fast as possible. 2021-08-15 22:34:03 +03:00
levlam
d7dd6ff1ea Improve logging. 2021-08-15 22:31:24 +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
6194d9ec14 Drop pending seq/qts updates received before seq/qts overflow. 2021-08-15 13:52:00 +03:00
levlam
8ac0b02a6d Improve warnings on long gap fill. 2021-08-15 12:51:57 +03:00
levlam
9a5872fe27 Use update receive time to calculate proper gap time. 2021-08-15 12:46:38 +03:00