Commit Graph

158 Commits

Author SHA1 Message Date
levlam
60907279fd Add missing checks for close_flag in Timeout callbacks. 2021-11-13 22:37:41 +03:00
levlam
616b0e6d6f Improve ResultHandler/NetActor td_ private field name. 2021-11-08 15:20:38 +03:00
levlam
0c1e268706 Don't generate MASK for parsed True fields. 2021-11-01 21:53:23 +03:00
levlam
00a349656d Unify td/telegram/include order. 2021-10-27 17:32:09 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
5091aa68e3 Allow direct access to TopDialogManager. 2021-09-24 23:17:38 +03:00
levlam
d6f3d9f08a Use error code 400 instead of small error codes. 2021-09-24 10:59:51 +03:00
levlam
075d004b9f Replace getChatThemes with updateChatThemes. 2021-09-13 15:55:01 +03:00
levlam
c5437ef918 Improve logging on loading authorization state. 2021-07-26 21:06:59 +03:00
levlam
709afe3f0c Add checkAuthenticationPasswordRecoveryCode. 2021-06-28 22:33:08 +03:00
levlam
1394d5d697 Support new_password in recoverAuthenticationPassword. 2021-06-28 21:36:54 +03:00
levlam
3c400f12b4 Support new_password in recoverPassword. 2021-06-28 19:47:23 +03:00
levlam
da2d81c81b Update layer to 131. 2021-06-28 15:55:11 +03:00
levlam
2b7b6b7759 Improve logging on log out. 2021-06-27 05:52:43 +03:00
levlam
4f644ce389 Add and use statis UserId::get_user_ids/get_input_user_ids methods. 2021-03-29 00:50:15 +03:00
levlam
0339921102 Improve some spelling. 2021-03-15 03:32:14 +03:00
levlam
dd80b0ef25 Add Td::set_is_bot_online function. 2021-03-02 04:06:02 +03:00
levlam
0acc29b1d2 Treat bots as always online. 2021-01-11 22:22:18 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
95feb7baa5 Disallow checkAuthenticationBotToken in Ready state.
GitOrigin-RevId: 74290424fabe07988d646ee17e831911ffcd1594
2020-09-25 01:11:17 +03:00
levlam
1fe397e43d Make optionValueInteger value int64.
GitOrigin-RevId: 7da1c4f051691ff7df31627115a9a37e6c5d5802
2020-09-25 00:46:16 +03:00
Arseny Smirnov
c1252ad929 Remove copy-paste
GitOrigin-RevId: 991db7c79885c44d71095c83fd75311db66b5305
2020-08-18 18:29:45 +03:00
levlam
641485502e Remove copy-paste.
GitOrigin-RevId: cfac1de1eb79634dd846e852ae4b7ac83e126374
2020-08-17 17:35:15 +03:00
levlam
cb4291d803 Remove unneeded updateAuthorizationState updates.
GitOrigin-RevId: 8369fce80f0d67317a836fcc5fbe02f618c6aa99
2020-08-17 17:04:45 +03:00
Arseny Smirnov
1f9529520f NetQuery: support priority
GitOrigin-RevId: 84290ffa7689364f74140c5b951b95ea4792b68d
2020-08-17 16:13:18 +03:00
levlam
3175e6680f More uses of td in AuthManager.
GitOrigin-RevId: 5b5427ec16f93b309cebdb2115473b38d2d3dab4
2020-08-16 10:17:17 +03:00
levlam
c5059bcac3 Minor fixes.
GitOrigin-RevId: 28f8cabca2f70ba692f8713ec68866495061b31a
2020-08-05 20:36:13 +03:00
Arseny Smirnov
3fb9b8a992 td: relax limits for connection creation during logout
GitOrigin-RevId: 2c7e81d931a36cecaaf8dd1b463365d3e039873f
2020-08-05 19:49:34 +03:00
levlam
cc28bdeae3 Fix "log out" spelling.
GitOrigin-RevId: e943fa4531d4d15043f762883eb8b77d9c58365d
2020-07-23 00:19:47 +03:00
levlam
fcd09d5c25 Fix error logging.
GitOrigin-RevId: d734897ab870154d47a3e576ba3cba8eb4d3156e
2020-07-22 21:28:20 +03:00
levlam
10c3cc2a51 Improve logging.
GitOrigin-RevId: d724bc73494d5ad5f19bc5d0e87c6bdc361183ee
2020-06-18 03:49:31 +03:00
levlam
36b8ab4d1d Fix MessagesManager initialization after authorization.
GitOrigin-RevId: bf9c4068876e778316218997c41392228633ab7d
2020-06-04 02:02:17 +03:00
levlam
7680ccf967 Do not reload dialog filters before authorization.
GitOrigin-RevId: c76d4e0a87a24c41a82d288534b4c3c201bf963b
2020-06-03 19:21:59 +03:00
levlam
cc77e7e9ca Add td_api::createChatFilter.
GitOrigin-RevId: 4c3fa89cae21b1db3643cfe7640d8ef1043b99f9
2020-05-18 22:26:44 +03:00
levlam
0af026dd63 Poll promo data always.
GitOrigin-RevId: cf678c7389289dae6f7c040179bb60b86f1cac41
2020-04-30 21:00:58 +03:00
levlam
269047d133 Remove AuthManager::set_is_bot.
GitOrigin-RevId: b56180dda8aab189c0cb3a3d2f5624e4a5307366
2020-04-30 00:54:43 +03:00
levlam
b343e148e8 Do not iniitalize stickers manager before authorization.
GitOrigin-RevId: 497a09aeb0c7f8cadb00902d1ceeceaa144c0885
2020-04-17 16:12:12 +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
123361b26a Better check for is_bot.
GitOrigin-RevId: a4dc6b4b2a38eb3474b2265af32b56f8500818df
2020-01-05 15:24:37 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
3d574e39c3 Fix login link URL.
GitOrigin-RevId: 064e31b5b095db03ccd7cb9cb3b4e1fabc92aba0
2019-12-31 16:20:29 +03:00
levlam
adb10460b2 Minor fixes.
GitOrigin-RevId: 0c678ad195683947355b63af5aff49875312b4a3
2019-12-23 20:48:30 +03:00
levlam
f9f8b832e3 Allow one day to enter password or register.
GitOrigin-RevId: cc32c0ba6f89a39234e1456739ff8cff09b3649d
2019-12-20 16:21:55 +03:00
levlam
205e68bf8b Simplify SendCodeHelper::send_code.
GitOrigin-RevId: c89daaa0958aebd4fc09cf9690369b80721cafb3
2019-12-18 19:08:05 +03:00
levlam
2536665c43 Improve parameter name.
GitOrigin-RevId: 2ea724125713026235a8805587c664f7382794f6
2019-12-18 05:07:36 +03:00
levlam
3acb445d1c Fix GetPassword errors processing.
GitOrigin-RevId: 5ebddd0d2ad1630eb8a4c2081d9bc724c72ff307
2019-12-18 04:08:34 +03:00
levlam
4ce3005081 QR code authentication fixes.
GitOrigin-RevId: 29108234fa8afc589ac7248ad1fdc92ec1d0ffaf
2019-12-18 03:47:51 +03:00
levlam
9f60d0bae1 Support QR code authentication.
GitOrigin-RevId: 140381ee80339b5ac2e15f149ad3a37688200e88
2019-12-17 19:17:57 +03:00
levlam
56eb8e0f9a Update layer to 104.
GitOrigin-RevId: a83eaf0a77fba5ccb0d34f690b2031c2ff5550f2
2019-11-08 19:23:05 +03:00
levlam
c72ba02d85 Write to the log message when account is banned.
GitOrigin-RevId: 087777440601fc56f9289fc8140497a1553755db
2019-09-02 19:24:50 +03:00
levlam
e7767cf106 Fix formatting.
GitOrigin-RevId: e78b1517297af214b7738350411d3e1e520a2066
2019-08-06 20:11:31 +03:00
levlam
09aa775fe7 Allow to call CheckAuthenticationBotToken multiple times.
GitOrigin-RevId: ee1f6bd74f0e7d573afade705b47102aa51e5317
2019-07-28 21:17:47 +03:00
levlam
b1347c3226 Add separate authorizationStateWaitRegistration.
GitOrigin-RevId: 1e41124d6174e956ce74266c9140ad346cf8a6f0
2019-07-16 22:08:34 +03:00
levlam
68b2d10fdb Add td_api::phoneNumberAuthenticationSettings and support automatic code retrival from SMS on Android.
GitOrigin-RevId: f97bd5bf3eb7449da1b14242fa47537801657b04
2019-05-03 05:44:59 +03:00
levlam
4894992e29 Fix logging out befor logging in.
GitOrigin-RevId: f424f10e00ad57c9c0cb44fc60267f098106a120
2019-04-21 02:23:26 +03:00
levlam
b9d73b5c47 More start_up and bots fixes.
GitOrigin-RevId: 1f72829332cea0b863cb7813b490782f0ed39db3
2019-03-05 07:35:17 +03:00
levlam
063e8872df Fix notification usage for bots.
GitOrigin-RevId: 4645b1c91e5bb1e6a7ef5429efe690c52a8ee257
2019-03-05 06:01:49 +03:00
levlam
93494cf048 Fix log messages style.
GitOrigin-RevId: f99e2e838220826d3dea7fdc33c43ac9918a5efd
2019-02-21 18:58:20 +03:00
levlam
0d1be06cae Minor fixes.
GitOrigin-RevId: 252036493c4c9e94367ef13246bde96b2f89415a
2019-02-17 16:52:34 +03:00
levlam
5d1f93c1c5 Add PhoneNumberManager.h.
GitOrigin-RevId: 7823601e61375efd9e7166add8028d3f5ee6ad1f
2019-02-16 19:01:47 +03:00
levlam
b52a66bf12 Add SendCodeHelper.h.
GitOrigin-RevId: 0e8ad767eb1415856b329f508d8741bf4e7912f7
2019-02-16 18:49:39 +03:00
levlam
8ffcd29f11 Ignore duplicated auth.authorization.
GitOrigin-RevId: 235ebefb1bad5281bdfaa74447571287265ebb6b
2019-02-16 18:35:01 +03:00
levlam
e22e23a5ff Add source to on_get_user and on_get_chat.
GitOrigin-RevId: a3f187dc0d7d981df6ca3f2566f66678b4ad4774
2019-01-12 06:48:39 +03:00
levlam
5438119bb4 Fix Global.h and TdDb.h includes.
GitOrigin-RevId: 89fa1ee3e8071ad3f27687f79d1a52de113f9705
2019-01-06 22:59:17 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
d810f11e2e Stable check in is_bot.
GitOrigin-RevId: d119b007e91dcd9a33179a3f32727b998825a97e
2019-12-30 03:21:46 +03:00
levlam
ca1503c22f Fix some includes.
GitOrigin-RevId: a57e47e5925fe1e96080945d40641c84b4e30669
2018-12-27 22:24:44 +03:00
Arseny Smirnov
071e8b1d6d tdweb: 0.2.24 (unstable), automatic wasm streaming support, and experiments with private mode in firefox
GitOrigin-RevId: caafea864dc13fe881a90d3db19ddf442c3bd0ac
2018-12-27 20:27:26 +03:00
levlam
8eb396ae87 Fix updateAuthorizationState on destroy.
GitOrigin-RevId: 584e09935420af73d049a7f9ca669a16f2205304
2018-12-26 22:04:46 +03:00
levlam
7ce738f619 Fix verify and Confirm for phone number.
GitOrigin-RevId: a643f7fcd1bfd0909d99aee80babe7952790a9d9
2018-12-19 00:13:33 +03:00
levlam
9d3ab75c56 Fix some spelling.
GitOrigin-RevId: 351e7c32fee3fb9249d561434ba1515082e757b0
2018-12-14 01:48:36 +03:00
levlam
bd531081ad Add Notification.h.
GitOrigin-RevId: e102973d5585fdf346ac01b09bd2262f9c11fd2e
2018-11-26 20:05:06 +03:00
levlam
e59ea01c4d Do not forse updateStatus after authorization.
GitOrigin-RevId: 323778dd60fb3f438f2af466df2eb26b89471d1c
2018-11-18 01:54:25 +03:00
Arseny Smirnov
27770ce060 Destroy mtproto keys on logout
GitOrigin-RevId: 8ac2bafd2d1897dc0942a33d8406ea8c2e5dfaa7
2017-12-29 23:34:39 +03:00
levlam
2540555ae5 Remove source from get_my_id.
GitOrigin-RevId: 623c24323b55937866841c4b0f32b109c513983b
2018-10-08 17:21:56 +03:00
levlam
db14b2da4e Add dummy td_api::getCurrentState.
GitOrigin-RevId: 31ea0cfdc0c715fec52ef27340bed7358b13e042
2018-09-20 19:33:41 +03:00
levlam
bd09e39788 Fix logging in after entering a wrong password.
GitOrigin-RevId: 3f0284a015fb9b59257befc5d988833ecdaa1f64
2018-08-13 12:24:37 +03:00
levlam
8283d04942 Auto log in if password was removed just after code checking.
GitOrigin-RevId: f01d53b5d93ec20690a4099d8be1d60d6b9ca3c1
2018-08-13 01:44:53 +03:00
levlam
d3bce1b23d Fix some includes.
GitOrigin-RevId: a3fecf68a676120e1bbd5936d98dee6cf05e8294
2018-08-10 21:54:17 +03:00
levlam
00fabb8f97 Update layer to 84.
GitOrigin-RevId: a2057596f00201ee967e7d038e048b618f6e629d
2018-08-10 16:22:48 +03:00
levlam
c9c2760173 Update layer to 83.
GitOrigin-RevId: 2220a0399ed081441fefc06069b06efa11b8447b
2018-08-04 09:55:49 +03:00
levlam
c40cacfa34 Marked as unread support.
GitOrigin-RevId: b439d8365dad9580cf2d93f97037a2f37cd83adf
2018-06-28 00:08:44 +03:00
levlam
a3571b676e Allow to call deleteAccount before authorization. ConfirmPhone support.
GitOrigin-RevId: 36829ee37780ee82b1eb25cea594a673aa490dda
2018-06-27 21:26:52 +03:00
levlam
46535703e0 Fix some includes.
GitOrigin-RevId: 901d167d7197e4c0222656e9fc1f9fc0e216e44b
2018-06-26 02:43:11 +03:00
levlam
53f7e0cedf Terms of service update support.
GitOrigin-RevId: 3c4c34def98e06e9b6da5102614f797046ff0921
2018-06-08 01:19:34 +03:00
levlam
a72494d721 Support Terms of Service.
GitOrigin-RevId: 389c4ba590a4feb34ac6d801f9097291e87423d8
2018-06-07 21:42:17 +03:00
levlam
a038754fcb Allow to check code before entering first name on registration.
GitOrigin-RevId: be08dd29486959d4059f72af61c4c630afc812c3
2018-06-01 01:27:34 +03:00
levlam
7de9a0c15d New Proxy API.
GitOrigin-RevId: 2f96b8d1732c25e10a7568c6cf2dbbe26a150e4a
2018-05-14 22:00:38 +03:00
levlam
1c3ba5c3a3 Fix g++ Internal Compiler Error 2.
GitOrigin-RevId: d1881c8bc7ca03bfb6e48d93cd4217a0a14ab7d2
2018-04-09 21:53:43 +03:00
levlam
50ab1fd175 Fix g++ CEs, warnings and Internal Compiler Errors.
GitOrigin-RevId: 0d7213b04cbbe67157f93fcdcf76f11373b47470
2018-04-09 21:28:50 +03:00
levlam
184af85bfc Update layer 78: venue_type, email code length.
GitOrigin-RevId: c10dc49dd0ecd467a78b17081239305035f6e642
2018-04-09 21:06:37 +03:00
Arseny Smirnov
ed4a90a717 Phone number verification
GitOrigin-RevId: f20d2a822de49eaa558fcf0cd8ecfbfb8b3f75b8
2018-04-09 17:20:12 +03:00
Arseny Smirnov
fb79d6f95a Layer 78. Initial Telegram Passport support.
GitOrigin-RevId: 197994bcf62a76cd963f32a8dd7f5951d7b6588b
2018-03-27 16:11:15 +03:00
levlam
0d69e77689 Better load service notifications user.
GitOrigin-RevId: b98f1652ae0ca2afb506052b28413000dd6b2a74
2018-03-27 03:12:32 +03:00
levlam
d96aab7aeb Add phone_number to authenticationCodeInfo.
GitOrigin-RevId: 3bbf8676c1a1891b84753cc2ca489bcff52c780b
2018-03-15 19:59:57 +03:00
Arseny Smirnov
710f71701a AuthManager: persistent State::WaitPassword
GitOrigin-RevId: dd863c2484b16da1700e280b13adc01facb7c8bb
2018-03-15 13:06:26 +03:00
levlam
6855704b52 Better AuthManager storers and parsers.
GitOrigin-RevId: 20e1e7ed3591d1f99c0661164360822dd6d0b3e6
2018-03-14 22:47:08 +03:00
Arseny Smirnov
85d10e91c3 Store in db AuthManager in state WaitCode
GitOrigin-RevId: 06df8525c60f4de347c694e8c212a138c151ac4c
2018-03-14 21:04:41 +03:00