Commit Graph

186 Commits

Author SHA1 Message Date
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
levlam
840391b95c Add is_pts_update/is_qts_update. 2021-01-11 23:58:03 +03:00
levlam
cdbed1844a Add updateFolderPeers to pts updates. 2021-01-11 23:14:41 +03:00
levlam
c5549b7346 Improve log messages. 2021-01-08 16:05:16 +03:00
levlam
71ac1f67bf Force getDifference if receive a lot of qts updates. 2021-01-05 16:36:49 +03:00
levlam
970f65604a Switch back from getDifference to updates handling if there are too much of them. 2021-01-05 16:06:51 +03:00
levlam
89fa0f6446 Add get_update_qts/get_update_pts. 2021-01-05 12:41:35 +03:00
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
9ca42ec8da Check message pts before merging files. 2020-12-25 16:12:09 +03:00
levlam
a8377db05d Simplify handling of updateNewChannelMessage and updateEditChannelMessage. 2020-12-25 02:56:22 +03:00
levlam
b867a597e8 Simplify add_pending_channel_update calls. 2020-12-25 02:37:14 +03:00
levlam
4a28b98022 Pass promise to add_pending_channel_update. 2020-12-25 00:20:21 +03:00
levlam
4ea10b3de6 Pass promise to MessagesManager::add_pending_update. 2020-12-24 21:56:15 +03:00
levlam
887c2dfdf7 Properly set promise when ignore pending updates. 2020-12-23 02:06:45 +03:00
levlam
b9d1530c78 Store all promises for pending qts updates. 2020-12-23 01:58:56 +03:00
levlam
656a641290 Fix sending response to setPollAnser. 2020-12-22 01:51:20 +03:00
levlam
7d73126506 Add success promise to on_get_updates. 2020-12-21 22:06:52 +03:00
levlam
e89d353b68 Add groupCall.need_rejoin flag. 2020-12-17 17:49:15 +03:00
levlam
96acefc6c6 Update layer 122. 2020-12-14 16:52:25 +03:00
levlam
6fdf68bad4 Store DialogId in information about group call. 2020-12-13 14:52:07 +03:00
levlam
76950e710f Support updateGroupCallParticipants updates. 2020-12-11 18:44:03 +03:00
levlam
6a38d219f0 Update layer 122. Add updateNewInlineQuery.chat_type (can be sent by the server in the distant future). 2020-12-07 23:08:18 +03:00
levlam
eb9abbb9ab Save voice chat channel_id. 2020-12-04 12:40:51 +03:00
levlam
34e05375c1 Add GroupCallId class. 2020-12-03 19:52:50 +03:00
levlam
7f9681313a Update layer 122. 2020-11-29 15:41:03 +03:00
levlam
1eca39c4ee Add toggleGroupCallMuteNewMembers method. 2020-11-27 01:58:36 +03:00
levlam
e1271c7fa5 Add createChatGroupCall. 2020-11-26 10:56:13 +03:00
levlam
cc47f9b63f Support updateGroupCall. 2020-11-25 17:04:32 +03:00
levlam
59e0f03b5f Update UpdatesManager::is_acceptable_message. 2020-11-24 01:36:20 +03:00
levlam
ccb0a4f63c Update layer to 122. 2020-11-23 18:48:55 +03:00
levlam
778adce53d Add debug logging.
GitOrigin-RevId: 08ae2a25ae086a2211658239a532e1e19d996a4f
2020-10-31 16:33:06 +03:00