Commit Graph

3258 Commits

Author SHA1 Message Date
levlam
8d2f08ebb2 Silence expected warning.
GitOrigin-RevId: 6d9d0da04e8d95e4a5ed8dcd48eb90be1ff1bdb7
2020-05-01 12:19:52 +03:00
levlam
3b4483677c Do not drop username, location and linked chat of channels banned in.
GitOrigin-RevId: 2186c21d024c4d099d9bd4b0d537ff374c920553
2020-05-01 02:54:40 +03:00
levlam
b23ff9697b Allow left creator to restrict/unrestrict channel members.
GitOrigin-RevId: 60c1e54b9c1b275f0038bb4ebc35c57662010711
2020-05-01 01:57:24 +03:00
levlam
8bbc32e21c Drop UserFull cache when phone number privacy is changed.
GitOrigin-RevId: 4ff14b72fa4b903c9358a1a10023e7b5f3775ff8
2020-05-01 01:21:02 +03:00
levlam
c7003cda2b Allow to start bots with sendBotStartMessage.
GitOrigin-RevId: 1dd84ae576c463a60189b0cdd9642bb8c10f8820
2020-04-30 23:21:37 +03:00
levlam
0eb0654bd6 Allow bots to receive updates.channelDifference without changed pts.
GitOrigin-RevId: 26f4effa096105254d2ba17db753103830eab2f0
2020-04-30 23:15:12 +03:00
levlam
0b1b9be4ef Increase version to 1.6.4.
GitOrigin-RevId: e8b8559a415908ee71a26f7023f79143899a3822
2020-04-30 22:30:38 +03:00
levlam
c9f12fe73f Do not use SequenceDispatcher for poll stop by bots.
GitOrigin-RevId: a86c1ad6d852a14755813e8987702052a9d02113
2020-04-30 22:28:52 +03:00
levlam
3175ed4c0a Minor fixes.
GitOrigin-RevId: e10945b585d067da0b6a532b9d9210aade7673d4
2020-04-30 22:21:42 +03:00
levlam
0af026dd63 Poll promo data always.
GitOrigin-RevId: cf678c7389289dae6f7c040179bb60b86f1cac41
2020-04-30 21:00:58 +03:00
levlam
3afb615b59 Support removing PSA from the shat list.
GitOrigin-RevId: 4c0a07797e587d769caac33c8d7bc7ffddc5b0f8
2020-04-30 14:57:01 +03:00
levlam
5dda71e26a Improve documentation.
GitOrigin-RevId: e3694e7c8e58fa0e8216c3aa69e7046b2f7c8612
2020-04-30 11:32:25 +03:00
levlam
269047d133 Remove AuthManager::set_is_bot.
GitOrigin-RevId: b56180dda8aab189c0cb3a3d2f5624e4a5307366
2020-04-30 00:54:43 +03:00
levlam
a40bdeca4c Ensure that user photos offset doesn't exceed total photo count.
GitOrigin-RevId: 06bc1057cbcffe6e6a4911f236d2d7500057c1ec
2020-04-29 23:18:32 +03:00
levlam
585a8f19fa Fix total UserPhotos count if know more photos than expected.
GitOrigin-RevId: ff30c4e2d6965d02eb24a9d58b1f01ea1d3d89a7
2020-04-29 22:54:33 +03:00
levlam
8ef2cd4ed4 Return to the chat list closed secret chats with messages.
GitOrigin-RevId: c0ca10fc5bff12b3c5291d228fe10b7a3cc2d45b
2020-04-29 22:35:43 +03:00
levlam
23ad80e3a9 Silence warning about changed dialog order if dialog info was received from serverr.
GitOrigin-RevId: b6211153533746180307542d3e19fcd10aac63d2
2020-04-29 22:28:57 +03:00
levlam
7fd495a69c Optimize TlStorerToString.
GitOrigin-RevId: fe43727ec9a0ec777860c16fd6fcbd73a9fd4c09
2020-04-29 21:49:11 +03:00
levlam
1fe3b9809d Ensure that bots doen't access notification settings.
GitOrigin-RevId: 218a38474e01dd9cdd7941308887bfb26470f5c1
2020-04-29 18:45:29 +03:00
levlam
8a76a6d13a Ensure that get_dialog_list is not called for bots.
GitOrigin-RevId: 04b59057dfa78d26a2cfd7f0bb10c4696c7f7f65
2020-04-29 17:44:54 +03:00
levlam
c0adfe735d Ensure that bots don't load chat list.
GitOrigin-RevId: a516afafacb8ac290c91f5d72681793f737c5dad
2020-04-29 17:13:17 +03:00
levlam
1f58155cf1 Do not allow revote in a quiz.
GitOrigin-RevId: c6865a295b154fee3ba09d96691a7bc86ba4214e
2020-04-29 16:35:53 +03:00
levlam
2e2a4b4570 Add public_service_announcement_type to forward info.
GitOrigin-RevId: a32fec98c5c61755930f623cdc00ce20f231d898
2020-04-28 17:25:24 +03:00
levlam
4498067221 Update layer to 113. Replace chat.is_sponsored with chat.source.
GitOrigin-RevId: 777a646b9639ed14d2ee1c304c6f0574c1d5ce5e
2020-04-28 16:25:56 +03:00
levlam
3d17513852 Add separate remove_sponsored_dialog.
GitOrigin-RevId: 23b569a314f0dc577e2f65e1a47d51a9434174aa
2020-04-28 12:03:00 +03:00
levlam
2c728d17b5 Remove handling of legacy promoted_dialog_id.
GitOrigin-RevId: bceea028730472fe367a9a904301896903afe571
2020-04-28 01:02:29 +03:00
levlam
da6f582788 Fix 'Internal Server Error' spelling.
GitOrigin-RevId: 9dd65cc0e6ea64650647e9600e9b92ef9f373c7e
2020-04-27 20:10:13 +03:00
levlam
d26cf8f8a3 Add temporary "upload by hash" for photos.
GitOrigin-RevId: f2fca54bce80d3eb9a84a7f4f6326e98633417a5
2020-04-24 00:50:14 +03:00
levlam
9328c20fcc Return only key's suffix in prefix_get.
GitOrigin-RevId: 4e2043356fc69741a881407146fd4e9ca385b258
2020-04-23 20:27:46 +03:00
levlam
aa6029f63c Remove "disabled_" options clean up.
GitOrigin-RevId: 67e05fa327e327f9182051099aff23f246f1c6c5
2020-04-23 17:30:48 +03:00
levlam
9be242f877 Rename get_pinned_dialogs to get_pinned_dialog_ids.
GitOrigin-RevId: 3673c26a7156f98c3078cfd13d6c0a414e495718
2020-04-23 02:35:56 +03:00
levlam
3a622cccaf Remove limit on number of preloaded chats.
GitOrigin-RevId: 515a47d04641e23bc8d5f72bbf01568d83dde96d
2020-04-23 02:33:29 +03:00
levlam
392b62e40b Correctly add sponsored chat to total chat count.
GitOrigin-RevId: 94cd41796d06b4a70902b4e424c181bbca740639
2020-04-23 02:31:16 +03:00
levlam
777e26dd77 Really fix updating of closed polls.
GitOrigin-RevId: a32c186adb947b909fbdeb68a58d3b98fb8e33ec
2020-04-22 19:36:42 +03:00
levlam
6c9659dec4 Fix deletion of unreachable from the end too new server messages in set_dialog_last_new_message_id.
GitOrigin-RevId: fd43badbfd5745eb3ad26eca5f1873d2ffc2bcb2
2020-04-22 17:52:51 +03:00
levlam
356051f59d Do not warn on attaching new message to the next yet unsent message. Could happen when replying a message received through getMessage.
GitOrigin-RevId: c4c77ae81eab08cce855ba32a5756477340b66af
2020-04-22 17:11:29 +03:00
levlam
d7efe13082 Fix updating poll after close.
GitOrigin-RevId: 44fc0a7c598cf38afd58d38ecd320cd0586fb076
2020-04-22 16:18:19 +03:00
levlam
52ea0998ec Allow to pass multiple input language codes in searchEmojis.
GitOrigin-RevId: 0fb99694447f3ac02063eb9c03af2c2b3dfc267e
2020-04-22 15:17:53 +03:00
levlam
c96f62b34f Assume Russian language in searchEmojis with Cyrillic text.
GitOrigin-RevId: e9f0212882bafadde17f49a345847f4df8010e73
2020-04-22 15:02:56 +03:00
levlam
226cf0e6dc Do not save yet unsent message IDs as deleted message IDs.
GitOrigin-RevId: 459bc8dab615ae509da8cd2ed23832362f37f41b
2020-04-22 14:22:33 +03:00
levlam
80fb2baf6e Drop message random_id from cache after the message is deleted.
GitOrigin-RevId: 75985135435dafa0c4de4e7fcafa25490a25d354
2020-04-22 13:36:03 +03:00
levlam
1c605b7e52 Remove debug of being sent messages.
GitOrigin-RevId: cb191e904f2b392562f927c8b2ac28036176ba96
2020-04-22 12:48:52 +03:00
levlam
acf189bb51 Do not save failed to send message ids for bots.
GitOrigin-RevId: 0cc447dac85dc1ad8d61b60a53ebea027ce96d8f
2020-04-22 12:28:17 +03:00
levlam
4afc32d9f9 Do not save yet_unsent_message_id to persistent_message_id correspondence for bots.
GitOrigin-RevId: 850f7ac5fc0bb348985b02c46812a32b64018cc5
2020-04-22 12:16:52 +03:00
levlam
06e74cfba9 Remove whitespace-only entities added in merge_entities.
GitOrigin-RevId: 8b2dbe05d0758639c4447fbfec038b8350dfda9a
2020-04-22 00:57:00 +03:00
levlam
379bff13cb Remove time limit on channel posts editing.
GitOrigin-RevId: 033ba6c0622739e89721ab6f5a9ec4e3a178e866
2020-04-21 23:27:48 +03:00
levlam
b8c300b05b Fix updating of channel member count.
GitOrigin-RevId: f6f49994937d68bbe175a619d37d19900de756f6
2020-04-21 21:08:59 +03:00
levlam
13cfc54b31 Fix leaveChat for supergroup creator.
GitOrigin-RevId: 4f6816225d3a7a72b6458bb78ccda88b38386de9
2020-04-21 21:04:14 +03:00
levlam
07be10f6f9 Delete dice options for bots.
GitOrigin-RevId: f52bc6629d7befc1ab9eabcaabcc4346b7d23db1
2020-04-21 20:12:35 +03:00
levlam
30ddfc317b Update documentation.
GitOrigin-RevId: 5e36155537d01f7b640632f4fdeb91053183d8bf
2020-04-21 20:04:23 +03:00
levlam
851d23f06c Add messageDice.success_animation_frame_number.
GitOrigin-RevId: d0afff34c7d74fe5e06b008b7a8438be4aebe88b
2020-04-21 19:08:01 +03:00
levlam
7336134ff3 Implode dice emojis after parsing.
GitOrigin-RevId: 6b1616409a240566a634c1e71fb194824e4c97b8
2020-04-21 15:45:33 +03:00
levlam
e2998f79b6 Allow to delete dice just for self.
GitOrigin-RevId: 5ab4db809bc33c67f99c95f2a0267e3be84b59ac
2020-04-21 15:39:36 +03:00
levlam
8109988247 Add messageDice.need_success_animation.
GitOrigin-RevId: 1c308f71d628d896321ce331c634a6868f504bc0
2020-04-21 14:51:46 +03:00
levlam
c1a5285b47 Fix warning.
GitOrigin-RevId: 040b2879b6f120cc948ad6020f91c8ab5995134e
2020-04-21 13:51:17 +03:00
levlam
5ee6a4ea6b Ignore invalid stickers stored in the database.
GitOrigin-RevId: ad7a1a976f37b4864a990538e568d9c4a4b4e555
2020-04-21 11:07:50 +03:00
levlam
8681b76de2 Minor fixes.
GitOrigin-RevId: b75bac1586ed36b91b7c2ab64c386f94f18d8539
2020-04-21 03:29:20 +03:00
levlam
35e421a23d Do not apply expired message content early.
GitOrigin-RevId: e49ba509e615a0f088b5aba7f03d722248ae9af0
2020-04-21 01:39:44 +03:00
levlam
c6d06e41db Increase version to 1.6.3.
GitOrigin-RevId: fe4df4857dd5fe028d98e40c105f22bd3d387a90
2020-04-20 01:05:39 +03:00
levlam
67565c9c34 Allow to delete local and scheduled messages.
GitOrigin-RevId: 5cc1fbe54fb0ea55fbc46e1f7ed1b1b138fd1edd
2020-04-20 00:59:09 +03:00
levlam
84ecb75f5d Automatically load dice stickers.
GitOrigin-RevId: cc5478256fdfa9d898f54b8a372437e0ad2a2c34
2020-04-20 00:41:26 +03:00
levlam
b698019f36 Add SpecialStickerSetType::get_dice_emoji.
GitOrigin-RevId: 6f61536c84fdb19a743d9ed78d5bf514db04c353
2020-04-19 21:21:17 +03:00
levlam
0fe8cc5250 Support arbitrary dice sticker sets.
GitOrigin-RevId: 46e3d636c79dfddf15dadf9794fb900a6b27a53a
2020-04-19 16:30:04 +03:00
levlam
87afb93b93 Fix some ID spelling.
GitOrigin-RevId: cdd8cdb93696c690cf7bdb9b2df175bb926a7510
2020-04-19 13:45:37 +03:00
levlam
822bc95d13 Reget users to restore their online status after removing them from privacy restrictions.
GitOrigin-RevId: e29832c5a056cdc5708c02ce31e77570ff335ced
2020-04-19 12:53:07 +03:00
levlam
38de2b016e Never drop correct poll option and quiz explanation.
GitOrigin-RevId: 5cd600cd0bb1a5c4200eb74d62ace5da6425ca7d
2020-04-19 11:27:40 +03:00
levlam
fc3a8105a3 Add updateDiceEmojis.
GitOrigin-RevId: 8495528763939fda21e04eac8555aaed975ded62
2020-04-19 11:17:51 +03:00
levlam
d27bf642eb Add MessageDice::is_valid().
GitOrigin-RevId: 924ffa6d43cda4b32994f22b2300cf0f79ab7458
2020-04-19 09:47:37 +03:00
levlam
4a5320e2e5 Partial support of new MessageDice.
GitOrigin-RevId: 075d457a264bb00d28194e80b709205711b32c69
2020-04-18 08:45:41 +03:00
levlam
06135cccf9 Add parameters offset and limit to getTrendingStickerSets.
GitOrigin-RevId: 360c14f4cd357d23c3537ab26ee55a5b5ed29e81
2020-04-18 01:55:54 +03:00
levlam
b343e148e8 Do not iniitalize stickers manager before authorization.
GitOrigin-RevId: 497a09aeb0c7f8cadb00902d1ceeceaa144c0885
2020-04-17 16:12:12 +03:00
levlam
6225237cb9 Add td_api::updateStickerSet.
GitOrigin-RevId: 4c4299138929e45a2c5a044895f18bd49045256a
2020-04-17 15:56:57 +03:00
levlam
34eb79bbb5 Add StickerSet.need_save_to_database.
GitOrigin-RevId: 90a1be59896d9cc5c49af536f6329791de3fe9d1
2020-04-17 15:06:08 +03:00
levlam
3bcf9ad301 Update layer 112.
GitOrigin-RevId: 9d2b213ecf8a60ffa9af17512c026ee0c71730b6
2020-04-16 21:46:58 +03:00
levlam
4905a851f0 Add clear_draft parameter to inputMessageDice.
GitOrigin-RevId: 2ff67cf4fe198241f7713103f46d7d724d51e591
2020-04-13 14:18:46 +03:00
levlam
73a33d15a8 Document explanation maximum length.
GitOrigin-RevId: de5243171e3b5a17ef3322c25e158ccbac2ed453
2020-04-09 18:56:22 +03:00
levlam
d83a85038f Add tz_offset support.
GitOrigin-RevId: 4b3a1b1d214bf163ce6a72901726fde4243adb50
2020-04-09 00:09:55 +03:00
levlam
54279d23cd Reget poll once after close.
GitOrigin-RevId: c92d691661bbdd63ca038fa2c35ed8ce04078c8c
2020-04-05 05:35:52 +03:00
levlam
16b372bbba Automatically close polls by timeout.
GitOrigin-RevId: 708729b3bb75397716ce6df1bcc0a5a7019145bb
2020-04-05 04:31:59 +03:00
levlam
b4efcc6697 Pass correct dialog_id.
GitOrigin-RevId: 0e81418d9ef01cc90f5550f42fe8ec26a1455c16
2020-04-04 01:13:59 +03:00
levlam
fda0fc0adc Improve Poll.open_period field name.
GitOrigin-RevId: 733b05bbb08cece27ddba88875e9a8493e974081
2020-04-04 00:05:35 +03:00
levlam
4e7cd24285 Add support for quiz explanation.
GitOrigin-RevId: ab4346fe3abe5c5abd7234d5b4b3937e995494af
2020-04-03 23:39:50 +03:00
levlam
bb75ea35da Update layer to 112.
GitOrigin-RevId: 9d18b24ce8aeb86624a61c04e55ca5b4a42634ce
2020-04-03 16:50:10 +03:00
levlam
5da08f8bb1 Remove unsupported include_sponsored_chat_to_unread_count option.
GitOrigin-RevId: dcedd9c37b8e5453590e092a3651456a4c62ad1c
2020-04-14 00:20:04 +03:00
levlam
65c6ac69eb Add get_dialog_public_order overload from DialogList.
GitOrigin-RevId: 9ac90c9f041a756b4adbd1c9e632f97cf43edf66
2020-04-13 04:48:21 +03:00
levlam
65cd8e00a2 Fix misprints.
GitOrigin-RevId: 55d6be2321fdfd42edc061b3fe98fd995dbcc15c
2020-04-13 03:34:08 +03:00
levlam
6dd455449e Use folder_id in MessagesManager::get_dialog_public_order.
GitOrigin-RevId: 70d6b38ceec67bdb3b0439454a9637f0d6178ee2
2020-04-13 01:39:47 +03:00
levlam
cd7a9d7b3a Fix updating of last_successful_force_reupload_time_.
GitOrigin-RevId: c213f39ba0bb75d541f8c007cebb4dfa81de03fc
2020-04-11 03:56:19 +03:00
levlam
97c9cdc996 Do nothing if pending profile photo is not changed.
GitOrigin-RevId: fe980a5902fb9407437c1df56f15a76a64fba319
2020-04-11 01:44:22 +03:00
levlam
737afc8c7e Move get_message logging to INFO.
GitOrigin-RevId: dd86fd3ca2d535fd3d6f2d2ce24cd69dbe5bb534
2020-04-11 01:08:55 +03:00
levlam
c044770022 Simplify messages.sendMedia creation.
GitOrigin-RevId: 8a8ad7b0e88e459f30104d2f6dd6084ddbac8a36
2020-04-10 04:16:50 +03:00
levlam
ba5e5f0ece Allow to reupload file again after successful merge.
GitOrigin-RevId: 46bc9d002f804fe6c39e1ba8844740141e0a6f9f
2020-04-10 03:43:35 +03:00
levlam
b3594169b5 Fix MessagesManager::update_sent_message_contents.
GitOrigin-RevId: 5265e6d357109065790d6b6e85ddee09d25b025d
2020-04-10 02:38:56 +03:00
levlam
00a70b466d Do not add file source from self-destructing messages.
GitOrigin-RevId: 5ac703d188ec532a52efa8549ee8c7e63a78a78b
2020-04-09 18:43:27 +03:00
Arseny Smirnov
5c0be2f24f FileManager: trying to cancel upload/download in run_{upload,download} before any other checks
GitOrigin-RevId: 3df57338d0a0fcec3fb04a11ff21b090909c9c83
2020-04-09 12:53:00 +03:00
levlam
af61f0c7c4 Fix .NET binding.
GitOrigin-RevId: 4e251471a358c4d5546663eca7cd16b91ec2574e
2020-04-08 22:21:42 +03:00
levlam
8aae040e21 Return 429 from ImportContacts if no one was imported.
GitOrigin-RevId: 9fc2b4c929fc549872585df5f007504f8956e034
2020-04-08 02:48:34 +03:00
levlam
301ff466e1 Fix secret chats test.
GitOrigin-RevId: b8c4dca1b8937a8b07ce6fdd625b5a8f55284979
2020-04-08 02:27:53 +03:00
levlam
f42a955d75 Replace some offending characters in all strings.
GitOrigin-RevId: a942e9a71db7b5bc3c1be6b15f9b21d767c3d803
2020-04-08 01:23:05 +03:00
levlam
2cd73ca028 Skip empty contacts.deleteByPhones request.
GitOrigin-RevId: e9a2f30b9d2d149bcb699604e2fdb836e17c83ce
2020-04-08 00:54:41 +03:00