Commit Graph

2471 Commits

Author SHA1 Message Date
levlam
feb2beeec0 Fix testProxy.
GitOrigin-RevId: 6ad0bf0e7685ccae35931c4949ba29bafbcc6335
2019-07-22 05:04:18 +03:00
levlam
635aca2924 Fix tdutils after update.
GitOrigin-RevId: afc6d10dd0e2b2a7193dd2c96f07d5ca1cb11a00
2019-07-21 21:07:07 +03:00
Arseny Smirnov
e54c0b0035 Fix merge conflict
GitOrigin-RevId: 8e342e89f5ee116806772fca70bab9eb2606e8e1
2019-07-21 22:00:47 +03:00
Arseny Smirnov
4079363f1a td_api: TestProxy query draft
GitOrigin-RevId: 67944e916813c6260df5be6cb4e77f7163854738
2019-07-20 15:13:36 +02:00
levlam
68bb65344b Ignore 'i' and 't' photo sizes received from the server.
GitOrigin-RevId: d39854802f545dff99c3dcd7b3a01463b5d3c633
2019-07-20 02:33:49 +03:00
levlam
0481329037 Better choice of first bytes.
GitOrigin-RevId: 7855a68ec4b1e9c43371bd29cbf6766009f45ac2
2019-07-20 01:49:22 +03:00
levlam
6e65e51774 Fix misprint.
GitOrigin-RevId: cb14f3097745235c55d0d0192106f9d39b8b23fa
2019-07-19 22:12:58 +03:00
levlam
6dd2a822ad Cache backgorund by their names.
GitOrigin-RevId: 2e5c5ed30185f53240ab806f866bd4c83ee5da51
2019-07-19 05:34:49 +03:00
levlam
c6d7daa460 Improve add_background.
GitOrigin-RevId: cac29a57fb9d76489a0d5a6da83d75c7af075862
2019-07-19 03:50:51 +03:00
levlam
3928917f77 Add Background store and parse.
GitOrigin-RevId: 7c6e34fc2af991ce090356c09f65df37b742775c
2019-07-18 22:12:46 +03:00
levlam
2b69ae2d66 Support setting default background.
GitOrigin-RevId: 756e41775f3ee60faaa36f0a244f7f43ff82ef1d
2019-07-18 21:09:48 +03:00
levlam
e355cabc56 Increase MessageUnsupported version to reget all animated stickers.
GitOrigin-RevId: defb240fb76cdcb8ba96b949773b3572203db7b7
2019-07-18 19:49:14 +03:00
levlam
e76c98ad74 Fix animated stickers extension.
GitOrigin-RevId: 69d65bd19e46fe2eb2dc6ebb4afd6dd64164ffc9
2019-07-18 19:47:29 +03:00
levlam
b1347c3226 Add separate authorizationStateWaitRegistration.
GitOrigin-RevId: 1e41124d6174e956ce74266c9140ad346cf8a6f0
2019-07-16 22:08:34 +03:00
levlam
93ee925d69 Update phoneNumberAuthenticationSettings documentation.
GitOrigin-RevId: 769ae931ec86dffadb529ba3bf1b2078e1e989e2
2019-07-15 23:06:29 +03:00
levlam
6d61dcdc15 Fix warning.
GitOrigin-RevId: 337e0948847966a402cfd0372ed8393e5f7064c9
2019-07-15 21:47:07 +03:00
levlam
5de81015ad Add connection_parameters options.
GitOrigin-RevId: 68ad956881c53ea9ee7ca529947737b2d55b585a
2019-07-15 21:37:45 +03:00
levlam
f53f73a34e Update has_webp_thumbnail.
GitOrigin-RevId: 7ec370bddc1f66ea1caae251d43542d5cd33c5d3
2019-07-15 04:26:41 +03:00
levlam
5b032ba290 Fix handling of sticker thumbnails.
GitOrigin-RevId: d551c7d00baa5fbc2e2090b15fd26ff41929ae5b
2019-07-15 04:01:26 +03:00
levlam
5a7f326140 Support animated stickers.
GitOrigin-RevId: f4a02797a47ffb39eaeee5bcc75ad4b5231dfdfd
2019-07-15 03:43:05 +03:00
levlam
d1f53092d1 Fix misprint in in_acceptable_user.
GitOrigin-RevId: 09b98d3986b9885fd6f33397e848767fcceed700
2019-07-13 18:17:55 +03:00
levlam
19b6aeeb93 Update check for TLS-proxy secret.
GitOrigin-RevId: 4ea3040f2db8da91baecd0a814933cd9cc4ccf2e
2019-07-11 23:42:59 +03:00
levlam
db8539d9df Fix usage of HttpDate in ConfigRecoverer.
GitOrigin-RevId: 17007d6b0afe58a0479d3d596bc4463548a26930
2019-07-11 23:32:45 +03:00
levlam
d69251faba Get info about the chosen language pack if needed.
GitOrigin-RevId: 8a522ac1eabcb66d1e5fe2d85a617ae4c823f8bb
2019-07-11 04:22:17 +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
levlam
b9e5ebd222 Minor improvements.
GitOrigin-RevId: 684fd2527c31f6fdbc816a2addd64e4740f8a15b
2019-07-09 06:56:06 +03:00
levlam
c626bbefe6 Move Proxy to Proxy.h.
GitOrigin-RevId: b1e4f03b7e49b15ea576e4f05c05c8fe8709e3eb
2019-07-09 05:13:10 +03:00
levlam
7958916080 Add strongly typed ProxySecret class.
GitOrigin-RevId: dbde277c6cce57fd6ff51b2e310dab95e60b38c1
2019-07-09 05:01:12 +03:00
levlam
0c160b008b tg_cli: fix creation of CliClient.
GitOrigin-RevId: 70c86df343ab2695eea1cecfc42e1c825f1dabd4
2019-07-07 06:09:07 +03: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
e9a7dd637d TlsInit: use server_time_difference
GitOrigin-RevId: 03d93412b660be3a968a4963fb28abafe068a58d
2019-07-04 15:14:11 +02:00
Arseny Smirnov
33e306f800 ConfigManager: update server time difference from simple config
GitOrigin-RevId: 57987f3453d99fba787318a951d1cc5e8706c659
2019-07-04 15:13:45 +02:00
Arseny Smirnov
13627727ef Mtproto: use non-deterministic padding scheme
GitOrigin-RevId: 3f6ab9ed7b9bbc8ad3ddfabe7d324175cb7e6d49
2019-07-04 12:56:10 +02:00
levlam
b8e8f337c2 Minor TlsInit improvements.
GitOrigin-RevId: 59619af2a0059a85bbdeab2775ed3805dd3ab818
2019-07-03 02:50:19 +03:00
Arseny Smirnov
ef595735b4 bugfix
GitOrigin-RevId: c582a3dea47233610427cc74e1c26e15b417288e
2019-07-02 17:49:21 +02:00
Arseny Smirnov
8a4402e0b1 bufix
GitOrigin-RevId: deeb8146386c0f5aedba7fca70a061fc5341e669
2019-07-02 17:34:27 +02:00
Arseny Smirnov
61206293fe bugfix
GitOrigin-RevId: 05d77fed7ce13cdf2a630f49733e9fe9bd949e3f
2019-07-02 17:27:34 +02:00
levlam
14cc4e43fe Fix warning.
GitOrigin-RevId: b0e7cb4a0906dd75fd87ade7a16dc8e697f0e5af
2019-07-02 18:25:02 +03:00
Arseny Smirnov
23e27a223f TlsInit: check hash in server response
GitOrigin-RevId: 00d0b679020173be7ef8e06db3bc4e64a61d3fbf
2019-07-02 17:14:13 +02:00
levlam
ef3cf44240 Change max TLS packet length.
GitOrigin-RevId: 00f896d94fa434fa867f6df5c910bbe0cf96d5ee
2019-07-02 01:58:01 +03:00
levlam
d694b24418 Fix warnings.
GitOrigin-RevId: d3780ae558619ab6beb1fc7dc582285abdd280ca
2019-07-01 19:52:48 +03:00
levlam
3a2bb833ec Fix TlsReaderByteFlow.
GitOrigin-RevId: 8a7dfc63a176d0c054e434904784d92467ddcba8
2019-07-01 17:37:31 +03:00
Arseny Smirnov
6d6bffaa7b ObfuscatedTransport: bugfix - send header inside of the first tls packet
GitOrigin-RevId: 5fb3eb0acee44aa1db4d943e99ddd19a1e005c44
2019-07-01 15:34:39 +02:00
levlam
0a1fb007d9 TlsInit fixes.
GitOrigin-RevId: 798d053d68b6e0955b6e0e0c7c8d36592f76c987
2019-07-01 16:18:28 +03:00
levlam
8e9e60d929 Restrict sending other messages in interface only if all messages are restricted.
GitOrigin-RevId: 032bd7d91ae66baa85a5d97dc560964e87889f2d
2019-07-01 00:17:18 +03:00
levlam
989235317d Fix ee-secrets.
GitOrigin-RevId: 2fdc60284c6dd4accfe3332accaad945811bbe17
2019-06-30 23:02:32 +03:00
Arseny Smirnov
620e4221f3 tl json: support tl::TL_writer::Mode
GitOrigin-RevId: db6769e80f43f5fa2eedac5414cd2a44f8dcaf3c
2019-07-01 10:43:31 +02:00
levlam
c1752528f2 Do not save GetChannelDifferenceLogEvent if background updates are ignored.
GitOrigin-RevId: bbcc1028ab24d8f80a85ec2edd93acac41cfa7a6
2019-06-27 20:00:43 +03:00
levlam
bec71af259 Change outbound link to KnowsPhoneNumber if have phone number.
GitOrigin-RevId: 25e1efef971fe168155f54ed899288ac9b1020e5
2019-06-27 19:33:46 +03:00
levlam
dda4c4fc7d Fix check for export chat invite link.
GitOrigin-RevId: aa754d8faa04741ea400450ff58f23ca9443dca8
2019-06-27 19:03:02 +03:00
levlam
0c3e3906c7 Temporarily disable new pings.
GitOrigin-RevId: ac3d2580d2dd77b333fee51db59f54b92bf24484
2019-06-27 18:46:25 +03:00
levlam
7d7e8704ea Better documentation for needed rights to call a method.
GitOrigin-RevId: 40dbd2fa57b2bd11df9e00f17ea10b3c31d5989d
2019-06-27 17:06:27 +03:00
levlam
f921abfa86 Fix first call to searchEmojis.
GitOrigin-RevId: 56131407cdc354bb2c14ca1a190e4f825c0362e8
2019-06-27 15:31:29 +03:00
levlam
8add7cda73 Fix registering sticker thumbnails.
GitOrigin-RevId: 24316f587c3e316f0488d5a65dfbef161f621a59
2019-06-27 13:58:04 +03:00
levlam
572808eb43 Fix parsing old wallpaper remote.file_id.
GitOrigin-RevId: 29ed97ec9ebf31d396a849dbce36a7e710cf3026
2019-06-27 03:13:27 +03:00
levlam
d5c7d0a3f9 Better source in on_update_user_photo.
GitOrigin-RevId: 4ba2c1fb4f6b1f98045b7e5ed1ca292a09174bd9
2019-06-27 03:00:42 +03:00
levlam
d7e7b6291a Update version to 1.4.1.
GitOrigin-RevId: 72edbce5e8a0e3803c9ec2433c1604e2a307ea3c
2019-06-27 02:50:09 +03:00
levlam
edf829b2b9 Fix .Net generator.
GitOrigin-RevId: ec7bf9f7ce7f39eda70bfb2cd633f2e984d5ccce
2019-06-27 02:47:28 +03:00
levlam
da4dd220b8 Minor fixes.
GitOrigin-RevId: cbbb78a28570618e5a5c2c04625297678d5ac8cc
2019-06-26 23:27:37 +03:00
Arseny Smirnov
9289b61b92 ConnectionCreator: use tls init
GitOrigin-RevId: f58530975f30e5341e250478c3f83cabf8947b71
2019-06-26 17:27:19 +02:00
Arseny Smirnov
795bf65f8d TlsInit.{cpp,h}
GitOrigin-RevId: acc8f3fd672382392ea9bd82e8426700aec34c04
2019-06-26 16:13:07 +02:00
Arseny Smirnov
345f28330c ObfuscatedTransport: support of emulated_tls flag
GitOrigin-RevId: f0ae7ddb21455d4e8d8c3f486744b1b9643bf2d5
2019-06-26 15:51:48 +02:00
levlam
8fc2906fbd Check that there are no messages added to chat except last message in fix_new_dialog.
GitOrigin-RevId: 01cea39e085b684c520517278714180553514340
2019-06-20 21:03:12 +03:00
levlam
e23ecdf572 Allow bots to restrict left chat members without trying to add them.
GitOrigin-RevId: b2884da3cdc524634b23d1d149bdb66bc6fa206d
2019-06-20 20:34:08 +03:00
levlam
b498688054 Init unknown last_new_message_id to max_unavailable_message_id.
GitOrigin-RevId: cd70cf1e8fb571c69f8cbef5442881567a87b134
2019-06-20 18:39:12 +03:00
levlam
a19fa6b724 Add debug logging.
GitOrigin-RevId: 0c66f0ab330c4ada8f225f0516b64d4aeba62262
2019-06-20 17:18:16 +03:00
levlam
3f77a39a33 Add from_message_id check.
GitOrigin-RevId: a69132dc605d89698be2a8fd98f400019ecaf442
2019-06-20 16:57:12 +03:00
levlam
c5eace2057 FileFd::stat fixes.
GitOrigin-RevId: 36197c4d134e4afe902eef066dc497c03228c271
2019-06-20 05:09:03 +03:00
levlam
8cf10f3fd3 Add PhotoSizeSource FileType checks.
GitOrigin-RevId: 92685f8d05de9543e381ba753e8fe66dbeee286e
2019-06-20 04:53:50 +03:00
levlam
e6cc07a244 Split DialogPhoto to Small and Big.
GitOrigin-RevId: 4c5800b4fb80c5f870577f93e9afdebf6b2b16b3
2019-06-20 04:35:08 +03:00
levlam
9675331eaa Add PhotoSizeSource file_type checks.
GitOrigin-RevId: e2b79fa71a2547ea5f065bc94691f28a6fe3d904
2019-06-20 03:51:37 +03:00
levlam
5022fa26aa Move secret to PhotoSizeSource.
GitOrigin-RevId: 99506d685d672a790e9b276ed14b18ae66792703
2019-06-19 03:53:11 +03:00
levlam
e6082852d9 External store and parse for PhotoSizeSource.
GitOrigin-RevId: a00393e74bc083de4e2da6d7f25fec051f0d70fc
2019-06-19 03:31:04 +03:00
levlam
9a77b26a8a Add PhotoSizeSource.h.
GitOrigin-RevId: 63330f66b3459ecf9b2fdbce4d35faca7542ec3b
2019-06-19 03:18:44 +03:00
levlam
59fd30237e Add Variant parser and storer.
GitOrigin-RevId: e6b8e46184f67fed50ce96a58a8ba33c17789c57
2019-06-19 02:48:34 +03:00
levlam
c72832b462 Fix skipping channel difference for inaccessible channels.
GitOrigin-RevId: 15d78b8ea6b20c7544f121baf9179deacca94d0d
2019-06-19 02:44:58 +03:00
levlam
0a380017d4 Remove PhotoSizeSource.type field.
GitOrigin-RevId: ef13086515430194150728f7ede427b6c87ba175
2019-06-18 19:56:59 +03:00
levlam
c38180f014 Move file_type inside PhotoSizeSource::Thumbnail.
GitOrigin-RevId: 0cf016d083bbd39d2a7abf7e2e1c267b4af29e90
2019-06-18 19:45:26 +03:00
levlam
b92223a61c Remove OfflineInputPeer.
GitOrigin-RevId: 1a3706ab5c923ba3dfb065c642e103fd9df688c9
2019-06-18 19:17:31 +03:00
levlam
b9a1ceec05 Remove OfflineInputStickerSet.
GitOrigin-RevId: 144f639f5c22e652a98505856fd4b6327f27deff
2019-06-18 18:59:32 +03:00
levlam
984ccd3d75 Update remote location when source is changed.
GitOrigin-RevId: fc2f41f1f47cc65b5aadbec14a302d8ab2d03d5f
2019-06-18 18:40:46 +03:00
Arseny Smirnov
ff3164ff04 Fd::stat returns Result<Stat> instead of Stat
GitOrigin-RevId: 7bdb5f0d65df55424db302e4df060b697d8ee11d
2019-06-19 16:31:25 +02:00
Arseny Smirnov
a569a1eac7 Attempt to fix binlog_pmc_ bug in ConfigSession::HandshakeActor
GitOrigin-RevId: 6486e37b16a39c4088faa5a2aedc674e6feb2e89
2019-06-19 15:56:55 +02:00
levlam
666e668163 Add support for is_scam mark for users and channels.
GitOrigin-RevId: f34b2ed15d3cb01f3a3da51673e8aa0ac98ad874
2019-06-18 16:41:53 +03:00
levlam
853c0986d9 Use static_cast to cast to bool.
GitOrigin-RevId: b62a74880cee8984ddf9607141b350f979000b4b
2019-06-18 03:21:55 +03:00
levlam
0ef8053f46 Fix pingProxy error messages.
GitOrigin-RevId: 5e5fb84c3970dbaafc037eec550ce7ccc97f5668
2019-06-18 03:17:14 +03:00
levlam
a74cda9603 Fix warning.
GitOrigin-RevId: f2e991783d1897c23f857a20bf109c138eb96489
2019-06-18 02:05:32 +03:00
levlam
c874b1d4b1 Add support for separate background for dark theme.
GitOrigin-RevId: e5315453db1a7388f240dbefd4eeac6d8c9929c8
2019-06-18 01:39:57 +03:00
levlam
5273b48afe Use 0 as photo location secret.
GitOrigin-RevId: 53c9f487014da1430a58676424a1ab5797469f25
2019-06-18 01:33:32 +03:00
levlam
10e2fd28c0 Drop sticker set short_name set after receiving STICKERSET_INVALID.
GitOrigin-RevId: e77c9d60fff36263ca85b05212c77e578df5c902
2019-06-17 20:09:45 +03:00
levlam
00bf243f37 Fix get_chat_event_action_object.
GitOrigin-RevId: dc9796295dc5eb8d30ed2beb974005a9b8c2c3b3
2019-06-17 19:46:07 +03:00
levlam
4236b09d39 Document that chat photo and sticker set thumbnail can be downloaded only before it is changed.
GitOrigin-RevId: 28edda95836a29a9f1a12afa4f4e0cd4f976a0ef
2019-06-17 19:31:52 +03:00
levlam
a5413cf50d Explicitly use unique_ptr<HttpQuery>.
GitOrigin-RevId: 1d729c6b0a3d1deaf3423672414f155492b7a0e8
2019-06-17 19:12:54 +03:00
levlam
e3b9772cd2 Do not allow to edit temporary notification by non-temporary.
GitOrigin-RevId: d4a6f577d70f80826f22169c3d6a07cf476bd0bf
2019-06-17 18:59:35 +03:00
levlam
2ec992b106 Check notification message_id before allowing to edit it.
GitOrigin-RevId: f6713e719daa2058996ffe7ee4aad2299a03236d
2019-06-17 18:54:35 +03:00
levlam
0a0b875a27 More strict check before trying to reuse secret chat notification group id.
GitOrigin-RevId: 588b76ae86fc6c869001627baea05765e9f0044c
2019-06-17 18:27:23 +03:00
levlam
b1853310fb Better logging.
GitOrigin-RevId: f9f074d0005649fb63e13ccc0352313c9d5415cc
2019-06-17 17:15:08 +03:00
levlam
b75c532f2d Do not trust external documents from secret chats.
GitOrigin-RevId: e0341ce1e2017c6d0b8ac44e18fc9e03de65ccbe
2019-06-17 16:46:20 +03:00
levlam
cfc9cc5f28 Remove support for two file references.
GitOrigin-RevId: 3bf8031e9cc8bcd95e8cb74246c32d9198991aa1
2019-06-17 05:37:57 +03:00
levlam
fa234d0f36 Try to load needed data from database before rejecting update.
GitOrigin-RevId: 17f0bbb6442b431dee926244d93913f820281379
2019-06-17 04:57:27 +03:00
levlam
b447f4e623 Add UpdatesManager::is_acceptable_{user,chat,channel} methods.
GitOrigin-RevId: 6d72de8ca766b145c25e750f71debdfe76d8b440
2019-06-17 04:48:29 +03:00
levlam
9ee52310fb Fix processing of inaccessible users.
GitOrigin-RevId: dea00d3a71e4f85b44c73c6620c2edaf39bddf17
2019-06-17 04:36:27 +03:00
levlam
11e9923e0a Improve is_acceptable_message.
GitOrigin-RevId: 494c88118bcb8da8e2e8cb956efd28ced3b424b5
2019-06-17 04:25:33 +03:00
levlam
4a8411329f Add source to ContactsManager::do_update_user_photo.
GitOrigin-RevId: 086ca18898448cbcd44977965a0f8f0ddc799ead
2019-06-17 03:39:00 +03:00
levlam
c06f173444 Speed up WebPageBlock constructors.
GitOrigin-RevId: 9a02631f7b1cdb7789bad9ab3b3a306f58498e12
2019-06-17 02:55:27 +03:00
levlam
cf4433dc52 Use get_photo(telegram_api::Photo) whenever possible.
GitOrigin-RevId: 6ab86f8a10f8a80584cd7a4ada4fbbda19df9d96
2019-06-17 02:41:57 +03:00
levlam
e91da22a5b Rename get_photo to get_encrypted_file_photo.
GitOrigin-RevId: 5a9d73b4d3202ed19b646c0bf3fd4ce4d85a9350
2019-06-17 02:05:56 +03:00
levlam
bd13368fa8 Fix chat invite link photo.
GitOrigin-RevId: bf4fa46201598412804880dd3c19d800c93acd5e
2019-06-17 02:00:54 +03:00
levlam
8117f0fb39 Support min_access_hash.
GitOrigin-RevId: b2de0f02f75683a08961cdb1c0ceb719574a9e67
2019-06-17 01:35:12 +03:00
levlam
88587ac6fd Do not send getChannelDifference in inaccessible channels.
GitOrigin-RevId: 52fd4ff98a2dc3938801aeff4cd77d17aef86cd8
2019-06-16 22:40:38 +03:00
levlam
f514508211 Add cgecks that messages are received in decreasing message id order.
GitOrigin-RevId: 2223481886d112495f4d2996937720468a7d80c5
2019-06-16 22:09:37 +03:00
levlam
97c50d5e58 Delete broken sticker sets from database before crash.
GitOrigin-RevId: 2fd0a2351560d56d0df21f38ed58bb4e223cb7fa
2019-06-13 23:16:12 +03:00
levlam
e59c88b22d Remove PhotoSizeSource.AsKey.
GitOrigin-RevId: c67a766c4496524393a59ed23801f6a60e5338d0
2019-06-13 02:05:00 +03:00
levlam
30e96aa8c8 Improve applying chat full participants.
GitOrigin-RevId: 4280f3daa15b4120e81eb3891adced8ff5f97c1c
2019-06-13 00:21:30 +03:00
Arseny Smirnov
4b113527b2 Files: new remote (persistent) id version
GitOrigin-RevId: 9935066e24e9fff6c4b82b57b55ea2d517119b4b
2019-06-12 17:28:00 +03:00
levlam
c856242644 Mark constructor explicit.
GitOrigin-RevId: ac21a4de5e4f33036ba8193b7f91e3497ae5888c
2019-06-12 16:37:11 +03:00
levlam
e5f068e47a Minor fixes.
GitOrigin-RevId: 49ed5d6671efa92dec7b09fa8e7863e3665ea355
2019-06-12 16:05:22 +03:00
levlam
3a2bdc5031 PhotoSizeSource fixes.
GitOrigin-RevId: 7e7aa8a0f4a5daf50548f1dc0c4cc8ff7358942d
2019-06-12 14:42:06 +03:00
levlam
cd519a5863 Do not force can_send_media_messages if can_send_web_page_previews or can_send_other_messages.
GitOrigin-RevId: 59ef4847c76e287b8174ca77e2a1cd286f05b68f
2019-06-11 03:23:34 +03:00
levlam
798ac5e3df Consistently use m for Message *.
GitOrigin-RevId: 7cbcba0d72d5d8b0a95046f81ec5bf03f3c6e60e
2019-06-11 02:55:07 +03:00
levlam
8a6dcfe5f4 Better Message objects in chat event log.
GitOrigin-RevId: 4fc6a93e72646cabf07e05207c0aaf2ae7bf6420
2019-06-11 02:30:00 +03:00
levlam
e98dbc91af tg_cli: disable notifications logging to warning.
GitOrigin-RevId: 49c57360f3822bd38ad4c96a50452ad449ca1337
2019-06-11 01:07:08 +03:00
Arseny Smirnov
e38afe63cc Add PhotoSizeSource into FullRemoteFileLocation
GitOrigin-RevId: ce4e2c6a4dcd62684aa0916ead9c910afd6e932d
2019-06-11 13:10:14 +03:00
levlam
93d45b6502 Fix DcId::create.
GitOrigin-RevId: 5eb39fc73ddd0a0d2ddfae312397c0a9ea26cbfc
2019-06-10 20:00:18 +03:00
levlam
4c781ebb7b Update layer to 98.
GitOrigin-RevId: 7bc09a6ec637f12b2f90bc1fb6d82903feffc376
2019-06-08 12:26:35 +03:00
levlam
0cdac3fd83 Add td_api::getEmojiSuggestionsUrl.
GitOrigin-RevId: 5e69942a3996e6e7354567b658eabcb32ccb1b4b
2019-05-21 22:44:13 +03:00
levlam
e1d787c7d9 Get emoji keywords difference from time to time.
GitOrigin-RevId: 748d8376d6eeee09c2b907854073b0c3d451b8d5
2019-05-21 20:42:41 +03:00
levlam
b59abdc9f7 Add td_api::searchEmojis.
GitOrigin-RevId: 01540620ce3e0d7e64cb1ec409774a003cfd42e9
2019-05-21 18:48:35 +03:00
levlam
8a2c83cf13 Update documentation.
GitOrigin-RevId: dc3fb70f5dab7b6f91237bfa751efafeaf78a2b5
2019-05-17 18:29:48 +03:00
levlam
df10fcfdd9 Reload sticker sets once to get actual thumbnail.
GitOrigin-RevId: f910afa02095e2f098ca28bb0304a14775e08f93
2019-05-17 18:08:17 +03:00
levlam
c72f7e4eee Support sticker set thumbnails.
GitOrigin-RevId: 7eed134519d7bf5708691f13a2b1cc79579317ba
2019-05-17 17:35:45 +03:00
levlam
05840e3816 Fix returning unknown chats in searchChatsOnServer.
GitOrigin-RevId: 5abb26ff59b3d0e18565415c4077f430b592e186
2019-05-17 16:46:27 +03:00
levlam
acc17b8d9d Minor fixes.
GitOrigin-RevId: 3861e74381386cff82d688a445de3e8f72494974
2019-05-14 17:26:13 +03:00
levlam
7cd835f4fa Update layer to 97. Support new privacies.
GitOrigin-RevId: d78d9e44557cd1ed77fc83c25986764c4547fb35
2019-05-14 03:18:34 +03:00
levlam
784aaa13d4 Support auto-download settings.
GitOrigin-RevId: f1c41293278fc565777311b0452acdfabb6fdcd9
2019-05-14 02:03:05 +03:00
levlam
4f9887b4bd Minor logging impprovements.
GitOrigin-RevId: 54f2abbd0be6d3ee5cd88ac75f14a660c0201359
2019-05-13 19:34:23 +03:00
levlam
b4b9778947 Add td_api::chatMembersFilterContacts.
GitOrigin-RevId: 2f8f18da88a0de2c5df5bd1d0207d424b6b4e89b
2019-05-12 21:49:21 +03:00
levlam
b641382eab Support pinned_message version in basic groups.
GitOrigin-RevId: 75a011aa0ad138f9bf165870603c1be82038bbc8
2019-05-12 21:19:03 +03:00
levlam
0dde3350ab Update layer to 96.
GitOrigin-RevId: d131512a567520773467dd8d482eb9675b052691
2019-05-12 06:00:24 +03:00
levlam
abc59be319 Add td_api::resetBackgrounds.
GitOrigin-RevId: 9ed830d56b31f0c26ba83245f0c53fb2f20fe8da
2019-05-12 04:10:18 +03:00
levlam
3bf9bae32f Better fatal error message on message_id overflow.
GitOrigin-RevId: d920ec7f39d43bd8578a49f85567949a14edcff2
2019-05-12 02:06:32 +03:00
levlam
a7ef1062a5 Do not add chats without notifications to notification settings exceptions.
GitOrigin-RevId: 64006dfd576b4d1483ba22068bc20de409bc0c64
2019-05-12 01:44:35 +03:00
levlam
f8ccec8a44 Add BackgroundManager::on_installed_background.
GitOrigin-RevId: 41c6ea74772817416342896c83b90a37a2e4f087
2019-05-11 23:27:17 +03:00
levlam
a156f3dee6 Add td_api::removeBackground.
GitOrigin-RevId: f4a2e293f003207a7f224de7fc8dd3de04a9f942
2019-05-10 23:55:26 +03:00
levlam
db2ac0ed98 Support td_api::updateSelectedBackground in getCurrentState.
GitOrigin-RevId: 06352042ba464af8fc66101e53f51e905dadbd3b
2019-05-10 19:04:14 +03:00
levlam
57e0b917b8 Add updateSelectedBackground.
GitOrigin-RevId: 78ca327ff6da27da19fc6a05e2354af969b42bfb
2019-05-10 18:55:55 +03:00
levlam
2366eb9b9b Make set background persistent.
GitOrigin-RevId: 72085619d3dde9e5609de7d382b14748a1491963
2019-05-10 17:58:44 +03:00
levlam
c3d126cbf6 Support solid backgrounds in searchBackground.
GitOrigin-RevId: 48e242b53ca1d4c4b2fcf5d8858de2f74f28d1e1
2019-05-10 16:06:53 +03:00
levlam
652d2a9570 Add td_api::setBackground.
GitOrigin-RevId: e0c38213b41942ed8a5163ca7eb4ea61caa71d7b
2019-05-10 15:36:37 +03:00
levlam
e39b4fae83 Fix SESSION_REVOKE push handling.
GitOrigin-RevId: 364cddfa123bb8c9cfe300c58ea37ef3d5570c36
2019-05-09 22:52:37 +03:00
levlam
8e669d3c2e Add BackgroundType.{cpp,h}.
GitOrigin-RevId: 1945d764af4b818505960eb82cf5781fb9df973f
2019-05-09 22:27:36 +03:00
levlam
90ab672030 Fix lost promise in ReportChannelSpamQuery.
GitOrigin-RevId: 61abcd89b6753d6f863f1dd72bc45b30a1f09ec7
2019-05-09 15:22:47 +03:00
levlam
c2a370262c Better DcId logging.
GitOrigin-RevId: b1fe45b3ecd06ca6869a60124078930b2129b972
2019-05-09 05:01:45 +03:00
levlam
88febd4aa0 File reference support for backgrounds.
GitOrigin-RevId: e4c7f0ee8e6be2341e51f7ef86edfcd264089e3c
2019-05-09 04:07:21 +03:00
levlam
e25933305d Add td_api::searchBackground.
GitOrigin-RevId: 3bd7fe3da8e8919b02669f7c7bb76e3252c000d3
2019-05-07 18:21:57 +03:00
levlam
d8f95c3ea0 Add td_api::getBackgroundUrl.
GitOrigin-RevId: d9f55ce5f4d6630795fc269b3c19045376393d84
2019-05-07 17:10:20 +03:00
levlam
85dd77b02c Initial background support.
GitOrigin-RevId: 14d3a1166f837069c55f40036a633295600524ca
2019-05-07 05:51:56 +03:00
levlam
db59a7f2cc Add more debug.
GitOrigin-RevId: 890a15de0a264b155a28e36f09977f58d26986c3
2019-05-04 17:33:23 +03:00
levlam
441d224878 Skip non-contacts when searcing contacts on channels.
GitOrigin-RevId: 9db95ac20b76e3f274eb7dbc758e00f3b84d2cd4
2019-05-04 03:15:49 +03:00
levlam
0184df07f3 Probably fix race in reusing notification group.
GitOrigin-RevId: d7359c1d22ad7aecead1844696915c3946c158dc
2019-05-04 01:03:10 +03:00
levlam
bcb7a9f6d2 Fix total_count in SecretChat notification group after notification removal.
GitOrigin-RevId: 7bedbb220b3e5e59e3c6c293db9bed6819c01128
2019-05-03 23:36:01 +03:00
levlam
e69463f81d Remove commented NotificationType::get_type().
GitOrigin-RevId: 23427ab1484fcba8dbaa81e770957c3d587f8d3a
2019-05-03 23:22:49 +03:00
levlam
92462100e8 Add delete_dialog_history_from_server debug.
GitOrigin-RevId: 617d5ccdcbd9e753ad3902a917b68896619fe06b
2019-05-03 17:16:21 +03:00
levlam
d92af070c4 Add misaligned pointer debug.
GitOrigin-RevId: 83e3727e541c490029c6ebf19188a8b866779088
2019-05-03 16:53:34 +03:00
levlam
3c6f21d5a3 Trying to fix recursive call of actor.
GitOrigin-RevId: 7796903536a43bc5ee149fe8b937ce8e7d377b02
2019-05-03 16:44:52 +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
eed517a2e7 Fix bot permissions.
GitOrigin-RevId: 86929755cff1673c3404beeff2a6bfbfcb2e2365
2019-03-22 18:32:06 +03:00
levlam
e83184f9fc New chat permissions checking.
GitOrigin-RevId: ef555c6cb407efbf3092cda554b1992155c6e1e4
2019-03-22 18:18:46 +03:00
levlam
046be9b785 Better apply_restrictions for administrators.
GitOrigin-RevId: 3ea51eefe47c54cddf4d6880fd62869f94ac5434
2019-03-22 17:04:01 +03:00
levlam
5e69f957f3 Add get_cha{t,nnel}_permissions.
GitOrigin-RevId: 7d00023ed7497f89cc3895c9a1d4f267f7332922
2019-03-22 15:23:44 +03:00
levlam
2a0f26d24e Add td_api::chatEventPollStopped and td_api::chatEventPermissionsChanged.
GitOrigin-RevId: 2f8af49d048392649ce23040f590ec71bf15c061
2019-03-20 23:13:11 +03:00
levlam
c636408a7a Remove unneded mutable specifiers.
GitOrigin-RevId: 528550993874adb2ff29f9f88273339937919c8b
2019-03-20 21:13:45 +03:00
levlam
9b8a5438be Add td_api::setChatPermissions.
GitOrigin-RevId: ce072b20283e5a1887bd94fea33ad4d0cb4ec5b9
2019-03-20 20:58:13 +03:00
levlam
e71b749a79 Add updateChatDefaultBannedRights support.
GitOrigin-RevId: 1e938066789b61f5f14003c268a62965fcc31a30
2019-03-20 16:32:27 +03:00
levlam
454d8d3987 Add td_api::chatPermissions support.
GitOrigin-RevId: 38cc232035e54665e140772b13316c31ecc38df6
2019-03-20 15:28:06 +03:00
levlam
ada302aaf2 Support default restricted rights in channels.
GitOrigin-RevId: 71ca596fcaaa31217bd1e8431d3e6202ebcd43f0
2019-03-19 18:55:10 +03:00
levlam
e6d968963b Support new rights in chats.
GitOrigin-RevId: 0cfc8de697a1eed2a323907c36b36b6b634e42b6
2019-03-19 18:13:16 +03:00
levlam
6c5010a807 tg_cli: add GetSupergroupContacts.
GitOrigin-RevId: 3b752e33d64640dc84881e778dade3fcf50869e5
2019-03-18 22:22:50 +03:00
levlam
d22ba35f88 tg_cli: simplify testing of td_api::getSupergroupMembers.
GitOrigin-RevId: bd28265cc385b5daf1b5b54241b94a26e3272e84
2019-03-18 05:45:36 +03:00
levlam
bc736d0cc5 Add supergroupMembersFilterContacts.
GitOrigin-RevId: 56dee642cebc5f71918be82219a39d4ad3e4f615
2019-03-18 05:36:47 +03:00
levlam
ed3e4b7d67 Add basic group description support.
GitOrigin-RevId: 030f1a2c149fd085f90a4153e7c76a6adb14e00c
2019-03-18 05:24:25 +03:00
levlam
3ecf990ad6 Update layer to 95.
GitOrigin-RevId: 0d6b470b6ca6f72b5b87fbd899aaeae8892f8834
2019-03-15 16:52:55 +03:00
levlam
547720ccf6 Remove export dialog invite link admin right.
GitOrigin-RevId: 0960bf0f6ecac10e714769089a0fbda347b459d8
2019-03-08 04:04:30 +03:00
levlam
43483e743d Update layer to 92: minithumbnails support.
GitOrigin-RevId: a2e3bba42504cdaf91db1e0113bc98c450ba78c9
2019-03-01 22:51:33 +03:00
levlam
e8a77c6ff2 Improve logging.
GitOrigin-RevId: c8b36adceffd8e4d47d6c59a81703681bed6997b
2019-06-06 20:26:11 +03:00
levlam
d19de66284 Check call notification group ids before reusing them after restart.
GitOrigin-RevId: b26116afbefa697f4493dd316fe3bd7b14ee2f9e
2019-06-06 20:12:10 +03:00
levlam
63b3831437 Do not warn on more useless updates.
GitOrigin-RevId: ac59539f2c34aec22dbbad5863ce052da0a300f6
2019-06-06 18:35:46 +03:00
levlam
a4d89470f2 Do not warn on deleted users returned as administrators.
GitOrigin-RevId: 8facbb4a76bf489ce59c9e34d98dc49c6112edb6
2019-06-06 18:30:18 +03:00
levlam
7b0be02503 Copy BufferSlice before saving user profile photo.
GitOrigin-RevId: f4a4e8dcae1eeea6d8111705d3cd4fbaaa805bf4
2019-06-06 18:09:48 +03:00
levlam
54296a1ed8 Fix stopping FileGC when closing.
GitOrigin-RevId: c265738cf08aecf35766ad986f7e90f39c7503e3
2019-06-05 04:53:43 +03:00
levlam
1ed97b8539 Do not include query and anchor to invite link hash.
GitOrigin-RevId: 08d499417bfb95dfe2a4e41099471d826b3bc848
2019-06-05 04:22:27 +03:00
levlam
01a1538570 Clear *_database_message_id when receive no messages from the database.
GitOrigin-RevId: 9c43ed5052a3c389de78573b3fa58a2a10c40572
2019-06-05 03:48:49 +03:00
levlam
0181982749 Improve getting groups in common.
GitOrigin-RevId: 211d8706823b9aa509af00855083a1981a0a963a
2019-06-05 03:14:54 +03:00
levlam
6d2842d0b4 Fix getting list of archived sticker sets.
GitOrigin-RevId: d73147d8e6ff0e7c0db2319793feb73c7a1755e1
2019-06-05 02:32:10 +03:00
levlam
71d6963e50 Fix warning.
GitOrigin-RevId: 07ec6a5dabf6aeb480564285e56240ff45642e63
2019-06-05 01:53:54 +03:00
levlam
b3d3075c08 Fix pinned message notification when mention notifications are disabled.
GitOrigin-RevId: ba7fe3965f9afa50a062f786c90997ed9951e1eb
2019-06-05 01:44:30 +03:00
Arseny Smirnov
2ab9393a1d PingConnectionPingPong: bugfix
GitOrigin-RevId: 8280963e1bb8e817d9502cbaeecf89064a7c8f2c
2019-06-04 18:52:26 +03:00
levlam
b7f0df977d Silence warning.
GitOrigin-RevId: 1873c21e6e31a39c4d24bbd0f1dec099a2ec466b
2019-06-02 03:01:35 +03:00
levlam
e164355af3 Fix setting last_new_message_id.
GitOrigin-RevId: 69565843b6db635dffaa6e407ac406982abac967
2019-06-02 01:19:05 +03:00
levlam
06f1aa9e26 Fix CHECK.
GitOrigin-RevId: 03f3289ee5978403b6d2c9a72f3180730a152958
2019-06-02 01:18:05 +03:00
levlam
44aede31ca Add more logging.
GitOrigin-RevId: 43b44b116e835cbaeb56119254b0de73aa57bdcd
2019-05-30 01:35:19 +03:00
levlam
9dc4785727 Repair broken sticker lists in the database.
GitOrigin-RevId: dccee88cabb2bad66fd37b91adf49c905c08594e
2019-05-29 22:24:27 +03:00
levlam
b896fbe1be Add more debug.
GitOrigin-RevId: 26d7dd6b78c0d34e218d84ce29c8806753104624
2019-05-29 21:55:31 +03:00
levlam
575c3dfe4d Add support for messages without sender.
GitOrigin-RevId: a153b17b8ffa0dab998dcb911cdba8af78130b83
2019-05-29 05:05:51 +03:00
levlam
dfa183a358 Fix can_set_game_score.
GitOrigin-RevId: 6d4a51af6d9391bec18cad63d9f53bf792dadc3f
2019-05-28 02:17:52 +03:00
levlam
b09c7632c1 Disable edit time limit for reply markup in other's channel messages.
GitOrigin-RevId: 0532b9f3283981a2558b6c2698ae21cf7610897a
2019-05-28 02:05:44 +03:00
levlam
5e8be86d9f Support forwsrd text for login URL buttons.
GitOrigin-RevId: c5682599198cacfd7b7945f6b43e6af4ded4aedf
2019-05-27 17:48:15 +03:00
levlam
55fd1c30af Keep reply_markup in some forwarded messages.
GitOrigin-RevId: 8059cf0b071edb6ac62eff5d77749080d48916c3
2019-05-24 14:48:10 +03:00
levlam
93dd076d8a Support LoginUrl buttons.
GitOrigin-RevId: ca630cc32bf17df6dcedcff4ffa8507fb82ae9cc
2019-05-23 23:35:26 +03:00
levlam
34fcde6827 Minor fixes.
GitOrigin-RevId: a5d8a4b0b9b9c4e858d7a9a7403bef0de7e009e0
2019-05-22 21:17:24 +03:00
Arseny Smirnov
a1bc213f90 Client.cpp: fix data race
GitOrigin-RevId: f2432676c697aef05a3047959ac987aa46e37b0b
2019-05-20 19:57:28 +03:00
Arseny Smirnov
3ab3c699b7 FileGcWorker and FileStatsWorker: better cancellation
GitOrigin-RevId: d3b251f19eea923906d8bf8c9144b18e8724cedb
2019-05-16 15:05:22 +03:00
Arseny Smirnov
11b0da92fe Reuse session_id for pings
GitOrigin-RevId: 39ddb1f925fa05f939a3965300334d5f250550ae
2019-05-10 18:27:18 +02:00
Arseny Smirnov
c99a76f422 Handle -404 error in new ping
GitOrigin-RevId: 3cf88082f0fac9cb82027899c9d276e2d6c439fe
2019-05-09 21:57:35 +02:00
Arseny Smirnov
3f4b29bfaf Calculate rtt in new Ping
GitOrigin-RevId: 9d4ef780ac99ea6c1331dc4e93014657a27f7848
2019-05-09 20:13:40 +02: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
be006f6cb4 mtproto::Ping two variants with mtproto_api::ping and mtproto_api::req_pq
GitOrigin-RevId: 196d7af132a791615c867cbdbfa23a2fa48327e9
2019-05-06 18:59:49 +02:00
Arseny Smirnov
30e1697157 FileGcWorker and FileStatsWorker cancellation
GitOrigin-RevId: 6332bd0800b32a6ca3089223be3995fd06a3118b
2019-05-01 16:15:54 +02:00
Arseny Smirnov
e3e54b7a53 simple CancellationToken
GitOrigin-RevId: 081b63eac0ac1e45153f2df4a2eea9fa825c9924
2019-05-01 15:13:48 +02:00
levlam
21dee3b1d9 Fix g++9 warnings.
GitOrigin-RevId: 5f0565bfaefff9bf41f372f2f249489650985fae
2019-05-01 20:03:27 +03:00
levlam
56163c2460 Update version to 1.4.0.
GitOrigin-RevId: d392c4503f00d8fe0a7ff2cc5e5e29e45af89733
2019-04-30 18:10:01 +03:00
levlam
6e95c15790 Remove unneded includes.
GitOrigin-RevId: f8c3d6481c4a6d8ccac6cbae875fa8de98c32bc2
2019-04-30 15:50:26 +03:00
levlam
89bccc793c Improve JSON interface documentation.
GitOrigin-RevId: 48a3eac6c8464bb2b67547c562e3a2a230669d02
2019-04-30 01:07:04 +03:00
levlam
087200c132 Do not try to reload stickers and saved animations while closing.
GitOrigin-RevId: 8b9532e89c3ae42390e29b6a6716de58dabd01db
2019-04-30 00:37:55 +03:00
levlam
b49e312389 Made need_delete_message_files const.
GitOrigin-RevId: b547551f6968766447e448c00c0bd65333316886
2019-04-29 06:21:43 +03:00
levlam
7f325dbd04 Add note about correct OpenSSL version for Node.js on Linux.
GitOrigin-RevId: 64647e21f5ba3e985c7dd50ea055a5cdb031b6cf
2019-04-29 00:13:36 +03:00
levlam
b78db4d902 Trying to keep files, needed for messages in other chats.
GitOrigin-RevId: 454f3143aec958a08ea35edecc808ef99eb795cf
2019-04-28 20:21:44 +03:00
levlam
8927a862e1 Fix repairing of unreceived sent message.
GitOrigin-RevId: 8ded037fa5361fe0c89341c622ebc98d5047f257
2019-04-28 17:45:53 +03:00
levlam
b7490e626b Add consistency checks for message deletion.
GitOrigin-RevId: 8d37c28f2bbf6c12821437a3670e64a03d841495
2019-04-28 17:07:27 +03:00
levlam
16a209cef0 Use some unused Status responses.
GitOrigin-RevId: b49d15a22918169b5e1a212e5858dc2e9bd2033e
2019-04-28 15:00:06 +03:00
levlam
654010d8f4 Trying to not send GetUsersQuery while closing.
GitOrigin-RevId: 75e44b200ec12becb82284607bba44b6d2d05fd8
2019-04-28 01:30:55 +03:00
levlam
4e632186b5 Fix logging.
GitOrigin-RevId: ab3c4160191de1da430d26a89280ead9ae7e66bc
2019-04-28 01:23:00 +03:00
levlam
e3cb6bb456 Fix applying of getChannelDifference.
GitOrigin-RevId: 6c0e6e73a809037a88c9e225718a71a50a854617
2019-04-27 21:37:24 +03:00
levlam
4d0fed097a Allow zero count in readFilePart.
GitOrigin-RevId: 97e6f7defe69d1993542c356798961333b061e39
2019-04-27 17:14:45 +03:00
levlam
be685c7a6d Add debug.
GitOrigin-RevId: 97f3d2927e7f7a0b0f11e79140e2cdb0873b1704
2019-04-27 16:21:08 +03:00
levlam
6ca6b78b3b Remove unneeded includes.
GitOrigin-RevId: 863c925cb49c1ab94f5f1685ad0584c41a54a833
2019-04-27 04:15:05 +03:00
levlam
740880b9ca Refactor WebPagesManager::PageBlock to a separate class.
GitOrigin-RevId: 7a705f0929c1b4419d2cf0693dda747a172dbc28
2019-04-27 03:57:59 +03:00
levlam
e7427ea57e Explicitly specify WebPage/WebPageInstantView types.
GitOrigin-RevId: e3da08bb1b5ba108206e89ed0797121829526251
2019-04-27 02:00:32 +03:00
levlam
1b7022e8ff Add Td explicit destructor.
GitOrigin-RevId: aa7d2ee90a43bc0cf1bb003c7fb48735fcaf6a82
2019-04-27 01:21:08 +03:00
levlam
02830797c9 Do not replace total_voter_count with 0 just in case.
GitOrigin-RevId: 632b4db2e0e94fb92c4846e5278f4457f9ccee46
2019-04-26 22:56:52 +03:00
levlam
138bf17da9 Fix total_voter_count in polls with hidden voters.
GitOrigin-RevId: e258662b9e3f0c69210a0a32ed30ae04bc5c599f
2019-04-26 22:44:47 +03:00
levlam
8b4af163e8 Split Td::init method.
GitOrigin-RevId: 5c15533bed9bf981474fa9bcbf3234cdde9ae9dd
2019-04-26 22:44:32 +03:00
levlam
a9151ae4a5 Remove some unneeded TDLib headers in SplitSource.php.
GitOrigin-RevId: 0573a7ad11c9a9c517fefe5b6eae860c1bd853cf
2019-04-26 21:26:48 +03:00
levlam
5dc12f9c19 Fix warning.
GitOrigin-RevId: 782940c71a1dc325029b516073d55d1d6de7f57b
2019-04-26 06:09:26 +03:00
levlam
719377a7de Fix warnings.
GitOrigin-RevId: 3d6129e1f99996938316c53b297ced56df14aa23
2019-04-26 05:49:48 +03:00
levlam
4d6012ee7a Fix CE.
GitOrigin-RevId: 4acb5ef3939cafd4ece161f9def915ea8137129c
2019-04-26 05:10:02 +03:00
levlam
fc363c5292 Add missing include.
GitOrigin-RevId: 6b6388813d9546be578f6da6a2f705019172db0b
2019-04-26 04:05:08 +03:00
levlam
ccfc5337f8 Add td_api::writeGeneratedFilePart.
GitOrigin-RevId: 2dfcba1d5f14dfd5e701ac02d3a8fc96090a00f2
2019-04-26 03:18:00 +03:00
levlam
676be00c3f Fix includes order.
GitOrigin-RevId: 04a9e7dc997353becdffcdf9e875fd5ca0e50660
2019-04-26 02:21:12 +03:00
levlam
0ed6024d0c Save only server message IDs as group_info.max_removed_message_id, because local message IDs can be reused.
GitOrigin-RevId: 931d3c165e9ab297da14aba32b6852e49d99da2e
2019-04-26 02:13:42 +03:00
levlam
2898c8909b Add language_pack_database_size to storageStatisticsFast.
GitOrigin-RevId: 6c11b5b88edd470da8abe2a0459a9067c3cb6d21
2019-04-26 01:47:25 +03:00
levlam
be06d10b39 Add td_api::readFilePart.
GitOrigin-RevId: 8d44ecfa62dc39d288232248e6db5aad82870729
2019-04-26 01:03:31 +03:00
levlam
58aafd9b39 Remove restriction on number of other_user_ids in registerDevice.
GitOrigin-RevId: b9a2a51c48d03d1b8cbfa26cf8c4ba0da5cf0e15
2019-04-23 17:10:49 +03:00
levlam
cdb5aa38a7 Fix includes.
GitOrigin-RevId: ba08dcfdbc4da34a986b876331beaf4a20e57437
2019-04-23 13:02:10 +03:00
levlam
fa8604edf3 Update tdweb documentation.
GitOrigin-RevId: bc02a159b4b2b74e0217459d7c4b6213b30851ab
2019-04-23 12:06:55 +03:00
levlam
b0329188e1 Add missed checks that methods can't be called by bots.
GitOrigin-RevId: fe43ee49d12f07cae8a30a66bdb956d4064fec25
2019-04-23 03:09:00 +03:00
Arseny Smirnov
eaf48c36a1 Client: set unique tag for each Td actor
GitOrigin-RevId: 7ee500c44703a395aae9151969b6bb8e3aee5ebd
2019-04-23 11:56:32 +03:00
Arseny Smirnov
3193d5c2d9 Client: use several threads for multiple clients
GitOrigin-RevId: 180f2977371a5a13b35ca929918450f88efcfec5
2019-04-23 10:42:46 +03:00
levlam
c62ff7039e Minor fixes.
GitOrigin-RevId: f0ba3402adf4a26d8220d9b5545e9ea18f094e65
2019-04-22 03:46:51 +03:00
levlam
7f1bbb476a Silence more expected warnings.
GitOrigin-RevId: 07f017ac8e659c7274c6ae97e0c8fa5191fe4c48
2019-04-22 03:13:55 +03:00
levlam
66b140e208 Better repairing of unreceived yet unsent messages.
GitOrigin-RevId: 2df44cc403a4304b0c9514a806e49c9547475cee
2019-04-22 03:01:40 +03:00
levlam
6c34030d51 Improve logging.
GitOrigin-RevId: 3cd0ce11ea05c9d8eb0074f800c7538cb40b6139
2019-04-22 02:42:47 +03:00
levlam
58f83f7eab Improve logging.
GitOrigin-RevId: b891bd696ca74ecdced0f469e868f7b1776c560b
2019-04-22 02:00:30 +03:00
levlam
c420c82f83 Silence expected warning.
GitOrigin-RevId: 450c390d83f469bcf6a45111389c2fab196f8332
2019-04-22 01:51:53 +03:00
levlam
a26d827a38 Improve logging.
GitOrigin-RevId: 90530bd13523ad525d93d67e0634524c1459c8e9
2019-04-22 01:25:18 +03:00
levlam
b63d6124f0 Silence expected warning for bots.
GitOrigin-RevId: 685f85d18bd346088d6d22e207775e8f58e22a2a
2019-04-22 01:06:24 +03:00
levlam
31ad3ee86f Better support for adding last message from channelDifferenceTooLong.
GitOrigin-RevId: defe315d4d6ea336d6f7929847cbccb501f00521
2019-04-22 00:52:53 +03:00
levlam
59efe757b8 Add sanity check for upper total_voter_count value.
GitOrigin-RevId: 21184b5862f1d6ca75386393ac2ae41e66e45f47
2019-04-22 00:35:42 +03:00
levlam
f3acbcda34 Silence warning about wrong reply_to_message_id on message ID overflow.
GitOrigin-RevId: fd641f59568fab2dce3b02215f6d21d803950982
2019-04-22 00:09:49 +03:00
levlam
e47f1d6947 Add ignore_background_updates option.
GitOrigin-RevId: cefa2fd658d1e0426bd319db2f033b0506e0f8de
2019-04-21 21:17:11 +03:00
levlam
37e7543900 Fix processing secret chats binlog events.
GitOrigin-RevId: 86376ea62b45a00b731e78b42f3af375384c2879
2019-04-21 20:57:49 +03:00
levlam
e77bbc7ffc Add separate field for log size in fast storage statistics.
GitOrigin-RevId: 6e76c7ac995db6599a927d54e8d85aed95f020c0
2019-04-21 19:22:58 +03:00
levlam
9e8046db1c Better td_db() debug.
GitOrigin-RevId: ae65558fb3b76eea4612107bbcb74595bf09f3cb
2019-04-21 19:05:19 +03:00
levlam
ad9ff1e221 Update default value of message_caption_length_max option.
GitOrigin-RevId: ed682441f00cb37d13efdf9931987b3b8dc6e7d6
2019-04-21 02:25:40 +03:00
levlam
87d505ca82 Better error message on wrong fingerprints.
GitOrigin-RevId: dbb859c02758fbb9e77c6c1cb6d42cb13e008c50
2019-04-21 02:24:51 +03:00
levlam
4894992e29 Fix logging out befor logging in.
GitOrigin-RevId: f424f10e00ad57c9c0cb44fc60267f098106a120
2019-04-21 02:23:26 +03:00
levlam
7dddc07dfe Add drop_notification_ids option.
GitOrigin-RevId: f246e68de2b01d0152b71e774da58de44740355d
2019-04-21 00:07:02 +03:00
levlam
adaf85ae70 Support SESSION_REVOKE push notification.
GitOrigin-RevId: 58ffab4a39bb36d973a064e8768d7a5e5dd56af9
2019-04-20 22:39:41 +03:00
levlam
651172ed85 Add is_dark parameter to getChatStatisticsUrl.
GitOrigin-RevId: f2381e8df342efa288fa191df27a79a799f972e2
2019-04-20 20:49:21 +03:00
levlam
d71f8e375e Do not delete files of saved message if the original is still available.
GitOrigin-RevId: 3e0791f44ea1bf54eb9ef584d34ad6698914a2c5
2019-04-20 19:03:44 +03:00
levlam
74ca960636 Add MessagesManager::need_delete_message_files.
GitOrigin-RevId: a80f3af30813063872adb791820205a66990640a
2019-04-20 16:41:32 +03:00
levlam
7072ee111a Improve documentation.
GitOrigin-RevId: f60a1a261b457a5ec2d74e33ad79d77f60943c6c
2019-04-20 16:32:26 +03:00
levlam
0a8aed686b Changed recommended inputThumbnail size to 320x320.
GitOrigin-RevId: 4ab85b9ef6479e7dd375408ad4b703421abdee3a
2019-04-20 02:06:14 +03:00
levlam
510ddb175f Improve logging.
GitOrigin-RevId: a350b0e192781bc13b7e4d91a95bf8d34d9b6777
2019-04-19 12:58:39 +03:00
levlam
a25ac45f08 Fix searching Great Minds by name.
GitOrigin-RevId: 1c9b2731b3b44bda2ca001363e5d4754326ecd70
2019-04-19 02:36:48 +03:00
levlam
3bb65d6ea3 Fix getting of Great Minds by ID.
GitOrigin-RevId: ca1a68ae5c3f2a0be8f0e3f0a80ee96ae7077004
2019-04-19 02:15:17 +03:00
levlam
896e44ac94 Add source to remove_notification.
GitOrigin-RevId: 217f967c61005275e5582ae0705b3b24fc8a73c2
2019-04-19 01:52:15 +03:00
levlam
d2e2aa7f7a Force update when fixing pinned message notification.
GitOrigin-RevId: ab5b92020b0c5698259ff8d660a54708b383a1ee
2019-04-19 01:15:09 +03:00
levlam
60c1fc935c Fix web page database statistics.
GitOrigin-RevId: e0ab106d981d871a9d2f14563cea613253435563
2019-04-19 01:11:58 +03:00
levlam
849a4fbdb1 Fix fixing of is_dialog_pinned_message_notifications_disabled.
GitOrigin-RevId: 28993e5eead5c487b0e3c1efe1d69ba936561e1a
2019-04-19 01:03:33 +03:00
levlam
112c7c0168 Better repairing of unreceived sent messages.
GitOrigin-RevId: 219f58990fab3b076fcafef3d063693147892384
2019-04-18 18:33:36 +03:00
levlam
2ee75b769c Add additional check for is_bot before sending terms of service request.
GitOrigin-RevId: 975ece32f0a7f31cd1b0021b414cc7cf17b907bf
2019-04-18 18:18:20 +03:00
levlam
6b214aa72e Do not recalc unread counts for bots.
GitOrigin-RevId: 953fe4ea9c6991e1a90f8dcd7adbeb5fc69b72d4
2019-04-18 18:12:18 +03:00
levlam
e9bb986d9c Remove unneded UpdatesManager::get_state.
GitOrigin-RevId: d95a262233bd5959950eab8159a589a689d8a4b5
2019-04-18 17:57:57 +03:00
levlam
044a3a6f14 Improve error log messages.
GitOrigin-RevId: f43f89acaeb84898b076a3929eed08e927c1c392
2019-04-18 17:47:37 +03:00
levlam
c37d0d98dd Silence expected warning.
GitOrigin-RevId: a81ef99ffebdf41067318920110fbd7fb554da92
2019-04-18 17:04:05 +03:00
levlam
6d298adf73 Protect from calling getChannelDifference continuously.
GitOrigin-RevId: cee3ac9a146d7f0ad65913cba437d64dc2f71bc9
2019-04-18 16:45:21 +03:00
levlam
0516dfaa32 Better error log message.
GitOrigin-RevId: 5076d85dd60c8d08d7537895a6d925c90f5f0aea
2019-04-18 16:37:16 +03:00
levlam
dde79b4190 Silence warning for getChannelDifference in just created channel.
GitOrigin-RevId: d795b5e68473279733f564b4b1c85e6a3b335aaf
2019-04-18 16:31:46 +03:00
levlam
e6065438de Send UpdateNotification for pinned message notification whenever pinned message changes.
GitOrigin-RevId: 5362e072cd6fef5579db4077a0d875178dc12e76
2019-04-18 04:18:57 +03:00
levlam
e01d26eb2b Rename Google Cloud Messageing to Firebase Cloud Messaging.
GitOrigin-RevId: 56219b2225b6807f517afbc33f866f9b0c7e91c7
2019-04-18 02:23:02 +03:00
levlam
9715ae4462 Add version to td_api::webPageInstantView.
GitOrigin-RevId: 81882e97facef38940c6c934e18d82e25dc39e12
2019-04-17 22:32:14 +03:00
levlam
fd167da0f1 Minor scheme improvements.
GitOrigin-RevId: 5bc4e9c702f440b07aadfe4f1133ec5abfcc29e5
2019-04-17 22:25:26 +03:00
levlam
d37409bc0c Improve documentation.
GitOrigin-RevId: e35aa6991bc531786a28195697e21331a18cb96c
2019-04-17 04:13:44 +03:00
levlam
dc673f0eae Fix is_outgoing flag in Saved Messages.
GitOrigin-RevId: 1439610dc7be18348f186c033c7a41a5386a2e5b
2019-04-17 04:12:30 +03:00
levlam
11f233a11e Fix can_be_deleted_* flags for closed secret chats.
GitOrigin-RevId: f05b9228ccc4bc991057ec3e3d3af700c5518e60
2019-04-17 02:28:16 +03:00
Arseny Smirnov
c1d94fc821 experimental td_api::getDatabaseStatistics
GitOrigin-RevId: ed4e39caef210a14e1c72f0660690ffd7e974aff
2019-04-17 12:17:51 +03:00
levlam
c1eadfdc14 Fix log message.
GitOrigin-RevId: 8c255ed561ac1868eb1224238c6f40d9b7b69dac
2019-04-16 17:02:32 +03:00
levlam
cc499af5c7 Do not log push notification attach.
GitOrigin-RevId: d9e62b7ad94752c0e3a97f59acfc5cb470fc0dff
2019-04-15 18:20:45 +03:00
levlam
1e9d2f0247 Fix pushMessageContent captions.
GitOrigin-RevId: cb52936eaaa0208349d442c49e833eb833c0c96f
2019-04-15 16:33:57 +03:00
levlam
79cc50ed41 Add chat.an_be_deleted_*.
GitOrigin-RevId: af1c5ff5c3cec46c25973dc644df777544906af5
2019-04-15 05:48:42 +03:00
levlam
aa96b03908 Improve td_api::messageForwardInfo class.
GitOrigin-RevId: 6dd56fce26f9b04d62e205e02708706baddcd155
2019-04-15 05:14:41 +03:00
levlam
0cb60722c2 Do not show forwarded messages with hidden sender as outgoing in Saved Messages.
GitOrigin-RevId: 4ecf43d8d9edcfc0ade7f122c835002725f21875
2019-04-15 03:52:36 +03:00
levlam
401ef61b0c Add forwarded_from_* to messageForwardedFromHiddenUser.
GitOrigin-RevId: ad13e8f6f45a243196ebf66c282fbd56927ef1d9
2019-04-15 00:15:28 +03:00
levlam
a662c5b102 Fix deletion of files from edited messages.
GitOrigin-RevId: b19cf5878e8fd4857d4e7e4eb8913212f91043c2
2019-04-14 23:05:48 +03:00
levlam
08235274ed Add more sanity checks for pinned message notification.
GitOrigin-RevId: adb6f444912dcad336df9fec6dab669e362c7ba2
2019-04-14 21:39:33 +03:00
levlam
bf95e2f051 Fix removing pinned message notification.
GitOrigin-RevId: d01a6d955944f5990c59fc5a1e565f7d9956bcb3
2019-04-14 04:11:00 +03:00
levlam
03945ea7b9 Do not log error about early received pinned message.
GitOrigin-RevId: f840bd03c6e90c6bc1796c5160ce695b35444543
2019-04-14 00:39:04 +03:00
levlam
67c9d568ae Fix detecting of silent push notifications.
GitOrigin-RevId: 3fb75cf469bc0a069c0d34c82b02d2c629e64724
2019-04-13 23:09:42 +03:00
levlam
2585f5efae Allow to revoke call messages in private chats.
GitOrigin-RevId: 3ede20dcb6f01a9cb69977b7964a7093d2fb59a7
2019-04-13 22:47:51 +03:00
levlam
f15fa69d3b Describe, why switch_inline_query buttons can't be used in channel chats.
GitOrigin-RevId: c30c892637a077891fc819d67b9dcfe635b7ccbf
2019-04-13 21:59:29 +03:00
levlam
801dbc8f6f Add td_api::addLogMessage.
GitOrigin-RevId: 7ad16cacd59eef90bcd5f55729847d4699bbff64
2019-04-13 21:40:31 +03:00
levlam
c2ed2836c0 Fix CE.
GitOrigin-RevId: 55e3d4160ecb48f39fefd03d825f7a6b25529ef3
2019-04-13 20:08:50 +03:00
levlam
5bfc7ae78a Add get_erase_logevent_promise debug.
GitOrigin-RevId: fb81db952f53ce753948c9c213161f2c0cf6c26b
2019-04-13 20:07:02 +03:00
levlam
a46a9a33dd Do not create input_media for unfinished uploads.
GitOrigin-RevId: 8983548156fdf61795054dd7c01895348df4e009
2019-04-13 19:59:52 +03:00
levlam
fec4bfef2b Add more logging for media albums.
GitOrigin-RevId: c7190ec3c28c1ce030dea91d3b29ccd21af6b1c3
2019-04-13 19:48:57 +03:00
levlam
b1a1635ce7 Fix adding too new messages.
GitOrigin-RevId: 3874c25b07674608d8a4cef61cd4801ce6a5f115
2019-04-13 16:50:06 +03:00
levlam
6e05b22a0f Silence warning.
GitOrigin-RevId: f4180d156618988d9dabea1f088264c7ae633e1a
2019-04-12 16:20:18 +03:00
levlam
b2c4fa4be8 Move logging from WARNING to INFO.
GitOrigin-RevId: 69e355d62add494909f72af97f1032c11c7dff4f
2019-04-12 03:31:26 +03:00
levlam
af39698707 Add reply_markup to stopPoll.
GitOrigin-RevId: 08cf68d42ecc6c25cd8ec7146fb7e3b1856a7207
2019-04-12 02:10:33 +03:00
levlam
542c4d374d Do not preload pinned message for bots.
GitOrigin-RevId: 5d260435a24af21394e133275d01f6e93c7adbeb
2019-04-12 01:03:27 +03:00
levlam
cb856f55a1 More consistent log out checks.
GitOrigin-RevId: df749bf0a8234d5ed537b1a7200d4a3ee037eb7d
2019-04-11 23:32:19 +03:00
levlam
c435360799 Add more td_init logging.
GitOrigin-RevId: 98b5a8e3234ec57cb24d833c726c6d1c2d938992
2019-04-11 23:24:39 +03:00
levlam
6376ed09d0 Silence unneeded notification log event errors.
GitOrigin-RevId: 5f2d00d2575162944f80f2691d5b896950e93d35
2019-04-11 17:13:42 +03:00
levlam
589edf60b1 Really fix documentation.
GitOrigin-RevId: 0114466a4d0b97c8f8ab336fb30f780eac4010c5
2019-04-11 01:01:48 +03:00
levlam
56bc1548ff Fix documentation.
GitOrigin-RevId: 84730331f206451dee9232611f7af985792bd766
2019-04-11 00:59:57 +03:00
levlam
88788b2460 Fix forcing updates in remove_notification_group after removal of temporary notifications.
GitOrigin-RevId: 93cc36bc85eb5f2ac5ec9e98a3766408f967544d
2019-04-10 23:54:03 +03:00
levlam
009c78ce5b More cases for temporary notification removal.
GitOrigin-RevId: 0f617980b80f94cc415fbda922c7462ca4675045
2019-04-10 23:22:03 +03:00
levlam
59f36b3b3d Add more debug.
GitOrigin-RevId: f435e1b8531f02092f218189853afc54c47e83b2
2019-04-10 16:37:06 +03:00
levlam
d6e7521aa1 Skip dialogs with unsynchronized group_id.
GitOrigin-RevId: 275014f1c68da71bec5fb63464857babdb90f101
2019-04-10 15:37:06 +03:00
levlam
3afcaa67f8 Add more being_added_message_id debug.
GitOrigin-RevId: 248551b7fb837863e363d548c450e547353facef
2019-04-10 15:22:34 +03:00
levlam
4859485768 Do not erase DeleteMessage log event while closing.
GitOrigin-RevId: 588eeb309964f489186c4614d0dca4c820aedf39
2019-04-10 13:42:46 +03:00
levlam
2ccd37584f Delete downlaoded files when a temporary message push notification is deleted.
GitOrigin-RevId: c0ad85377cf336d98fa5d79697f0389e3c65ec7c
2019-04-10 01:57:15 +03:00
levlam
d42df63ba9 Add Document.get_file_ids method.
GitOrigin-RevId: a885722f10800b5d64ac6f398a4526c874bd2668
2019-04-10 00:55:54 +03:00
levlam
9f5096cd6f Remove copy-paste in remove_temporary_notification_by_message_id.
GitOrigin-RevId: aca8168793e3067b97e90905c4b5e20c01ff3662
2019-04-10 00:37:07 +03:00
levlam
3ac5039912 Delete files from edited message.
GitOrigin-RevId: ac5a68b8f34296df1c918e8b1240eda86a6e4605
2019-04-10 00:13:47 +03:00
levlam
accd15d78c Fix return type documentation in function constructors.
GitOrigin-RevId: f5311028ad942622a92eb72ddc6eda87b40fea35
2019-04-09 23:58:11 +03:00
levlam
f819797ae1 Add title to pushMessageContentChatChangeTitle.
GitOrigin-RevId: e457e2e74dc51db490e156613e7c2d282d455234
2019-04-09 23:43:53 +03:00