Commit Graph

210 Commits

Author SHA1 Message Date
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
levlam
98b8929932 Fix includes.
GitOrigin-RevId: 7b62de39f2d62ac8c14c24fb83041c717ba49873
2019-07-23 01:50:12 +03:00
levlam
5de928006b Fix GCC CE and warnings.
GitOrigin-RevId: 21c7aa0f95f6534c8d8f1515fc93c67b55bb7998
2019-07-22 07:05:50 +03:00
levlam
db8539d9df Fix usage of HttpDate in ConfigRecoverer.
GitOrigin-RevId: 17007d6b0afe58a0479d3d596bc4463548a26930
2019-07-11 23:32:45 +03:00
Arseny Smirnov
8fdd8910e7 ConfigRecoverer: support tls obfuscation
GitOrigin-RevId: 9a924ee86fe042a9fd1acf44eeeb25c0ab4e8bbb
2019-07-11 13:25:20 +02:00
levlam
64517c9165 Fix checks for additional data at the end.
GitOrigin-RevId: 66067600bec585ad2c310c7adc263a5e88232653
2019-07-11 03:12:27 +03:00
Arseny Smirnov
3a9ec3fc29 ConfigRecoverer: support tls obfuscation (not tested)
GitOrigin-RevId: edc982ee6d1ce2834a80464a7b20ef712f465814
2019-07-09 16:45:38 +02:00
Arseny Smirnov
a695b0823c Better logic for time difference in tls obfuscation
GitOrigin-RevId: bbd69762a4700571ed7c67b4afbf30950b79b638
2019-07-04 18:21:07 +02:00
Arseny Smirnov
33e306f800 ConfigManager: update server time difference from simple config
GitOrigin-RevId: 57987f3453d99fba787318a951d1cc5e8706c659
2019-07-04 15:13:45 +02:00
levlam
a5413cf50d Explicitly use unique_ptr<HttpQuery>.
GitOrigin-RevId: 1d729c6b0a3d1deaf3423672414f155492b7a0e8
2019-06-17 19:12:54 +03:00
Arseny Smirnov
ef4f719563 Use Ping with mtproto_api::ping if possible
GitOrigin-RevId: fa80dc2a2c44e416bcb50b76ba2bc64de91f8de8
2019-05-06 20:53:39 +02:00
Arseny Smirnov
1785a965d5 SessionMultiProxy: collect stats about sessions
GitOrigin-RevId: 96720f7beca9d34897d8a1076639e58422eac770
2019-03-15 20:00:18 +11:00
levlam
9995e9aa5b Base language pack support.
GitOrigin-RevId: 165941c5074e49f66e5f5aeded77ca0372a0ab3f
2019-02-11 03:45:09 +03:00
levlam
0075f91e2e Unify spelling of "expires_".
GitOrigin-RevId: 46aaff38317dd490f9d5a1250e426d94cb8aba75
2019-02-10 03:45:15 +03:00
levlam
7542612098 Fix some includes.
GitOrigin-RevId: 47d6bcd57e12314cc46c8f23ef10c10cea04fdcb
2019-01-31 05:05:40 +03:00
levlam
45d5c6c626 Allow random-padding connections to server.
GitOrigin-RevId: ebbcd7074837f4d51ec31445a9e8c820472afeee
2019-01-23 06:13:51 +03:00
levlam
5438119bb4 Fix Global.h and TdDb.h includes.
GitOrigin-RevId: 89fa1ee3e8071ad3f27687f79d1a52de113f9705
2019-01-06 22:59:17 +03:00
levlam
b06a08b106 Add separate key for test DC.
GitOrigin-RevId: 6417cbe9ed98ca7c280e0f5882f11d69610386c1
2019-01-02 02:43:37 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
b1a1b332c7 Add config_recoverer log tag.
GitOrigin-RevId: f0d757f9bc5079a47c5896322c4b7512a9451492
2018-12-26 23:58:18 +03:00
levlam
b676fe509a Move UInt to UInt.h
GitOrigin-RevId: 52b6d36d1ece8c267f5548000b2592ffd3a62ded
2018-12-20 00:18:53 +03:00
levlam
fdd7987f0a Fix preloading of just received in getDialogs dialogs.
GitOrigin-RevId: 0ff17a84046f76ede0ec4efda0707477b0ab9397
2018-11-18 00:24:19 +03:00
levlam
c53eaf92a7 Support notification related options.
GitOrigin-RevId: f6e5574fe1466f779995fb3e2914fa48ba844ffe
2018-11-16 01:03:04 +03:00
levlam
be92820691 Use online_update_period_ms option.
GitOrigin-RevId: 8354e248ff424d4bed7eb474521bdd2c9685f522
2018-11-08 16:06:17 +03:00
levlam
2c6bd673c7 Use as_slice<Int> if possible.
GitOrigin-RevId: 931b5609e2eae0d5655287e84a71724f07d4090c
2018-11-06 19:00:03 +03:00
Arseny Smirnov
27770ce060 Destroy mtproto keys on logout
GitOrigin-RevId: 8ac2bafd2d1897dc0942a33d8406ea8c2e5dfaa7
2017-12-29 23:34:39 +03:00
levlam
51eec319b8 Fix some includes.
GitOrigin-RevId: 4c81e2fd0101f3c5bb23912681e7d02a60da5622
2018-10-28 20:30:47 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
ad26781fbc Update language pack API.
GitOrigin-RevId: 252723bc424afb8e0eb3c1647198e302b23e10db
2018-09-04 04:29:26 +03:00
Arseny Smirnov
ab2b189722 Ssl refactoring
GitOrigin-RevId: f5916787608227b6914c10520dfe7a7039522ef9
2018-08-15 15:41:42 +03:00
levlam
debb0cf186 Use online status in ConfigRecoverer.
GitOrigin-RevId: ffc119b35bd2a42a236de90e3393c325d36478a9
2018-08-05 00:35:50 +03:00
levlam
296950f1cf Add suggested_language_code option.
GitOrigin-RevId: 67472e28774cb506f11687d0ac86b24cb707dfc9
2018-07-03 01:52:43 +03:00
levlam
1e62b66677 Fix get_simple_config.
GitOrigin-RevId: f913ca35a86e2b45d4de510772a487e5689b5a59
2018-07-02 04:21:05 +03:00
levlam
5a11dd6c58 Support prefer_ipv6 in Wget.
GitOrigin-RevId: 80740a20f38174235160e05b1854e7023ebe3677
2018-07-01 04:45:25 +03:00
levlam
06481d89dd Fix G()-shared_config() usage.
GitOrigin-RevId: f372b36b83238ab2415c16e3fbd7bd5597b876b4
2018-06-30 16:35:37 +03:00
levlam
6bd1ee47a9 Add *_search_bot_username options.
GitOrigin-RevId: 969324d6b3443dd8f351173ed0fb87b2443eaf44
2018-06-27 02:35:32 +03:00
levlam
b20c77d459 Add message_*_length_max options.
GitOrigin-RevId: 27fc7c79b0820916daaf23745078a4204c3dc6c9
2018-06-27 02:28:49 +03:00
levlam
e806037eea Support dc_txt_domain_name.
GitOrigin-RevId: 6762d63f67b886cb990eae24536adcabda557316
2018-06-26 23:46:15 +03:00
levlam
46535703e0 Fix some includes.
GitOrigin-RevId: 901d167d7197e4c0222656e9fc1f9fc0e216e44b
2018-06-26 02:43:11 +03:00
levlam
aa13a57a3c Update layer to 82. Contact.vcard support.
GitOrigin-RevId: 302d65351cfaeb6b4e82c594565ab1aef18b2a42
2018-06-26 00:10:53 +03:00
Arseny Smirnov
3c1698dddf Session: cache salt for temp keys, better on_mtproto_header
GitOrigin-RevId: 02ba02aaf86e36402536d98d7bb80fd198c68378
2018-06-13 18:17:27 +03:00
levlam
cb1e0374af Minor fixes.
GitOrigin-RevId: 7deac5583350d64cf6fd0e323f2291804e3ba995
2018-06-05 20:44:41 +03:00
levlam
ef01eba051 Remove debug logging.
GitOrigin-RevId: 2141ef5fcea0a84e60db3dfaf397efdc05d5c597
2018-05-24 20:08:47 +03:00
levlam
dd40469ee8 Fix check_phone_number_rules.
GitOrigin-RevId: 9ecdc91dfc0b9f5f07af987a822cd607cbe690b1
2018-05-24 19:40:00 +03:00
levlam
0e48dd8a81 New ConfigRecoverer scheme.
GitOrigin-RevId: 1101ddc56b0836387faf089ca52fe7376db9f88f
2018-05-24 18:09:27 +03:00
levlam
db6777c7f2 Use p_q_inner_data_dc.
GitOrigin-RevId: f1e57b83d850ac4233bf9508b6585aaf0efe1423
2018-05-23 19:49:05 +03:00
levlam
b3ca84fffb Delete unused fields. Add test.
GitOrigin-RevId: 6ce7ff71d926142a7c178d56a2f489f1634322b9
2018-05-18 19:44:46 +03:00
Arseny Smirnov
45a20f6929 Use persistend AuthKey in ConfigRecoverer
GitOrigin-RevId: 6c4ce6dc49d226de585c7c43d41471271c9fcca1
2018-05-18 14:38:49 +03:00
levlam
cb6c46071e td_api::getProxyLink.
GitOrigin-RevId: 0d876446bbbb22467c452b088f4df24e7e1624a2
2018-05-17 21:08:51 +03:00
levlam
a37dfc406b Delay before sending read history request to server.
GitOrigin-RevId: 5452973469e6142cefa00d063ceef36add728f14
2018-05-03 15:36:05 +03:00
levlam
821bc642cf Update layer 78.
GitOrigin-RevId: 8aac14c20fc90c6a0b118fbbe80d4b83034416a2
2018-05-03 13:18:07 +03:00
levlam
1a0c874a67 Update layer to 79. Some fixes.
GitOrigin-RevId: 9356eee58e48d7c191a1bccb7e25d6875a07fb51
2018-04-24 19:21:47 +03:00
levlam
2c4678a1e3 Send NetQuery to callback when closing.
GitOrigin-RevId: 6e564fd9401ae4352471d2938058d02e54c73f05
2018-04-19 20:21:26 +03:00
levlam
04025da201 Fix config parsing.
GitOrigin-RevId: 743eb7389b4230eada48bbe9ed1e4c5ed1aba8ca
2018-04-02 23:37:45 +03:00
levlam
8b2df8c233 Add new get_simple_config URL.
GitOrigin-RevId: 911173a3eb4756590745adafb9e10fdbe741f105
2018-03-12 21:04:03 +03:00
levlam
c2dbb601cf Fix process_config.
GitOrigin-RevId: ea657dfc621fdf13a1641377a2bef6ddd396172a
2018-03-08 18:01:45 +03:00
levlam
6669bd8c7b Support for recent_stickers_limit.
GitOrigin-RevId: f49119eb0703bb03e7c564a4f90a1f91f9c6074b
2018-03-08 16:49:45 +03:00
levlam
43e0d385f2 Update layer 76.
GitOrigin-RevId: 10c40c6e3eb3a540aa3dce8967be964f39b76cd3
2018-03-05 18:34:33 +03:00
levlam
6990be78d8 Add t_me_url option.
GitOrigin-RevId: 2befb7b1112200c7df36082e5305a96117c56c36
2018-03-05 17:36:15 +03:00
levlam
c1e3f2d65d Use new config constants.
GitOrigin-RevId: 6f0d02a9ca91e7db2d416eb89861080ff9f6f30c
2018-03-04 23:50:38 +03:00
levlam
d1f1a14a37 Update layer to 76: add messageWebsiteConnected.
GitOrigin-RevId: 8cb5128a7d7eac2afe0622fc901392bf318fa460
2018-02-22 03:36:40 +03:00
levlam
c407c507ad Fix some std:: namespace function usages.
GitOrigin-RevId: f867d613f9f86fa25a2a7ead29c0a7dadfb8402d
2018-02-14 00:41:45 +03:00
levlam
a6ab35e616 Replace std::max/min with td::max/min.
GitOrigin-RevId: 56fb21194e995cbb37b3ebb5caed689c10320b8d
2018-02-12 13:37:54 +03:00
levlam
99c3946d41 More connection_recoverer logging.
GitOrigin-RevId: c86cdef27ec3beacfe6883a100d95a36019a902b
2018-02-07 23:48:40 +03:00
levlam
5cbda834bd Update copyright year.
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
2018-01-02 16:45:09 +03:00
Arseny Smirnov
71d03f39c3 Project import generated by Copybara.
GitOrigin-RevId: 318483224ad6164d9966f731d60cde37039bb2d4
2017-12-31 23:08:40 +03:00