Commit Graph

5034 Commits

Author SHA1 Message Date
levlam
d9a0168bfa Improve logging in G_impl. 2021-09-14 11:54:54 +03:00
levlam
55ad2e5f86 Load recent dialogs in one pass. 2021-09-14 11:31:21 +03:00
levlam
fa65e429eb Return void from RecentDialogList::load_dialogs. 2021-09-14 10:16:20 +03:00
levlam
dc35dea8a3 Use SliceBuilder in RecentDialogList::save_dialogs. 2021-09-13 21:47:11 +03:00
levlam
a68163b94c Simplify and optimize RecentDialogList::load_dialogs. 2021-09-13 21:36:07 +03:00
levlam
4b641df524 Load recent dialogs before adding/removing them. 2021-09-13 21:30:48 +03:00
levlam
77c8eb9617 Add promise to RecentDialogList::get_dialogs. 2021-09-13 20:52:17 +03:00
levlam
5bec536803 Add class RecentDialogList. 2021-09-13 20:34:57 +03:00
levlam
c03621d72c Add CHECK debug. 2021-09-13 16:03:21 +03:00
levlam
075d004b9f Replace getChatThemes with updateChatThemes. 2021-09-13 15:55:01 +03:00
levlam
a838fff28f Add operator== for ThemeSettings. 2021-09-12 22:39:52 +03:00
levlam
196128b2f1 Update chat theme cache after receiving telegram_api::updateTheme. 2021-09-12 22:29:40 +03:00
levlam
488e5699b7 Send updateDeleteMessages for failed to add just sent messages. 2021-09-12 21:55:03 +03:00
levlam
b274c7dc85 Fix input_peer checks in toggle_message_sender_is_blocked. 2021-09-12 20:48:35 +03:00
levlam
5dfd9ac9af Disallow changing chat themes in group chats. 2021-09-11 23:24:46 +03:00
levlam
78baa7977b Don't inherit Td from NetQueryCallback. 2021-09-10 18:58:36 +03:00
levlam
088c3169d4 Minor. 2021-09-10 18:23:23 +03:00
levlam
137543c172 Use send_closure_later in NetQueryDispatcher to break stack chain. 2021-09-10 17:42:24 +03:00
levlam
2062daf9cd Don't wrap updates in NetQuery. 2021-09-10 17:32:39 +03:00
levlam
edfdcc0170 Remove default on_server_salt_updated implementation. 2021-09-10 16:45:39 +03:00
levlam
55e69f65af Add separate on_update callback. 2021-09-10 16:31:04 +03:00
levlam
5c87fb853e Use int32 as sponsored message ID. 2021-09-10 11:44:50 +03:00
levlam
f63196f9fa Improve URL and email matching. 2021-09-09 17:59:24 +03:00
levlam
9bf5b5343b Prevent partial updateBasicGroupFullInfo. 2021-09-09 15:41:50 +03:00
levlam
b8df633f34 Minor include improvements. 2021-09-08 16:50:03 +03:00
levlam
cf452ce7c8 Support MESSAGE_NOTHEME and CHAT_MESSAGE_NOTHEME push notifications. 2021-09-08 14:39:39 +03:00
levlam
1c56e62a6a Add internalLinkTypeVoiceChat.is_live_stream flag. 2021-09-08 13:53:24 +03:00
levlam
015d6cd92d Support videochat/livestream internal links. 2021-09-08 01:50:49 +03:00
levlam
5bb10b4bb3 Cache sponsored messages. 2021-09-07 20:27:04 +03:00
levlam
8117853ea4 Add logging on partial update*FullInfo. 2021-09-07 18:20:34 +03:00
levlam
f59ba4b5e5 Avoid duplicate UserFull updates. 2021-09-07 18:02:03 +03:00
levlam
168399f21d Add source to update_*_full. 2021-09-07 17:41:56 +03:00
levlam
efbb5bde96 Combine getSponsoredMessages queries. 2021-09-07 17:21:18 +03:00
levlam
ae6b79d57b Add SponsoredMessageManager. 2021-09-07 15:49:34 +03:00
levlam
192915c0bf Reload chat themes at most once an hour. 2021-09-07 13:30:51 +03:00
levlam
546898e199 Replace SetGameScoreRequest with promise. 2021-09-07 12:05:44 +03:00
levlam
989b0c26f0 tg_cli: remove unused variable. 2021-09-07 11:40:08 +03:00
levlam
5c59a10418 Move game-related methods to GameManager. 2021-09-07 10:45:01 +03:00
levlam
d395c2496e Add empty GameManager. 2021-09-07 10:02:44 +03:00
levlam
0ec10947d5 Fix some misprints. 2021-09-06 13:58:40 +03:00
levlam
73290dcda8 Reopen closed polls when copying them. 2021-09-05 23:11:25 +03:00
levlam
96ffd57881 Use Promise isntead of RequestOnceActor to get games high scores. 2021-09-05 10:54:20 +03:00
levlam
b713d945f7 tg_cli: use synchronous TDLib's method instead of Td. 2021-09-04 12:22:26 +03:00
levlam
86de43a048 Remove useless #include comments. 2021-09-03 23:21:44 +03:00
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