Commit Graph

122 Commits

Author SHA1 Message Date
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
levlam
9633b50112 Postpone authorizationStateReady if my_id isn't known.
GitOrigin-RevId: afa8d365f527672dc53424b03fff775a28569189
2018-03-09 04:17:38 +03:00
levlam
9fb92d8293 Restore unknown my_id in AuthManager.
GitOrigin-RevId: 00463e66676aba887ef3c12c7d8225ef224c0bc0
2018-03-09 03:52:12 +03:00
levlam
5986bb7df0 Send updateOption("my_id") before authorizationStateReady.
GitOrigin-RevId: 73fdce38a87ffb6fcea8bfa8b059f83dcd510007
2018-03-09 00:42:25 +03:00
levlam
a25cfc3e06 Fix is_bot.
GitOrigin-RevId: ac6909ef9ed31bfb7b4b34d015f54a7d6e97c3e2
2018-03-08 20:35:23 +03:00
levlam
a6ab35e616 Replace std::max/min with td::max/min.
GitOrigin-RevId: 56fb21194e995cbb37b3ebb5caed689c10320b8d
2018-02-12 13:37:54 +03:00
levlam
dc113f2b84 Send updateAuthorizationState after password recovery requested.
GitOrigin-RevId: e01fbf692be70a9de7f2e56e4469fe1795721172
2018-01-06 23:52:06 +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