Commit Graph

2911 Commits

Author SHA1 Message Date
levlam
b929a95fe2 Update documentation.
GitOrigin-RevId: 2dc3b759de07cea17cf3fb0d7569244ead20fbd0
2019-12-31 00:58:11 +03:00
levlam
0a81ed988c Update layer 107.
GitOrigin-RevId: c72dc88c76c98637f5c88a17adc3ae06e77c67a6
2019-12-30 14:57:48 +03:00
levlam
99b0e18f8f Improve documentation.
GitOrigin-RevId: 6797e4fe6ee2f819e5995d1b3ac0fef0e10f55e0
2019-12-30 13:26:53 +03:00
levlam
4f66f3bc43 Update layer 107.
GitOrigin-RevId: dd227dee04a77f488f3592e145725750031594b7
2019-12-30 04:56:24 +03:00
levlam
aee34460ef Support messages from scheduled in Push notifications.
GitOrigin-RevId: f2fb0c8553453f140083afdbd697aa2e420da4c3
2019-12-30 04:51:37 +03:00
levlam
b16caabe8e Add device token debug.
GitOrigin-RevId: 451f00d33959eddbd73381775df19338945898d9
2019-12-30 04:34:59 +03:00
levlam
fcb877b78c Treat messages from scheduled as incoming for notifications.
GitOrigin-RevId: b9b428fb65734a1b9b1a9733408ffd828db19f55
2019-12-30 03:31:33 +03:00
levlam
8e6623d3ea Remove expired notifications before recalculating last_group_key.
GitOrigin-RevId: 31723b071ffe0ebb0432aa7427f4537c51434a05
2019-12-30 00:20:25 +03:00
levlam
1411f33725 Do not correct system time.
GitOrigin-RevId: e11cae3fc0ba1e5fe5548b14ba3f65e296a155a0
2019-12-30 00:02:12 +03:00
levlam
34bea7d5d7 Fix CHECK.
GitOrigin-RevId: 96fb8c20d2622534cb3ff884ecb007ae49305d34
2019-12-29 23:39:54 +03:00
levlam
ba5ccf48c6 Add source to on_get_sticker_set.
GitOrigin-RevId: 90cccf55f20fc5dafb6c76a2f780f19a818487cf
2019-12-29 04:59:34 +03:00
levlam
65b793e06a Add push notifications encryption key debug.
GitOrigin-RevId: e127ea2dcc17bc76a4e01aa7ea7230ca53a95dad
2019-12-29 04:39:05 +03:00
levlam
24139cabab Disallow temporary mute for more than 1 week.
GitOrigin-RevId: 7741c7f2787fde7b836d1027ccb421938ddaf317
2019-12-29 04:26:00 +03:00
levlam
104623f179 Add static get_mute_until function.
GitOrigin-RevId: 8b265d6a76ca9741b6c5177597cc717dbcac9fe5
2019-12-29 04:08:10 +03:00
levlam
6903886372 Disallow calling setChatNotificationSettings in Saved Messages. It doesn't work anyway.
GitOrigin-RevId: bca3756bb3bc5f64c15543eda2f9cef3965a261d
2019-12-29 03:47:35 +03:00
levlam
2704d52f96 tg_cli: minor.
GitOrigin-RevId: f0e63c87b6c96e4b6f313c0112d559fd6e15eb3f
2019-12-29 01:46:30 +03:00
levlam
4abc124cce Add PublicRsaKeyWatchdog.
GitOrigin-RevId: b59695d96b97c6ef01a8dc0da89f07e9e250d61a
2019-12-28 15:04:32 +03:00
levlam
886d6e99c1 Fix PFS in CDN.
GitOrigin-RevId: 3c70f19e56b39fff1bd0c8351f30cd27e44b5368
2019-12-28 14:25:17 +03:00
levlam
27fb078cfe Add support for TGV patterns.
GitOrigin-RevId: 8e82497baf4f5906c72383e54af4d0ffd5ba45a5
2019-12-27 18:01:45 +03:00
levlam
49bacaf001 Init total count in archive if needed.
GitOrigin-RevId: e1dbc855a60270e7bf40cae5744d9d8800bdd466
2019-12-27 00:32:21 +03:00
levlam
6d742ec9b6 Improve logging.
GitOrigin-RevId: 19ebd22de4f0b6fd036f6d8ec2a40c6808f5f7b8
2019-12-26 23:03:56 +03:00
levlam
e05f97638c Store dialog_total_count between client restarts.
GitOrigin-RevId: 0631f79fd830352cd6f989ca020c8eadb212042c
2019-12-26 22:51:08 +03:00
levlam
f06e344c19 Add repair_secret_chat_total_count.
GitOrigin-RevId: c4b5f7d791a238aaf7cbd5655342d27fe2ae7080
2019-12-26 22:33:18 +03:00
levlam
ebb5949c4a Add repair_server_dialog_total_count.
GitOrigin-RevId: b7dc63b6f6c2efadf59236fbd6e6bee05d33e448
2019-12-26 22:19:25 +03:00
levlam
de1bf02774 Add updateUnreadChatCount.total_count.
GitOrigin-RevId: e53105b6b7e185fbe68714948a606465d349d0cd
2019-12-26 21:44:35 +03:00
levlam
03311836af Add DialogList.in_memory_total_count_.
GitOrigin-RevId: ab418de72778dc9a51761a5acbcf1fadc2116197
2019-12-26 05:21:09 +03:00
levlam
97ab18945f Add get_secret_chat_count database request.
GitOrigin-RevId: b1865d0e3255bb6d170d299896903947a9a841de
2019-12-26 04:12:26 +03:00
levlam
7e1fa1fcb9 Better warning silencing in force_create_dialog.
GitOrigin-RevId: 2f10cbe2091f2d2d8e15de8e813c5997954f9900
2019-12-25 22:57:12 +03:00
levlam
4e77501d9e Rename field to video_upload_bitrate.
GitOrigin-RevId: 0e6af52c8558086e7aac3b950609cdf2b2da1892
2019-12-25 20:59:19 +03:00
levlam
1fc1b76d5e Better logging for results of getChannelParticipant.
GitOrigin-RevId: 08918a4577fa4e7337903e221a96ceb3534c11a4
2019-12-25 20:31:27 +03:00
levlam
82c55c51a0 Better warning condition for changed message entities.
GitOrigin-RevId: 481d50debb7e41e132d6fdc17bb7d6370d17fc16
2019-12-25 20:17:17 +03:00
levlam
4678b5177c Fix quoted links in Doxygen documentation.
GitOrigin-RevId: 75e001cf8287154654fa5175401786e4684a95b1
2019-12-25 19:16:43 +03:00
levlam
a1b67327b1 Safe conversion to unix time.
GitOrigin-RevId: cd851e5196ea43269e7e3ec52ac0df8093966c9a
2019-12-25 18:35:36 +03:00
levlam
bd559bf13a Fixes for system_time_saved_at_.
GitOrigin-RevId: 1effe236b00a00facfec0d6492bd60fe52faa737
2019-12-25 18:03:08 +03:00
levlam
41b09d9c31 Minor.
GitOrigin-RevId: 35d3f55ed770982dd62046f8f0c46d9139f93f27
2019-12-25 17:36:31 +03:00
levlam
935161c20e Rename save_system_time to save_server_time.
GitOrigin-RevId: 9ffc8414c74872c7807faa85071818a0993aca87
2019-12-25 16:57:18 +03:00
Arseny Smirnov
22514eeeec Global: update server_time_difference and system time together
GitOrigin-RevId: 496f41aeee4783f537348028e3b8ff1052c7d6e2
2019-12-25 14:44:44 +04:00
levlam
00387a61ad Update layer 107.
GitOrigin-RevId: 6f7d7c9f0c6ae6b67b23deb6eea02e1ef5a3a3cb
2019-12-25 06:00:58 +03:00
levlam
3c83e72c49 Add '-' to the list of reserved characters.
GitOrigin-RevId: 97a77a46d7003e53021198bd1b57894df4fa5108
2019-12-25 01:57:33 +03:00
Arseny Smirnov
8045132040 Fix system time it it goes backwards
GitOrigin-RevId: 3992a79df98fb164f5a410e756aa9e87ea853c38
2019-12-24 19:51:41 +04:00
levlam
a14ee3e66c Do not use functional cast on integers.
GitOrigin-RevId: 1ebcf0e9a9b004039d32b6363140387bca7d7722
2019-12-24 16:46:10 +03:00
levlam
9dde153313 Better integer casts.
GitOrigin-RevId: 3ae8b651f299dfe134ea5380891296cee44d01e9
2019-12-24 16:36:14 +03:00
levlam
ab4ee8031a Fix to_json.
GitOrigin-RevId: a6ddd1fe716720bad5efe877ac2534889fbb3f9d
2019-12-24 16:22:10 +03:00
levlam
8f72e0daea Remove necessity to include td/tl/tl_json.h.
GitOrigin-RevId: 612988c86cd74eddf6f4ae02fee33635afc93995
2019-12-24 04:08:42 +03:00
levlam
240c092368 Remove tl_json dependency on td_api.
GitOrigin-RevId: 2453a8ac022cf86b799d24045d98e3e69b4a3d9e
2019-12-24 03:55:36 +03:00
levlam
5462265a84 Improve setChatDiscussionGroup documentation.
GitOrigin-RevId: 9933454492c11f8c00b12cc01c2c360a43e7c077
2019-12-24 03:23:12 +03:00
Arseny Smirnov
e7e1521fd2 Fix example/tdweb build
GitOrigin-RevId: f924d875361fc363af32e5d703e3cac373927405
2019-12-23 21:33:03 +04:00
levlam
adb10460b2 Minor fixes.
GitOrigin-RevId: 0c678ad195683947355b63af5aff49875312b4a3
2019-12-23 20:48:30 +03:00
levlam
53ce59d00a Do not hide edit date from bots.
GitOrigin-RevId: bea81ad9437f360908cd02a2fe2d63dce99c2390
2019-12-23 19:33:57 +03:00
levlam
64f73bebff Better message entities debug.
GitOrigin-RevId: 05fea435da021773ca6fbb76e81680e4913cde51
2019-12-23 19:01:47 +03:00
levlam
8da2d89884 Fix warning.
GitOrigin-RevId: 635b716f371f5e86cfe4d599d573dc46558ae14c
2019-12-23 18:39:20 +03:00
levlam
b85302f928 Add direct cache for linked channels.
GitOrigin-RevId: 1d994bd0aef96c379312a4be776b7a107cd175da
2019-12-23 18:37:11 +03:00
levlam
1a9fe6a40d Make FileManager::Query::Type enum class.
GitOrigin-RevId: 031229295e1d6e41e0569363d0262e7ce83832c4
2019-12-23 17:32:03 +03:00
levlam
a2cf11ddc9 Do not request app config by bots.
GitOrigin-RevId: 6bf7a97e0824827b9f23856407fe4d489a40f45b
2019-12-23 16:14:43 +03:00
levlam
738fec0d41 Fix assigning of min access_hash.
GitOrigin-RevId: e6b1a815e287a399c7af9e2cac6a1238c0715e17
2019-12-23 05:11:57 +03:00
levlam
03066d10c9 Do not store photo.id in file_unique_id.
GitOrigin-RevId: 51a888c863b90f220964444255c46c9ac5e91c2e
2019-12-23 04:32:02 +03:00
levlam
70926d1882 Avoid double null check for stored to JSON objects.
GitOrigin-RevId: 73fe0eab42d933491a39a83e6bc4fa93dabadc39
2019-12-23 03:44:03 +03:00
levlam
b1314b38be Remove unnecessary ToJson in td_api_json.
GitOrigin-RevId: 93dd7a4f30ad93ab32a0dabf97ce6f856dcf618a
2019-12-23 03:32:43 +03:00
levlam
674e6b79d8 Remove unsafe JsonScope::operator<<(bool) to which pointers can be converted.
GitOrigin-RevId: 0350036ba8dd4b24df8974e1fe95593afe78a309
2019-12-23 03:21:51 +03:00
levlam
9788681015 Fix CE.
GitOrigin-RevId: 1e6d1c3dc9a275e7f773e0c1fdf3be82864c63df
2019-12-23 02:46:52 +03:00
levlam
8fd937af26 Better debug logging.
GitOrigin-RevId: 802ee45dc32cbd48023b1bef2678a7399488b674
2019-12-23 02:04:40 +03:00
levlam
dd1ae68f57 Fix documentation.
GitOrigin-RevId: 4c3bc6a52792adf79e055132dcd3ec9f8fb4186c
2019-12-23 01:55:14 +03:00
levlam
051acb85af Fix setting the same background.
GitOrigin-RevId: 2f1d147f32d66916683e1a18bf4734dd8ad70407
2019-12-23 01:29:19 +03:00
levlam
13a6973f4b Support BackgroundFill in backgroundTypePattern.
GitOrigin-RevId: 2d8e594c4acb0380b1ebb687c3727abea09dedc7
2019-12-22 23:02:36 +03:00
levlam
68a211a368 Add rotation_angle support to gradient background fill.
GitOrigin-RevId: ebe65367b2cad8777e6e87cf30815a1f9545da9a
2019-12-22 22:32:01 +03:00
levlam
b48c465b0d Replace GradientInfo with BackgroundFill internally.
GitOrigin-RevId: 62f72414e933e77e79c2d99828988122758956d2
2019-12-22 21:01:51 +03:00
levlam
a1af39bc8f Better scheme for BackgroundType.
GitOrigin-RevId: 01f15daff83986078b9fff55a5e3a70bab2a800b
2019-12-22 20:11:54 +03:00
levlam
e9bb8f2a29 Remove public get_color_hex_string method.
GitOrigin-RevId: cfc3100b814766410fadc6749522457f7e5ad514
2019-12-22 04:42:22 +03:00
levlam
8be871bad7 Add BackgroundType::get_link() method.
GitOrigin-RevId: be2522d94742608e61adbef223a9b161e87b6aa3
2019-12-22 04:34:39 +03:00
levlam
e1f1253e21 Better Gradientinfo implementation.
GitOrigin-RevId: cc7a3c0a94cd2816c2090981f78ddcedd2128d1f
2019-12-22 04:02:39 +03:00
levlam
51611ae422 Introduce td_api::gradientInfo.
GitOrigin-RevId: 436fd124ee3417851031ee32b094a93a8e550599
2019-12-22 03:17:52 +03:00
levlam
04eb931c72 Update layer 107.
GitOrigin-RevId: d8ab8b2016d368f6e4f03c6cf1440232ab66e7f2
2019-12-22 02:56:51 +03:00
levlam
48f5681dfd Add max_video_upload_bitrate to autoDownloadSettings.
GitOrigin-RevId: dc443eae2066c85194efa9d338b5a498be8ffc12
2019-12-22 00:40:37 +03:00
levlam
7666c8a07f Update layer 107.
GitOrigin-RevId: c0ce53032262636e8aea4f824c80e2caad3089b2
2019-12-21 22:30:36 +03:00
levlam
88c5679b13 Add backgroundTypeGradient.
GitOrigin-RevId: db09e39cb4384cd85f53cbc8719b2b2b75206406
2019-12-21 05:28:07 +03:00
levlam
c093afbf68 Add source to get_channel_full.
GitOrigin-RevId: 4df2ac6b75f92359bf838226f707742764e92209
2019-12-20 17:17:06 +03:00
levlam
7beb6d99d4 Fix saving repaired action bar.
GitOrigin-RevId: 0612ecd99c4bb15e0123d5337305ff071ec035e9
2019-12-20 16:42:26 +03:00
levlam
aa7d8c06bc Add logging in repair_dialog_action_bar.
GitOrigin-RevId: 3aaf69fc3b5f366b00617e52e917a36381b87c2f
2019-12-20 16:32:56 +03:00
levlam
f9f8b832e3 Allow one day to enter password or register.
GitOrigin-RevId: cc32c0ba6f89a39234e1456739ff8cff09b3649d
2019-12-20 16:21:55 +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
98782fb644 Fix warning.
GitOrigin-RevId: 8c7d5d5e8a3503d56ba0edc0b303a6ab09baa827
2019-12-20 05:07:00 +03:00
levlam
47c4d42674 Update version to 1.5.4.
GitOrigin-RevId: 069f6eea120275ff8c227f3406ed675c91c804f2
2019-12-20 04:30:17 +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
b49d4076c8 Preload created channels to correctly transfer ownership.
GitOrigin-RevId: 2741d029d494e4b1ac40d74e70bfb603e988676a
2019-12-20 03:09:25 +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
5b676ca475 Add unix_time option to response of getCurrentState.
GitOrigin-RevId: 22c4b887b3f5681d0d673510d4e45cde8327b4d0
2019-12-19 19:22:38 +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
71fb1d87e0 Copy secret chat action bars from corresponding private chats.
GitOrigin-RevId: ced6ee8d98ba7798e8fe941b8506afbb0657d641
2019-12-19 01:27:38 +03:00
levlam
369345f47c Add ContactsManager::for_each_secret_chat_with_user.
GitOrigin-RevId: bf81c627a6d4cf00ff5b6c8882079cce23d636f3
2019-12-19 00:31:01 +03:00
levlam
205e68bf8b Simplify SendCodeHelper::send_code.
GitOrigin-RevId: c89daaa0958aebd4fc09cf9690369b80721cafb3
2019-12-18 19:08:05 +03:00
levlam
0594b9e795 Do not send chat actions to bots, deleted users and users with hidden online status.
GitOrigin-RevId: 8bd7c272b34ae6d977e58e89f0e76a158f02f150
2019-12-18 18:57:21 +03:00
levlam
7e47ef07df tg_cli: automatic delimiter detection.
GitOrigin-RevId: da4933c0369cd4d1bb7e181e5f929262365464c3
2019-12-18 18:09:32 +03:00
levlam
02e7697d02 Reload animated emoji sticker set only after getDifference.
GitOrigin-RevId: b69b2b4c51f934a2aeb04b7805408acdcf393417
2019-12-18 17:46:02 +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
3a203e6674 Add NetQueryDispatcher::set_main_dc_id.
GitOrigin-RevId: 80e660bbaffa0c00a2b85d9c0f73c543397aa3d0
2019-12-17 02:35:58 +03:00
levlam
2b94d84a2f Notify server about viewed live locations once a minute.
GitOrigin-RevId: 4658a8807f9acc8820c73fa64a348c86e83dadd2
2019-12-16 18:39:40 +03:00
levlam
10c1b8c6ea Remove get_erase_logevent_promise debug.
GitOrigin-RevId: 06ed913e54f6d257243717568a706e3d1124a9b2
2019-12-16 04:13:48 +03:00
levlam
ca519dcc81 Notify server when live location is viewed.
GitOrigin-RevId: 526201f4539504800fab4552ff59d7e7a7b83fe2
2019-12-16 04:07:14 +03:00
levlam
2c47242374 Check validness of peer_user_id in secret chats.
GitOrigin-RevId: 299ad87085b8c7b1a1f0de15012e54dfdb2c4d6c
2019-12-16 01:58:57 +03:00
levlam
7620e43376 Return back checks for duplicate chat info log events.
GitOrigin-RevId: dee7372981433f603137f264ca0e490cd51226f7
2019-12-15 23:48:35 +03:00
levlam
fc130aec51 Skip action bar repair on close.
GitOrigin-RevId: 3fa1fdc3d0664a2fb6d80f1010b2a5c20382253c
2019-12-15 23:38:32 +03:00
levlam
d4a701f48a Add force_create_dialog debug.
GitOrigin-RevId: 31c3d381ea276519a8c93732ad88c6e99ffec295
2019-12-15 23:33:58 +03:00
levlam
cf1902c04a Fix Message::parse.
GitOrigin-RevId: 7366e38479801b4e16eccd9756dd072027fcc0b0
2019-12-15 22:35:30 +03:00
levlam
fa04e668f6 Better support for GEO_LIVE_PENDING push notifications.
GitOrigin-RevId: 7fb392ec0e6471a09a3b325db48531700204c039
2019-12-14 01:57:17 +03:00
levlam
1dd4e1a767 Add td_api::updateMessageLiveLocationViewed.
GitOrigin-RevId: 2c9d6e1317e6604a23e30efab0dfa21a2e88f01d
2019-12-13 21:05:10 +03:00
levlam
60a95186f5 Do not start GetWebPageQuery on closing.
GitOrigin-RevId: 199f02aa226f0427d591c3699b2da12ce5be2948
2019-12-13 19:29:14 +03:00
levlam
3ec96b4c30 Remove channels from inactive channels list on new message or after leave.
GitOrigin-RevId: 8c9723ed489a714df0b70abe465c04eba1265b0e
2019-12-13 17:57:00 +03:00
levlam
71ddd7c7e3 Add getInactiveSupergroupChats method.
GitOrigin-RevId: 45b15965e50ab5d153a0de4e575fab6ac22eed11
2019-12-13 17:27:44 +03:00
levlam
ce7530c495 Update layer to 107.
GitOrigin-RevId: 27d0ed420224bced55d249bdb7afc549d75a2514
2019-12-13 05:15:59 +03:00
levlam
b055e85e8e Fix misprint.
GitOrigin-RevId: a10bfd39a5a4aa2400661865610b1e2d816d985a
2019-12-13 04:01:33 +03:00
levlam
2714fbf1f8 Fix some preauthentication requests.
GitOrigin-RevId: 1bbbbef17b740140ae99c4972d569306f6ca52ac
2019-12-13 04:00:33 +03:00
levlam
f0d3854462 Add simple group_key.last_notification_date sanity checks.
GitOrigin-RevId: d24887212101c976a2f25c203dbfff81caf12a74
2019-12-13 02:05:47 +03:00
levlam
b58b1a3612 Improve documentation.
GitOrigin-RevId: 7a50e9c7cce5c3075b3550f2c55184b3c3b814c0
2019-12-13 01:39:32 +03:00
levlam
4e223096da Treat forwarded and via bot messages as copied.
GitOrigin-RevId: e3fcd5caea9a08c0a941f549a33356cd9b6075ce
2019-12-13 01:18:07 +03:00
levlam
be30ac854a Use default sequence dispatcher for copied messages.
GitOrigin-RevId: 08058ff0492d0a0c6b432d00b8061b78d7849e94
2019-12-13 00:46:38 +03:00
levlam
1bb59a3261 Support new entity types in parse_html.
GitOrigin-RevId: 1a12c3736f4e0921f133b3ac914620b4a01f0efe
2019-12-10 05:46:58 +03:00
levlam
95bee16523 Simplify td_api_json more.
GitOrigin-RevId: 4df61a045e381a4577321c87a2b393747992127e
2019-12-08 10:44:41 +03:00
levlam
8c495d99e6 Use TRY_RESULT_ASSIGN.
GitOrigin-RevId: 99b60b9044fab9357a3440aed7da55f146677e6b
2019-12-08 09:57:33 +03:00
levlam
8a7d6be7df Remove td::ctie.
GitOrigin-RevId: 926a19055770a2566778a022d01b7a9661d46ae6
2019-12-08 08:50:43 +03:00
levlam
46ed865570 Add chatAdministrator.is_owner.
GitOrigin-RevId: 8ba5a2e7b175cb5595a4d26e8050311960063938
2019-12-07 23:38:05 +03:00
levlam
14f1b3cd4b Always ignore updateReadHistoryInbox.still_unread_count, because it can be wrong even in updates.
GitOrigin-RevId: ff2222911c995605d813a942ccf833b7e7d620bb
2019-12-06 22:49:07 +03:00
levlam
5e99992420 Ignore wrong still_unread_count in updateReadHistoryInbox from getDifference.
GitOrigin-RevId: 8742c705b048c92fc3af3938d599b2e525170be8
2019-12-06 22:17:22 +03:00
levlam
b13096e8a9 Fix adding to database of rescheduled messages.
GitOrigin-RevId: fe07906bdc9ef264d9d40e225dbc8fbb7d547acd
2019-12-06 21:46:57 +03:00
levlam
7b97e98164 Bug fixes.
GitOrigin-RevId: f2575e76da10f0071587504913d8c87acaf91133
2019-12-06 21:21:51 +03:00
levlam
2c030f1bed Fix rescheduling of being edited message.
GitOrigin-RevId: f398f11ac37fbec9edbcbf8b470620f7d43db29d
2019-12-06 20:47:22 +03:00
levlam
bdc8c27bc4 More improvements.
GitOrigin-RevId: 627bf44586c26bc1e4817e42b611a1e470e44ee7
2019-12-06 20:31:34 +03:00
levlam
60c0c3a637 Use actual message_id.
GitOrigin-RevId: e1e62511c4752ad3c1339f694a6937a8d7075bee
2019-12-06 16:26:26 +03:00
levlam
d6ce1dfbc4 Rename have_message to have_message_force.
GitOrigin-RevId: 7ad820c8d73a5bcae4b30ccf2b1e3ba722047878
2019-12-06 05:02:02 +03:00
levlam
2baa52f975 Use exact ID of deleted message in updateDeleteMessages.
GitOrigin-RevId: cbed7d24434e07f5925044fdb65152f9e4809737
2019-12-06 04:56:27 +03:00
levlam
3d4ae6e26c tg_cli: null message scheduling state by default.
GitOrigin-RevId: 26c144a4a5ce7ab12dc0a6de2556f567301b6b1c
2019-12-06 04:43:21 +03:00
levlam
439ff9be0b Do not allow to send scheduled live location and self-destructing messages.
GitOrigin-RevId: 17a93e32f995f67cc164ca7636c8a2025376525c
2019-12-06 04:25:44 +03:00
levlam
5f2b97b8a7 tg_cli: add default send message options.
GitOrigin-RevId: f361f5aaf292e668d5647524d52523ef09aedcf5
2019-12-06 03:13:41 +03:00
levlam
211ab071b2 Add MessageSchedulingState to sendMessageOptions.
GitOrigin-RevId: a2a7d6e3c9283b645b0a155f96c8165a7a717b8d
2019-12-06 03:08:11 +03:00
levlam
b43dd2be8e Update calls to sendMessage in examples.
GitOrigin-RevId: 1a8eb0bf50eb4ce3da03c50a0a694e4ba1bbaedc
2019-12-06 02:36:33 +03:00
levlam
a3301ae07c Introduce common SendMessageOptions for send message requests.
GitOrigin-RevId: 3cef644b80ec3641a9f15de7a5af13f90a9c7d94
2019-12-06 02:32:23 +03:00
levlam
797a117b60 Disable quick ack if reused media is sent.
GitOrigin-RevId: 4e1166d9fd2faf103c3f59775565fc510906d02d
2019-12-06 00:39:39 +03:00
levlam
6520bdea85 Scheduled messages bug fixes.
GitOrigin-RevId: e27dd1ab21e2b43f794bbae75a3c2d62016714c8
2019-12-06 00:31:28 +03:00
levlam
8bee3c715f Support sending scheduled messages.
GitOrigin-RevId: 64d8e451182313ba95e5af0ae4f9af9f08330475
2019-12-05 20:34:19 +03:00
levlam
c01d0a89e6 Add set_message_id function.
GitOrigin-RevId: 0b8c03b6f26cfae0e388edd387a1d60576fe738d
2019-12-05 16:29:06 +03:00
levlam
ff51282a50 Remove textEntityTypeBlockQuote from public API.
GitOrigin-RevId: aa718d3c4882e6ce29545e83a6cca8168c66d35a
2019-12-05 15:53:22 +03:00
levlam
03ea8f4a70 Add logging to find_all_connections.
GitOrigin-RevId: f77b467d54add05d2f9440e36693b590a5bd237e
2019-12-05 15:36:32 +03:00
levlam
f0cbbb49c8 Do not automatically read content of scheduled messages.
GitOrigin-RevId: a48b63b7645775f6a97abfd76326e830ebbf911e
2019-12-05 01:05:10 +03:00
levlam
11f313c283 Repair scheduled messages when has_scheduled_server_messages changes.
GitOrigin-RevId: 916d603b7b0715cf95ac07b900b820ff17fa1b6d
2019-12-05 00:58:59 +03:00
levlam
28f0cd5df5 Synchronize scheduled messages with the server.
GitOrigin-RevId: e4934cf80b6fd769891a684f01ff7d76eeae9cf9
2019-12-05 00:24:48 +03:00
levlam
f098a71926 Add persisitent has_scheduled_database_messages. Now Message.has_scheduled_messages should be always correct.
GitOrigin-RevId: 8fd4e1feceeae1f96599250410745069ff42b3a1
2019-12-04 22:43:14 +03:00
levlam
6b6d9e509b Add limit to get_scheduled_messages.
GitOrigin-RevId: e49616784f920b526611ac44dd7c5c5d7b599318
2019-12-04 21:52:53 +03:00
levlam
4b3c36e924 Send updateChatHasScheduledMessages whenever a scheduled message is added or deleted.
GitOrigin-RevId: df1f6b90fa611f89c6b0c95131c33a6cd446807b
2019-12-04 21:44:40 +03:00
levlam
8b0be018b8 Add send_update_chat_has_scheduled_messages function.
GitOrigin-RevId: 40f93886362b53651c0eb5eb77b3847bc127bd83
2019-12-04 21:01:00 +03:00
levlam
bf0bc88e19 Better name for has_scheduled_messages.
GitOrigin-RevId: 8563f78409e3142baa21ac70f6c5bdeb1728c274
2019-12-04 20:51:52 +03:00
levlam
7bd137889b Calculate scheduled messages hash.
GitOrigin-RevId: 2d3fc1e9d4e19913993ddf0d6aaee4303d2b41bc
2019-12-04 20:41:49 +03:00
levlam
a99c3ba264 Store and check separately deleted_scheduled_server_message_ids.
GitOrigin-RevId: 45eba775a6d80cb74a62616ff63a9dc1f6fa3ebd
2019-12-04 20:32:50 +03:00
levlam
b9666b727e Add td_api::getChatScheduledMessages. Load scheduled messages from database.
GitOrigin-RevId: ab2554642ff588c227c40d4fa12ecc663608e7a4
2019-12-04 20:06:39 +03:00
levlam
b191c0e3f9 Support editing of scheduled messages.
GitOrigin-RevId: 5c288fcd12e06d13520b7baeb0aeec5acd01da38
2019-12-03 20:26:09 +03:00
levlam
fc8f1a9230 Support immediate send of scheduled messages.
GitOrigin-RevId: 84907f350f545dfd0f93129fd61c07692b5906cb
2019-12-03 16:16:19 +03:00
levlam
f5027bf97f Add td_api::editMessageSchedulingState.
GitOrigin-RevId: 193c66fa63e84a8a233a3d60f0593df591d9f80d
2019-12-03 04:36:23 +03:00
levlam
256ab1c2f7 Add MessagesManager::get_message_sending_state_object function.
GitOrigin-RevId: 36300a157d085f96afe9dd62b865b952ba38d042
2019-12-03 03:20:38 +03:00
levlam
aa01368b38 Add Message.scheduling_state.
GitOrigin-RevId: fd950850b1258f49f8272e99a0b4975ab11a38d6
2019-12-03 03:12:41 +03:00
levlam
a7769488ac Make two functions private.
GitOrigin-RevId: f4b5c7142586017f1134df1d36a4eb0310cc9216
2019-12-03 02:30:50 +03:00
levlam
afbadb9741 Add unix_time read-only option.
GitOrigin-RevId: bf3c1248f14e216197e50d819d35609824260940
2019-12-03 01:14:01 +03:00
levlam
ff1b4566f0 Decrease total_count when get invalid recent location.
GitOrigin-RevId: 26bd0b3be1211fb2a9cad34034c54d68764b6f56
2019-12-03 00:44:13 +03:00
levlam
f3dfaa6c29 Support scheduled message in MessageId::get_next_message_id. Add get_next_yet_unsent_scheduled_message_id.
GitOrigin-RevId: dfe0c0b13c6312525564eba9f10f390f5ad09778
2019-12-02 23:29:08 +03:00
levlam
57eb92060b Fixes for scheduled messages.
GitOrigin-RevId: 23bc0e408567366d21ba2f0f7be80983b6d92a15
2019-12-02 20:50:10 +03:00
levlam
f34a515e70 Support updateNewScheduledMessage.
GitOrigin-RevId: 09e706ddb7eab36e139bc6619a92272dcaef1fa4
2019-12-02 19:30:35 +03:00
levlam
bfd3d653a7 Support updateDeleteScheduledMessages.
GitOrigin-RevId: 9f2d0cf00a3e6ffe20c1b0834cad69fbb0861ad7
2019-12-02 19:20:54 +03:00
levlam
c7252bc11a Transparent deletion of scheduled server messages by different message_id.
GitOrigin-RevId: caa637e67824f0678f934e07287530438b84c979
2019-12-02 18:25:41 +03:00
levlam
80d814e2ee Support rescheduling in add_scheduled_message_to_dialog.
GitOrigin-RevId: 0e914bcf3d06f1b1df6f4f7858086c41216e529c
2019-12-02 18:22:05 +03:00
levlam
995e8895ba Transparent return of a correct scheduled server message.
GitOrigin-RevId: c260cefdcef0a919f6aeb4a025500cfc3cd5af00
2019-12-02 17:56:03 +03:00
levlam
16f29863cd Support scheduled messages in MessagesDb::get_message.
GitOrigin-RevId: 77f428b6b0012a41b2766b98ccf076d18b5eb513
2019-12-02 17:27:28 +03:00
levlam
1a0bb5f56f Add scheduled messages database table.
GitOrigin-RevId: 6007af6d26f1c4577fd3e5f1613e5f89d1610fdc
2019-12-02 03:33:35 +03:00
levlam
7b53d64492 Fix warning.
GitOrigin-RevId: 4eab0bc2fc97a7c538f54b1935fe830883e29f69
2019-12-02 03:26:52 +03:00
levlam
b13213f9cb Add is_scheduled parameter to on_get_messages.
GitOrigin-RevId: 534179758c55494fce0005d8aceaa74a2c3d7247
2019-12-02 00:11:15 +03:00
levlam
9b7d248518 Store scheduled message date by their server message ID.
GitOrigin-RevId: de3ea20ea659ce9cf620e7223375937c494699a1
2019-12-01 20:50:52 +03:00
levlam
039db3374a Add GetScheduledMessagesQuery.
GitOrigin-RevId: f2881fcd10378fee44b0cfce060c25b18ed86541
2019-12-01 19:36:03 +03:00
levlam
f7cf15b9f2 Add strongly typed ScheduledServerMessageId.
GitOrigin-RevId: 222322bbf861c773b777c3b9beac3bf0dba561db
2019-12-01 19:03:51 +03:00
levlam
fb43213362 Add DeleteScheduledMessagesQuery.
GitOrigin-RevId: 958627be18ef34e89e2845d5e4fd095dbd4a66c4
2019-11-30 22:13:41 +03:00
levlam
c3d470a27c Remove unneeded add_*_inner proxy functions.
GitOrigin-RevId: ef4e8233590c1d4133c65275474c32f7f985d217
2019-11-30 21:22:40 +03:00
levlam
af04f95daa Add separate reget_message_from_server_if_needed function.
GitOrigin-RevId: 18b0a4f38ac429890832851370ff6371f6496ff1
2019-11-30 20:22:44 +03:00
levlam
7ea11b2150 Add separate update_sent_message_contents function.
GitOrigin-RevId: 621fd837d722355a6e5a392b3de390f6bc0839ba
2019-11-30 20:04:49 +03:00
levlam
10c743a839 Add separate speculatively_update_channel_participants function.
GitOrigin-RevId: 73cb67adffb5488686e181d460640e0682e418e3
2019-11-30 19:41:23 +03:00
levlam
0c2c587f8c Add update_top_dialogs function.
GitOrigin-RevId: c5ea2e50e47693d37cb9e2d7dfea6176a2afed43
2019-11-30 19:29:52 +03:00
levlam
a75e53cdf3 Simplify update_used_hashtags usage.
GitOrigin-RevId: 998789ff1c53eaaac86a61728449ac6524e43326
2019-11-30 18:27:08 +03:00
levlam
8d8c3cacd4 Add change_message_files function.
GitOrigin-RevId: 3b6faf4c55cb11281ef98afc32534fb221716c1b
2019-11-30 18:17:34 +03:00
levlam
415229bfa6 Pass only dialog_id to need_delete_message_files.
GitOrigin-RevId: e5396f6bcaea435dca161d0cd47addfca42bfb79
2019-11-30 18:05:30 +03:00
levlam
a69c9a0f06 Simplify update_message usage.
GitOrigin-RevId: e4266a80dc4108053d293b5779fdf04d4988116d
2019-11-30 17:38:46 +03:00
levlam
fc6f1fc5f4 Add comment on calling set_dialog_reply_markup in on_get_message instead of add_message_to_dialog.
GitOrigin-RevId: e932db6bc5078baed759a6c7af6b2c72749db25a
2019-11-30 17:15:46 +03:00
levlam
40d13deeaa Store scheduled messages in a separate treap.
GitOrigin-RevId: dc56897b3faa45e5092d036bbb73f357a6e4c607
2019-11-30 17:04:59 +03:00
levlam
1d9c00e9f4 Use MultiPromise in get_messages_from_server.
GitOrigin-RevId: e257dc31983b987cac0248d1a8dcf4b3cb2bd506
2019-11-30 15:50:27 +03:00
levlam
b78507e81d Use MultiPromise to delete messages from server.
GitOrigin-RevId: 8fa8b27bfb4d3d394016e8b4fd18ea56294dae7a
2019-11-30 15:45:31 +03:00
levlam
d9160fd52c Add treap_delete_message static function.
GitOrigin-RevId: 36433ee3bd262a791a916ee6b0f3207346894193
2019-11-29 20:30:55 +03:00
levlam
fdc81d6d9b Improve spelling.
GitOrigin-RevId: c52f49b8637f641b0781f0af640c8e03a4fed121
2019-11-29 19:24:45 +03:00
levlam
56e4d740e8 Fix misprint.
GitOrigin-RevId: 829f4ff9e24b7c91f3c9e9cbae4c64552c0d8a8d
2019-11-29 19:16:40 +03:00