Commit Graph

215 Commits

Author SHA1 Message Date
levlam
f197d61c66 Support message viewers-related config options. 2021-09-03 19:06:24 +03:00
levlam
7d26a30bd0 Move StateManager::State to ConnectionState.h. 2021-09-16 18:23:10 +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
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
a4b35648ae Remove stickers_emoji_cache_time key from appConfig. 2021-08-08 11:14:26 +03:00
levlam
c2028aed4f Add limit on maximum videoNote size. 2021-07-29 23:39:07 +03:00
levlam
d4dc4f2a50 Fix value check. 2021-07-29 13:02:38 +03:00
levlam
4ed0b15a41 Add suggested_video_note_* options. 2021-07-28 06:15:57 +03:00
levlam
61664b4044 Move remaining MTProto classes to namespace mtproto. 2021-07-05 21:04:23 +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
9628668def Minor improvements. 2021-06-23 03:22:23 +03:00
levlam
c4dab736c9 Add suggestedActionCheckPhoneNumber support. 2021-06-11 02:13:46 +03:00
levlam
fa7ce9b94d Move get_external_link_info to LinkManager. 2021-06-03 23:19:35 +03:00
levlam
62db52a23e Move LoginUrl-related methods to LinkManager. 2021-05-25 02:39:29 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
62c9890bcf Support url_auth_domains. 2021-03-16 01:29:54 +03:00
levlam
54b9760935 Improve getExternalLink methods. 2021-03-16 00:52:37 +03:00
levlam
c733f8ed34 Minor improvements. 2021-02-25 15:56:26 +03:00
levlam
c5f84de9cd Support channel suggested actions. 2021-02-22 23:34:10 +03:00
levlam
332b7a6edb Support dismissing of chat-specific suggested actions. 2021-02-22 19:38:40 +03:00
levlam
e19f59662e Move functions for handling suggested actions to SuggestedActions.cpp. 2021-02-22 18:25:49 +03:00
levlam
a14c9071f1 Use struct for SuggestedAction. 2021-02-21 01:06:45 +03:00
levlam
a41bca4b0e Move get_update_suggested_actions_object to SuggestedAction.cpp. 2021-02-21 00:21:14 +03:00
levlam
45dfb58cc5 Save autologin domains between restarts. 2021-02-05 01:40:53 +03:00
levlam
2193928cf6 Add getExternalLink method. 2021-02-04 14:36:11 +03:00
levlam
642a9a9efb Update layer to 124. 2021-02-02 02:00:28 +03:00
levlam
e3cb608293 Remove was_auth flag. 2021-02-01 15:07:10 +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
192fd4862f Use td::unique. 2020-12-30 18:50:57 +03:00
levlam
e3a31f062e Add can_archive_and_mute_new_chats_from_unknown_users option. 2020-11-28 16:39:56 +03:00
levlam
3305ca5689 Fix misprint.
GitOrigin-RevId: cb8c1e3f26771d317ae3c9db1157d8e98d0ad3a8
2020-08-23 20:34:05 +03:00
levlam
2009d58f6a Deprecate ActorShared with 0 token.
GitOrigin-RevId: 15dc5e63afa4c0d08f911101eaa78513df6aebc5
2020-08-27 01:27:34 +03:00
Arseny Smirnov
2add7947b7 ConfigRecoverer::Session: bugfix of closing
GitOrigin-RevId: 35493c586011974f81b2a4ef84cd2b1c4d1581a5
2020-08-12 11:34:12 +03:00
Arseny Smirnov
1d56a371cd ConfigManager: minor refactoring for hangup_shared
GitOrigin-RevId: 56af208cbe2e32120fa286b9e19fce58beaf8c9b
2020-08-11 16:31:50 +03:00
levlam
ba1c2781d8 Save correct config expire time, but still reget config on every restart.
GitOrigin-RevId: 6aa14c424b159def6ca0ebc9dad0ddbe13010854
2020-07-26 15:41:32 +03:00
levlam
3f2e269162 Fix FloodControlStrict.
GitOrigin-RevId: 664841f3e58cce5bce3ad90ef42f23537dc07c16
2020-07-16 22:36:59 +03:00
Arseny Smirnov
2a5c826111 Ask for a config when there is no options for some DC
GitOrigin-RevId: e750c78a4685a20c93c888dee6eaf630b80f7d31
2020-07-16 21:37:13 +03:00
levlam
2e82c65d94 Add hideSuggestedAction method.
GitOrigin-RevId: 11b162f37ab09c77bedae35157fc0870b2110795
2020-07-12 15:04:49 +03:00
levlam
454685efdf Add updateSuggestedActions.
GitOrigin-RevId: 98f42bf3b5fdd8403cb1bef4b594df369ca0efa2
2020-07-11 23:50:21 +03:00
levlam
4117e54a3c Add archive_and_mute_new_chats_from_unknown_users option.
GitOrigin-RevId: 1288bd144eafbd7df30b59eaf1d7440c58b56216
2020-07-10 20:28:30 +03:00
levlam
f6b4ced7bb Improve some variable names.
GitOrigin-RevId: b399b6fc1150aced96a41a75797d88e2df627415
2020-06-24 14:33:20 +03:00
levlam
448e8e0186 Fix connecting_since_ initialization.
GitOrigin-RevId: 0623c909eb05c6144b9443f1f287ddd8eafd874c
2020-06-18 02:42:01 +03:00
levlam
c921bcc5ed Improve NetQuery public field names.
GitOrigin-RevId: cfa0dbd98c1b03e4e86d62fc6486fcf90e72ef25
2020-06-10 02:44:54 +03:00
levlam
6ed1a04cf1 Remove remained TON integration methods.
GitOrigin-RevId: 5d2045602cc31fb24225b604b11dacee88a1b65e
2020-06-08 02:12:57 +03:00
levlam
23bec2101f Improve logging in config recoverer.
GitOrigin-RevId: c385a9c138f1f6a8a0d84b64246edca76a2705c5
2020-06-01 23:52:25 +03:00
levlam
6196bab690 Add td_api::updateAnimationSearchParameters.
GitOrigin-RevId: 6f53679977437f279a10fee8b6b1069d37a4e7a6
2020-05-30 02:42:45 +03:00
levlam
dadeb6223e Update dice_success_values before dice_emojies.
GitOrigin-RevId: 025b2aeca96bef65bcb3120a8dff6a4792e08aa5
2020-05-22 20:59:00 +03:00
levlam
6f885c41d9 Rename crypto to RSA.
GitOrigin-RevId: 4c15f44c0d5c618933b7c1aecb3580664a15a557
2020-05-17 17:07:16 +03:00
levlam
aa6029f63c Remove "disabled_" options clean up.
GitOrigin-RevId: 67e05fa327e327f9182051099aff23f246f1c6c5
2020-04-23 17:30:48 +03:00
levlam
851d23f06c Add messageDice.success_animation_frame_number.
GitOrigin-RevId: d0afff34c7d74fe5e06b008b7a8438be4aebe88b
2020-04-21 19:08:01 +03:00
levlam
7336134ff3 Implode dice emojis after parsing.
GitOrigin-RevId: 6b1616409a240566a634c1e71fb194824e4c97b8
2020-04-21 15:45:33 +03:00
levlam
8109988247 Add messageDice.need_success_animation.
GitOrigin-RevId: 1c308f71d628d896321ce331c634a6868f504bc0
2020-04-21 14:51:46 +03:00
levlam
8681b76de2 Minor fixes.
GitOrigin-RevId: b75bac1586ed36b91b7c2ab64c386f94f18d8539
2020-04-21 03:29:20 +03:00
levlam
fc3a8105a3 Add updateDiceEmojis.
GitOrigin-RevId: 8495528763939fda21e04eac8555aaed975ded62
2020-04-19 11:17:51 +03:00
levlam
bcc8dbc158 Use Global::is_expected_error whenever appropriate.
GitOrigin-RevId: aba8ee6e3dc1ab6e680a5ae10f6c3d217ab0a8dc
2020-03-31 00:35:58 +03:00
levlam
d06a786a16 Simplify NetQueryCreator and remove mtproto dependency on telegram_api.
GitOrigin-RevId: 2edfc9d6d80eab8716dfd3722f6aebe53dba1e47
2020-03-16 01:01:14 +03:00
levlam
b8848a2ab4 Simplify NetQuery creation.
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
8d01251f8b Add NetQueryCreator::create_unauth.
GitOrigin-RevId: 79043a3662b0353f000f388b3ee2763abf49fe2d
2020-03-15 04:51:14 +03:00
levlam
b4138231ec Remove total_timeout_limit parameter from NetQuery creator.
GitOrigin-RevId: 5c5a15654176061a64c0f167633a7842192200ba
2020-03-15 01:44:21 +03:00
levlam
3e559e457c Improve names of RSA methods.
GitOrigin-RevId: b6f61f141987f282b5cf4faa9ff6cdf1219e8562
2020-03-10 18:27:43 +03:00
levlam
92df8f9827 Remove unneeded brackets.
GitOrigin-RevId: 0b8a2ae21d28e6c276db8b45ffb4d127800f5d73
2020-02-26 18:15:19 +03:00
levlam
63f8828003 Fix Mozilla DNS.
GitOrigin-RevId: fe9b90187b5c688272ef399799b7faa029cdcd95
2020-02-26 16:17:43 +03:00
levlam
182e8d29f0 New domain for DoH.
GitOrigin-RevId: 0ff1b52e9b8fade7ffa50e099789dcb3d12914ec
2020-01-25 23:36:49 +03:00
levlam
4922ae62e0 Return back HttpQuery in get_simple_config_impl.
GitOrigin-RevId: 391c0c8cdd74633e57bc0780e1060c561468417a
2020-01-08 17:42:55 +03:00
levlam
eecb70d006 Minor fixes.
GitOrigin-RevId: b8276b548fca9ede4bd2caf27bd45ccc54c93dda
2020-01-07 18:16:57 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
Arseny Smirnov
e7e1521fd2 Fix example/tdweb build
GitOrigin-RevId: f924d875361fc363af32e5d703e3cac373927405
2019-12-23 21:33:03 +04:00
levlam
a2cf11ddc9 Do not request app config by bots.
GitOrigin-RevId: 6bf7a97e0824827b9f23856407fe4d489a40f45b
2019-12-23 16:14:43 +03:00
levlam
7ed9751b22 Add check for null AuthManager just in case.
GitOrigin-RevId: 01fc067b0705589e164fae63a21b405d6813459f
2019-12-20 16:16:30 +03:00
levlam
cefc10e0ba Send updates when ignored_restriction_reasons changes.
GitOrigin-RevId: 8c30b41dfb3a34c9eca3d8a7be4622ee172593de
2019-12-20 16:11:58 +03:00
levlam
4ce946a310 Reload app config after ignore_sensitive_content_restrictions is changed.
GitOrigin-RevId: fa7438017444e41a9b067d52c681e101579cc978
2019-12-20 04:19:40 +03:00
levlam
761a3dab9e Ensure that last set value of ignore_sensitive_content_restrictions is set.
GitOrigin-RevId: 266ac32fac8906b852a9e47561f5f83be74885bc
2019-12-20 04:06:38 +03:00
levlam
7a92ee35fc Allow to set ignore_sensitive_content_restrictions option.
GitOrigin-RevId: 17899f72c0485c821c150a258232e1348195a936
2019-12-20 02:58:41 +03:00
levlam
6d8a816a68 Add ignore_sensitive_content_restrictions and can_ignore_sensitive_content_restrictions options.
GitOrigin-RevId: 9a46d3eae3b8e17b51cf33b02e14aedc84261800
2019-12-19 23:00:28 +03:00
levlam
57911db0ba Support ignored restriction reasons from appConfig.
GitOrigin-RevId: 8831b4379764cfd36212083c889449c3d7354114
2019-12-19 19:58:33 +03:00
levlam
b85ba297ce Add blockchain-related options.
GitOrigin-RevId: 70b02df6ad5006b8b13733b070c72e4bb4a9698f
2019-12-19 19:18:42 +03:00
levlam
6605a8c3a7 Automatically get app config after getConfig and preprocess it.
GitOrigin-RevId: 318c01f2718422fe6abad423f10de7549ae63620
2019-12-19 04:58:03 +03:00
levlam
ddd8e6fa0f Move help_getAppConfig receiving to ConfigManager.
GitOrigin-RevId: 310743ea038dffebd59c9b612438bc7cfc7553a4
2019-12-19 04:23:14 +03:00
levlam
4ce3005081 QR code authentication fixes.
GitOrigin-RevId: 29108234fa8afc589ac7248ad1fdc92ec1d0ffaf
2019-12-18 03:47:51 +03:00
levlam
917a3af6ac Fix some includes.
GitOrigin-RevId: c82e599631dd678f2c69fbf7fd3e9b3cd23ed965
2019-11-26 21:57:48 +03:00
levlam
f765bc547a Use server-provided domain name.
GitOrigin-RevId: b74c8b484c592c51beaa34acc228b74aeed9fcb7
2019-11-12 22:21:37 +03:00
levlam
1e018da7b8 Various fixes.
GitOrigin-RevId: b09e5fda6d25bd027f6bcbcbbe8324567b8ddcf8
2019-10-22 20:01:15 +03:00
levlam
56c3a2fbed Use td::remove_if.
GitOrigin-RevId: 5cf21381966dc58689a06cc94cb8843fd8087bb9
2019-10-21 16:25:56 +03:00
levlam
c1afa189f3 Support multiple chat lists.
GitOrigin-RevId: 8adecce0ddf36bb2408eecc19b7f1fc8856151fc
2019-08-22 18:24:02 +03:00
levlam
110b3d5832 Add get_simple_config_firebase_firestore.
GitOrigin-RevId: 2c89f7667148f601d16aba01068ebb4f74bd12f8
2019-11-19 19:26:39 +03:00
levlam
4ce54818a3 Add get_simple_config_firebase_realtime.
GitOrigin-RevId: 04b3aedcbe9ec1985f69cced34b0d890eedcf934
2019-11-19 19:01:12 +03:00
levlam
d462e21d20 Simplify get_simple_config_dns.
GitOrigin-RevId: 4488e1241c2678199e173deb5548d904ec5e6afd
2019-11-19 18:12:51 +03:00
levlam
9fb3cee419 Add get_simple_config_firebase_remote_config.
GitOrigin-RevId: e96d20dfd6aba3ce981fc88ec7533852870f8311
2019-11-19 17:58:24 +03:00
levlam
9ed550bdb1 Use get_simple_config_mozilla_dns.
GitOrigin-RevId: 5b1605e5ca53485130dd12d727352f6e4682ffec
2019-10-03 22:28:01 +03:00
levlam
2e0949c10a Add get_simple_config_mozilla_dns.
GitOrigin-RevId: 53ffccf02ebd41d4b11146ae3b0206f6fa5db5aa
2019-10-03 22:20:15 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
levlam
197acde4d4 Fix first letter case in error messages.
GitOrigin-RevId: 004d1535d3fb04e51a088ad43f2386dea05b7c9c
2019-08-26 04:53:22 +03:00
Arseny Smirnov
5a032743e6 Fix errors from tdutils import
GitOrigin-RevId: 3709df12a3050cf05e2bb482b49490a4e874f075
2019-08-12 16:53:17 +03:00
Arseny Smirnov
87e6f6cc59 Trying to fix ConfigRecoverer closing
GitOrigin-RevId: 017d45256e9fffb728cbe2abc175ab5b796265de
2019-08-09 15:14:07 +03:00
levlam
2b7511d07f Rename AuthState to AuthKeyState.
GitOrigin-RevId: 7211994ddf6e267342ba29010328387093549e5c
2019-07-23 02:14:34 +03:00