Commit Graph

317 Commits

Author SHA1 Message Date
levlam
6079b1a2b4 Asynchronously init DownloadManager. 2022-03-03 18:26:25 +03:00
levlam
8d48190748 Add warning if failed to find message edit pts. 2022-02-16 21:21:37 +03:00
levlam
24d2505f5b Improve pts extraction from updates. 2022-02-16 21:18:36 +03:00
levlam
c88955a8b7 Load unknown messages to process updateMessageReaction. 2022-02-08 18:48:09 +03:00
levlam
7c4d333a77 Support updateMessageReactions. 2022-01-21 11:53:18 +03:00
levlam
dd48b43769 Allow to change default reaction. 2022-01-05 18:03:02 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
20a460aeb3 Update layer to 136. 2021-12-28 17:19:18 +03:00
levlam
4e29d0e232 Rename message_ttl_setting to message_ttl. 2021-12-21 14:06:15 +03:00
levlam
7d2335bec4 Postpone again unacceptable PTS updates. 2021-12-13 22:30:42 +03:00
levlam
9e602006e6 Update local was_online by to be postponed updates. 2021-12-13 22:12:49 +03:00
levlam
5512700b77 Immediately reload *Full after invalidation in opened chats. 2021-12-01 23:31:10 +03:00
levlam
acc43bb0b5 Allow typings by chats and rename updateUserChatAction to updateChatAction. 2021-11-23 14:29:49 +03:00
levlam
ae987f2211 Add inlineKeyboardButtonTypeUser. 2021-11-10 17:14:00 +03:00
levlam
6ace4fdf36 Update layer to 135. 2021-11-09 19:07:55 +03:00
levlam
5578ecc6b8 Remove NetQuery id from ResultHandler and NetActor. 2021-11-08 14:19:57 +03:00
levlam
b7cf2e578d Save reference to UpdatesManager in promise. 2021-11-05 03:31:48 +03:00
levlam
0c1e268706 Don't generate MASK for parsed True fields. 2021-11-01 21:53:23 +03:00
levlam
39b5db357e Add updateNewChatJoinRequest. 2021-10-28 22:49:56 +03:00
levlam
00a349656d Unify td/telegram/include order. 2021-10-27 17:32:09 +03:00
levlam
8d458f3038 Add chatJoinRequestsInfo with user identifiers. 2021-10-26 20:51:06 +03:00
levlam
e49ae700b6 Add chat.pending_join_request_count. 2021-10-12 18:11:17 +03:00
levlam
23775700ac Update layer to 134. 2021-10-08 13:45:10 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
9b7957c9c6 Minor warning fixes. 2021-10-17 13:07:20 +03:00
levlam
3b794126d8 Avoid G usage in lambda promises. 2021-10-07 15:28:52 +03:00
levlam
196128b2f1 Update chat theme cache after receiving telegram_api::updateTheme. 2021-09-12 22:29:40 +03:00
levlam
31a4a97ec1 Add messageChatSetTheme. 2021-08-18 16:03:10 +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
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
23f5c52ad9 Support applying multiple postponed updates at once. 2021-08-18 17:40:28 +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
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
levlam
9b801645f0 Set gap timeout if it has decreased. 2021-08-15 11:43:00 +03:00
levlam
86c6115d49 Faster switching back from getDifference to updates. 2021-08-05 21:29:40 +03:00
levlam
a4bd165061 Increase MAX_UNFILLED_GAP_TIME to 0.7. 0.4 timeout is too low and causes too much unneeded getDifference calls. 2021-07-30 21:05:18 +03:00
levlam
e387b43e62 Decrease MAX_UNFILLED_GAP_TIME to 0.4. 2021-07-13 17:44:10 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
f210906dca Support updateBotCommands. 2021-06-28 18:32:29 +03:00
levlam
da2d81c81b Update layer to 131. 2021-06-28 15:55:11 +03:00
levlam
12ae67a64f Don't try to schedule getDifference if unauthorized. 2021-06-27 06:02:58 +03:00
levlam
2b7b6b7759 Improve logging on log out. 2021-06-27 05:52:43 +03:00
levlam
f9a5eae94c Improve log message. 2021-06-20 03:13:40 +03:00
levlam
9662679968 Process updateMessagePollVote as qts update. 2021-05-18 19:33:18 +03:00
levlam
2225e56906 Add startGroupCallScreenSharing. 2021-04-30 19:53:39 +03:00
levlam
d8b905a986 Update layer to 129. 2021-04-30 17:07:01 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
26dc0ad930 Update layer to 127. 2021-03-26 18:15:21 +03:00
levlam
a0dcd2d9c2 Add optional source to have_dialog_force. 2021-04-08 00:51:32 +03:00
levlam
984e79b7f7 Drop channel invite link, only when corresponding administrator right is removed. 2021-03-28 02:35:11 +03:00
levlam
110a68c764 Try to get information about min-participants from server. 2021-03-18 22:36:59 +03:00
levlam
0339921102 Improve some spelling. 2021-03-15 03:32:14 +03:00
levlam
bcf3643cf7 Update layer to 125. 2021-03-02 17:27:44 +03:00
levlam
58d9f668c1 Improve schedule_get_difference logging. 2021-03-14 05:19:07 +03:00
levlam
76dce207b3 Force getDifference after receiving an update with incorrect qts. 2021-03-14 05:08:37 +03:00
levlam
b1da98faeb Fix possible integer overflow. 2021-03-03 15:10:00 +03:00
levlam
3b3801abbe Update layer 124. 2021-02-25 21:09:13 +03:00
levlam
c733f8ed34 Minor improvements. 2021-02-25 15:56:26 +03:00
levlam
2e943a6c85 Fix misprint. 2021-02-19 16:37:44 +03:00
levlam
60e45f6457 Fix processing of qts updates. 2021-02-19 14:43:16 +03:00
levlam
ce80a2f12f Improve qts gap debug. 2021-02-19 14:12:50 +03:00
levlam
62a4c0c58d Add updateChatMember. 2021-02-19 13:57:46 +03:00
levlam
fd190bc9bd Process updateChatParticipant and updateBotStopped. 2021-02-19 02:16:50 +03:00
levlam
f92339de85 Support telegram_api::messageActionSetMessagesTTL. 2021-02-16 15:15:45 +03:00
levlam
cc50f3b143 Support receiving message TTL setting for all chat types. 2021-02-09 17:35:48 +03:00
levlam
642a9a9efb Update layer to 124. 2021-02-02 02:00:28 +03:00
levlam
c6466caee2 Add logging on long pts gap filling. 2021-02-01 13:06:38 +03:00
levlam
9e37c85af3 Minor improvements. 2021-01-27 02:57:59 +03:00
levlam
cc8c0cbe64 Support delete_history flag in messages.discardEncryption. 2021-01-18 15:04:31 +03:00
levlam
9a575cdb56 Forcely ignore updateChat received in getDifference. 2021-01-20 15:14:16 +03:00
levlam
e72c129f9c Ignore getDifference errors while closing. 2021-01-18 15:54:29 +03:00
levlam
35c4562fc5 Make on_server_pong private. 2021-01-16 02:59:03 +03:00
levlam
7a94cac200 Make on_get_updates_state private. 2021-01-16 02:55:47 +03:00
levlam
7c0af14d09 Make on_get_difference private. 2021-01-16 02:44:58 +03:00
levlam
004876dcf0 Make get_pts/get_qts/get_date private. 2021-01-16 01:42:06 +03:00
levlam
ef920f297d Move handling of pending pts updates to UpdatesManager. 2021-01-16 01:17:35 +03:00
levlam
3c1341731c Move check_pts_update to UpdatesManager. 2021-01-15 23:39:34 +03:00
levlam
67403c586b Remove force_apply parameter from on_update. 2021-01-15 19:32:16 +03:00
levlam
24664db3cb Forcely process qts updates in process_updates. 2021-01-15 19:09:00 +03:00
levlam
76fac90693 Simplify telegram_api::updateMessageID processing. 2021-01-15 18:52:41 +03:00
levlam
2eacc1f974 Forcely process pts updates in process_updates. 2021-01-15 18:45:26 +03:00
levlam
36b4c55927 Remove force_apply from add_pending_update. 2021-01-12 01:52:10 +03:00