Commit Graph

466 Commits

Author SHA1 Message Date
levlam
247eff6f58 Fix updates logging. 2023-11-09 01:46:02 +03:00
levlam
b2a85a5d1b Add td_api::updateChatBoost. 2023-10-31 00:18:38 +03:00
levlam
3c64604acc Update layer 166 scheme. 2023-10-30 23:26:53 +03:00
levlam
5c1b940402 Minor improvements. 2023-10-30 19:04:14 +03:00
levlam
21ef7d0f6c Disallow restricted member status in channels. 2023-10-19 22:37:44 +03:00
levlam
bd36f48054 Update layer to 166. 2023-09-28 16:13:36 +03:00
levlam
74396f65a1 Add class StickerListType. 2023-10-19 15:12:26 +03:00
levlam
cabdd047b9 Don't update pts_diff on PTS initialization. 2023-10-19 11:51:33 +03:00
levlam
90fd69b202 Add UpdatesManager::is_acceptable_message_media. 2023-10-14 22:48:16 +03:00
levlam
8a711b56d9 Limit the number of ignored updates before end of the first get difference. 2023-10-14 03:00:54 +03:00
levlam
6b576bb2e3 Don't postpone updates for bots before first getDifference. 2023-10-12 19:26:18 +03:00
levlam
83df57a102 Remove MessageInfo.flags. 2023-09-25 22:48:35 +03:00
levlam
09ced5689b Remove most MESSAGE_FLAG usages. 2023-09-25 22:09:31 +03:00
levlam
9a44005187 Add UpdatesManager::fix_short_message_flags. 2023-09-25 21:56:36 +03:00
levlam
1e2c0ce814 Rename FullMessageId to MessageFullId. 2023-09-21 19:11:17 +03:00
levlam
b4f6e716ac Add source to get_(chat|channel|secret_chat)_force. 2023-09-21 18:56:13 +03:00
levlam
153ff5503b Update layer to 164. 2023-08-15 22:45:37 +03:00
levlam
daf480138d Ignore the unsupported chat among returned chats. 2023-09-17 01:34:13 +03:00
levlam
a874e617dc Add updateUnconfirmedSession. 2023-09-11 22:03:01 +03:00
levlam
a5073593e5 Update layer to 163. 2023-09-06 19:02:17 +03:00
levlam
203e8cf9c2 Add more checks for is_authorized. 2023-08-17 00:32:29 +03:00
levlam
a0990ef2fd Various fixes. 2023-08-15 17:45:16 +03:00
levlam
02b4793ba2 Process telegram_api::updateStoryID. 2023-08-11 14:07:13 +03:00
levlam
f37a9e73ca Support telegram_api::updateSentStoryReaction. 2023-08-04 19:18:27 +03:00
levlam
a9f6f897c6 Process story stealth mode updates. 2023-08-04 14:51:39 +03:00
levlam
f0e59da1ff Process blocked_my_stories_from flags. 2023-07-28 16:19:05 +03:00
levlam
1022cc6439 Update layer to 161. 2023-07-21 15:41:44 +03:00
levlam
9dcfd9d66d Add ReactionManager and move there all reaction-related methods from StickersManager. 2023-08-09 12:59:48 +03:00
levlam
564cbc0345 Don't log updates with slightly old PTS short after updates with very old PTS. 2023-07-29 15:37:15 +03:00
levlam
5ba7e14be0 Improve logging for PTS gaps. 2023-07-28 18:10:24 +03:00
levlam
56adf14116 Improve PTS gap repair. 2023-07-26 22:04:57 +03:00
levlam
a231b96a7b Improve PTS gap logging. 2023-07-25 14:24:44 +03:00
levlam
8893dc808f Ignore getDifference responses with invalid polls. 2023-07-24 19:42:09 +03:00
levlam
102222e64f Add source to on_update_channel_max_unavailable_message_id. 2023-07-22 22:40:26 +03:00
levlam
ac1295496c Unify stack traces for on_get_updates calls. 2023-07-20 21:03:05 +03:00
levlam
a3e277f7c0 Add source to get_user_force. 2023-07-20 20:38:25 +03:00
levlam
aa0b217a18 Fix call to set_pts. 2023-07-13 19:17:16 +03:00
levlam
6ece751ccd Fix warning. 2023-07-13 18:15:06 +03:00
levlam
1669f8d4b8 Init sessions if there are multiple sessions. 2023-07-12 21:08:01 +03:00
levlam
07ece1faea Improve PTS restore even more. 2023-07-11 16:20:35 +03:00
levlam
6b376a71e8 Improve updatePtsChanged handling by using getDifference instead of getState, which allows to get all pending updates. 2023-07-11 16:10:56 +03:00
levlam
00a6271edb Restore PTS after overflow. 2023-07-11 15:50:50 +03:00
levlam
6217e8c8f2 Don't drop state on updatePtsChanged. 2023-07-11 15:23:35 +03:00
levlam
288666c1fe Load all read stories from time to time. 2023-07-07 17:41:30 +03:00
levlam
25c73f32f5 Reload active story lists by timeout. 2023-07-06 18:22:20 +03:00
levlam
312006a207 Various fixes. 2023-07-01 19:54:22 +03:00
levlam
7a7d62fd44 Fix misprint. 2023-07-01 19:13:17 +03:00
levlam
2bf47d0809 Minor fixes. 2023-07-01 16:22:01 +03:00
levlam
bcf9ff7d43 Explicitly include telegram_api.h in cpp files. 2023-07-01 14:53:04 +03:00
levlam
3a3ae9eabf Explicitly pass Td to Location constructor and don't register locations for bots. 2023-06-28 19:01:00 +03:00