Commit Graph

417 Commits

Author SHA1 Message Date
levlam
260eee8bff Avoid upgrade of read transaction to a write transaction. 2021-05-10 01:59:35 +03:00
levlam
0339921102 Improve some spelling. 2021-03-15 03:32:14 +03:00
levlam
0c409cb79e Ignore minithumbnails for JPEG sticker thumbnails. 2021-03-03 16:33:17 +03:00
levlam
720a64962e Improve sticker thumbnail format detection. 2021-03-02 04:50:14 +03:00
levlam
fe6fe481f6 Add document ID to SVG path warnings. 2021-03-02 04:48:02 +03:00
levlam
f06ea1bab3 Improve sticker thumbnail format detection. 2021-03-02 04:40:10 +03:00
levlam
a36f020084 Improve StickersManager::has_webp_thumbnail. 2021-03-01 23:48:48 +03:00
levlam
8430ba6d19 Remove expect_jpeg_minithumbnail parameter from get_photo_size. 2021-03-01 23:29:55 +03:00
levlam
2bc3d7424b Improve logging of unsupported SVG paths. 2021-03-01 04:19:50 +03:00
levlam
15fe7f7a04 Rename suggested_name to suggested_path. 2021-01-26 02:39:48 +03:00
levlam
6e20aaa428 Add source to get_dimensions. 2021-01-23 22:04:35 +03:00
levlam
dc45d89848 Make searchStickers response cache time-bound. 2021-01-15 14:54:07 +03:00
levlam
cb24fd8037 Add struct FoundStickers. 2021-01-15 14:01:59 +03:00
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
192fd4862f Use td::unique. 2020-12-30 18:50:57 +03:00
levlam
3589676550 Minor fixes. 2020-12-22 15:51:57 +03:00
levlam
b89cb3fbd6 Fix misprint. 2020-12-22 02:09:08 +03:00
levlam
bbde4f32c6 Allow to specify emoji for sent stickers. 2020-12-19 14:31:42 +03:00
levlam
34cc9092c9 Update layer 122. 2020-12-18 17:43:23 +03:00
levlam
3681da21d8 Automatically close unclosed contours. 2020-12-16 16:04:27 +03:00
levlam
65d3557f63 Add outline support for sticker set thumbnails. 2020-12-14 17:16:57 +03:00
levlam
96acefc6c6 Update layer 122. 2020-12-14 16:52:25 +03:00
levlam
6ca15f18c8 Move voice chat-related fields to Dialog. 2020-12-14 00:36:44 +03:00
levlam
987f26efdc Add default support for bowling dice. 2020-12-09 13:35:27 +03:00
levlam
c34e7ed6ba Allow multiple move commands in the beginning of vector paths. 2020-12-05 17:37:10 +03:00
levlam
1da1a14255 Represent sticker contours as vector path. 2020-12-02 18:45:06 +03:00
levlam
3ff1f6cec1 Add sticker cover to API. 2020-11-20 16:22:07 +03:00
levlam
d22dabfdaf Update layer to 121. 2020-11-09 23:41:23 +03:00
levlam
dc12edbde1 Return back 0 as default next load time. 2020-11-23 20:33:35 +03:00
levlam
5cbf90e4a0 Safer work with negative monotonic time. 2020-11-21 16:34:39 +03:00
levlam
0efc6ee617 Reload all sticker sets once to drop legacy photo locations.
GitOrigin-RevId: 2ab5e1ba035ea3946a733a06e44cc1f7b327cd36
2020-10-31 01:32:18 +03:00
levlam
e783b0c2ec Enable background animation for slot machines with all reels equal.
GitOrigin-RevId: e6d0097ff049ece01be766d382defde3071a887b
2020-10-20 21:40:05 +03:00
levlam
fd9732dcfa Add slot machine support.
GitOrigin-RevId: e0c3c5d9b2cff2870162f11983bd546aba101caf
2020-10-15 15:59:51 +03:00
levlam
35a9a93fc9 Fix std::...::erase return value usages.
GitOrigin-RevId: d9729ccd619e3b99554f1e1c2262d8826f0a8571
2020-10-08 23:04:40 +03:00
levlam
c6cdfb377c Improve language code processing in searchEmojis.
GitOrigin-RevId: 9c5de24f89a1614a2cd058185156678a0b0049c4
2020-10-01 17:21:26 +03:00
levlam
1fe397e43d Make optionValueInteger value int64.
GitOrigin-RevId: 7da1c4f051691ff7df31627115a9a37e6c5d5802
2020-09-25 00:46:16 +03:00
levlam
e0adaebb91 Unify logging of request responses.
GitOrigin-RevId: ae4c0a3881a89aa235baa08c07ec97a914437d8c
2020-09-24 16:08:04 +03:00
levlam
e3f5719c5c Remove unneeded td_ usages.
GitOrigin-RevId: 4cf456413228f086d7df3d21d7024baf6db1bf15
2020-09-20 02:02:27 +03:00
levlam
19507a7f7a Decrease sticker set cache time.
GitOrigin-RevId: dec22463f0411888a6e2a3eddc95ab1a6ccf3b0d
2020-07-30 23:49:46 +03:00
levlam
e7ebc22929 Remove FE0F from MessageDice emoji.
GitOrigin-RevId: b0eab642499ade40a17d9f5f475c73c7de71724e
2020-07-21 01:35:35 +03:00
levlam
7685047186 Add default support for Soccer dice.
GitOrigin-RevId: aa67796f72b62ede966a67004f8a3d517f372789
2020-07-14 02:31:32 +03:00
levlam
d5b4c57993 Add inputMessageDocument.force_file.
GitOrigin-RevId: 7f2780ba7f333e5f8df9c28bab429b8b12eaf26c
2020-06-22 02:02:21 +03:00
levlam
2433e68d38 Improve logging.
GitOrigin-RevId: 39c10ac2041467967de93aa94fc5ab8315720cf6
2020-06-06 22:38:47 +03:00
levlam
c9929b9528 Do not load dice sticker sets before init.
GitOrigin-RevId: f9c26c05c433a31e97b2fb8bcdcf5344dfe041c0
2020-06-04 01:19:37 +03:00
levlam
23e13ab5bc Improve logging.
GitOrigin-RevId: 519825dc66e76a1ba72c7100f78cfba0f796b752
2020-06-03 21:10:03 +03:00
levlam
6e42d79769 Replace emoji with icon_mane in chat filters.
GitOrigin-RevId: 61b30d075e330a92935ea2c8cfc0bf78fb32958b
2020-06-01 16:55:31 +03:00
levlam
8d0fa5ce77 Add td_api::thumbnail.
GitOrigin-RevId: b74fa62e415816ce63d3bd4415bd2bb8d6aa3f8b
2020-05-31 22:22:15 +03:00
levlam
0cb809581c Specify correct mime-type for sent local animated stickers.
GitOrigin-RevId: d3fd227210d09814bc8e686b3ba6f3cd7410cfa5
2020-05-31 01:49:16 +03:00
levlam
f301359deb Do not animate unknown stickers before they are sent.
GitOrigin-RevId: 333cca74ec642ede27c4d2f5fc5794eb776990a3
2020-05-31 01:33:14 +03:00
levlam
f9577c97a3 Fix StickersManager::has_input_media.
GitOrigin-RevId: 4154b648c8641eb1e38f952c90c7b267d83a785a
2020-05-25 22:30:26 +03:00
levlam
c204fd6256 Never allow animated stickers outside of sticker sets.
GitOrigin-RevId: 7e86904956e1bdfc7b423fdfef5f212199caeb85
2020-05-22 18:09:17 +03:00
levlam
05b279bb13 Never trust peers sticker set name in secret chats.
GitOrigin-RevId: 11f6534963920bd7c736a9cb3dcf3c73e2e68e6c
2020-05-22 18:07:04 +03:00
levlam
4c80155092 Improve spelling.
GitOrigin-RevId: 73edc0a7a57f40c404b4b5c8d00e9b20127f9abc
2020-05-18 22:54:18 +03:00
levlam
0e77a35b0a Warn on changed sticker, only if set_id is still the same.
GitOrigin-RevId: 756c3c0ea8b40ce5c96dc72281961f1de9bd2453
2020-05-17 17:14:29 +03:00
levlam
2a92f4cf6b Add support for basketball dice emoji.
GitOrigin-RevId: 14ee79e80310d468f7acbb6693b56379c76b3bd2
2020-05-17 01:28:56 +03:00
levlam
588113388d Do not create special sticker set for unknown dice emojis.
GitOrigin-RevId: f704a86e9c5ade800f50a8296ea581d111fc84d7
2020-05-17 01:06:23 +03:00
levlam
18bbec3565 Try not to use SWLite key-value while closing.
GitOrigin-RevId: 1b0c6df484ffa9b2831a1a7ccc0fb62a9ad80b5a
2020-05-16 02:45:26 +03:00
levlam
b29a945b1a Ignore SQLite key-value responses after close.
GitOrigin-RevId: a91a2dbbf8efcda91959aabfcaca964caa6fe3c3
2020-05-16 02:25:03 +03:00
levlam
d647a2a2e8 Represent photo format as enum PhotoFormat.
GitOrigin-RevId: 9205a8c775111ff394e7c32bc52d343b41e53379
2020-05-11 22:17:49 +03:00
levlam
e941622e32 Ignore file_reference errors for bots, because corresponding file_ids may not be duped.
GitOrigin-RevId: 3cf82083a6d3e5556f665bad9ad00e216c7901a0
2020-05-07 15:56:57 +03:00
levlam
c376c1ac08 Add comments about disallowed animated stickers.
GitOrigin-RevId: 52115deae5121cb29b332a6d9782cdd4506d8ce0
2020-05-06 00:56:44 +03:00
levlam
8d2f08ebb2 Silence expected warning.
GitOrigin-RevId: 6d9d0da04e8d95e4a5ed8dcd48eb90be1ff1bdb7
2020-05-01 12:19:52 +03:00
levlam
3175ed4c0a Minor fixes.
GitOrigin-RevId: e10945b585d067da0b6a532b9d9210aade7673d4
2020-04-30 22:21:42 +03:00
levlam
da6f582788 Fix 'Internal Server Error' spelling.
GitOrigin-RevId: 9dd65cc0e6ea64650647e9600e9b92ef9f373c7e
2020-04-27 20:10:13 +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
07be10f6f9 Delete dice options for bots.
GitOrigin-RevId: f52bc6629d7befc1ab9eabcaabcc4346b7d23db1
2020-04-21 20:12:35 +03:00
levlam
851d23f06c Add messageDice.success_animation_frame_number.
GitOrigin-RevId: d0afff34c7d74fe5e06b008b7a8438be4aebe88b
2020-04-21 19:08:01 +03:00
levlam
8109988247 Add messageDice.need_success_animation.
GitOrigin-RevId: 1c308f71d628d896321ce331c634a6868f504bc0
2020-04-21 14:51:46 +03:00
levlam
8681b76de2 Minor fixes.
GitOrigin-RevId: b75bac1586ed36b91b7c2ab64c386f94f18d8539
2020-04-21 03:29:20 +03:00
levlam
84ecb75f5d Automatically load dice stickers.
GitOrigin-RevId: cc5478256fdfa9d898f54b8a372437e0ad2a2c34
2020-04-20 00:41:26 +03:00
levlam
0fe8cc5250 Support arbitrary dice sticker sets.
GitOrigin-RevId: 46e3d636c79dfddf15dadf9794fb900a6b27a53a
2020-04-19 16:30:04 +03:00
levlam
fc3a8105a3 Add updateDiceEmojis.
GitOrigin-RevId: 8495528763939fda21e04eac8555aaed975ded62
2020-04-19 11:17:51 +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
aefab830b1 Use better type in static_cast.
GitOrigin-RevId: 6babad6d6340d428cf73cbbe914c3e1fd4b30040
2020-03-31 03:02:51 +03:00
levlam
bcc8dbc158 Use Global::is_expected_error whenever appropriate.
GitOrigin-RevId: aba8ee6e3dc1ab6e680a5ae10f6c3d217ab0a8dc
2020-03-31 00:35:58 +03:00
levlam
f153539ea2 Support creation of animated sticker sets by bots.
GitOrigin-RevId: d75133cf70b667cbdf6dc555cc06f2b43f9c8609
2020-03-23 18:03:13 +03:00
levlam
05253ca35e Add td_api::setStickerSetThumbnail.
GitOrigin-RevId: 1083c307cf89744c4dcfa16f89eaec1d2660309f
2020-03-20 16:36:07 +03:00
levlam
d6850e891e Add "animated_dice_sticker_set_name" option.
GitOrigin-RevId: b20ac808e74435c39acdb9f051ba11f77aa236af
2020-03-14 03:47:19 +03:00
levlam
3d07b45a21 Update layer to 111.
GitOrigin-RevId: 47862200a12f3b5b9e5058192d5e9a9cdca862aa
2020-03-14 01:56:47 +03:00
levlam
487cb20597 Ignore web remote locations instead of crash.
GitOrigin-RevId: 0ab5d749eeff28bc25befd6610038a7aa43206a5
2020-03-24 01:12:23 +03:00
levlam
c5b7a92e78 Do not warn on animated sticker size changes.
GitOrigin-RevId: 256c201cb91e2ee99f23abd2464cc586a27d66c5
2020-03-24 00:36:22 +03:00
levlam
eea23e4255 Fix formatting.
GitOrigin-RevId: 9d7abcae840a94912b8c0316c37a2553a38fa864
2020-03-16 19:42:10 +03:00
levlam
b8848a2ab4 Simplify NetQuery creation.
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
92df8f9827 Remove unneeded brackets.
GitOrigin-RevId: 0b8a2ae21d28e6c276db8b45ffb4d127800f5d73
2020-02-26 18:15:19 +03:00
levlam
9964c011ec Allow report private chats with users sharing their location.
GitOrigin-RevId: f1b546ea71a534436e487d4a644b4001bd274e09
2020-02-12 03:05:54 +03:00
levlam
2f9db6e6e6 Improve error message.
GitOrigin-RevId: c61623277759527102a48d2e6b8992ee87c90beb
2020-01-24 06:33:47 +03:00
levlam
dcb15d0a13 Asynchronously reload emoji keywords languages after restart.
GitOrigin-RevId: 1f24d44c715d96aead91402fdc7f6d7abf04d041
2020-01-08 19:25:36 +03:00
levlam
3659757dc3 Add parameter searchEmojis.input_language_code.
GitOrigin-RevId: c0cc78cb2957c9b9be4c3310a0505d08f6189006
2020-01-08 19:07:40 +03:00
levlam
580530b6d4 Allow to change StickerSet.is_animated.
GitOrigin-RevId: bf712a9e6f90e26b53e710c62a119ee1ec4340bd
2020-01-02 18:41:42 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
ba5ccf48c6 Add source to on_get_sticker_set.
GitOrigin-RevId: 90cccf55f20fc5dafb6c76a2f780f19a818487cf
2019-12-29 04:59:34 +03:00
levlam
9dde153313 Better integer casts.
GitOrigin-RevId: 3ae8b651f299dfe134ea5380891296cee44d01e9
2019-12-24 16:36:14 +03:00
Arseny Smirnov
e7e1521fd2 Fix example/tdweb build
GitOrigin-RevId: f924d875361fc363af32e5d703e3cac373927405
2019-12-23 21:33:03 +04:00
levlam
02e7697d02 Reload animated emoji sticker set only after getDifference.
GitOrigin-RevId: b69b2b4c51f934a2aeb04b7805408acdcf393417
2019-12-18 17:46:02 +03:00
levlam
c3d470a27c Remove unneeded add_*_inner proxy functions.
GitOrigin-RevId: ef4e8233590c1d4133c65275474c32f7f985d217
2019-11-30 21:22:40 +03:00
levlam
43fc3b3ecb Animated emoji sticker set cache.
GitOrigin-RevId: adb54c26e904cb0661f6880bfad9f86e5a4587d9
2019-11-21 22:18:29 +03:00
levlam
f5db9e48e7 Add animated_emojis_sticker_set_name option.
GitOrigin-RevId: 22b7bd84436ad2a8deb5388dc9434f98afbb880f
2019-11-21 20:22:05 +03:00
levlam
26c5328b89 Do not generate default constructors.
GitOrigin-RevId: 89afa038ad99739ca0465e05a2e123ac60e7fa7a
2019-11-21 17:53:39 +03:00
levlam
9628ec78df Fix CE.
GitOrigin-RevId: b9680ad8f7fbf6322b4bb3896e6d4a931072312e
2019-11-06 15:12:16 +03:00
levlam
2f2c09bf58 Fix CE and warning.
GitOrigin-RevId: 64989213b16f2450678a49e69f3f77d065cb6369
2019-11-02 03:39:14 +03:00
levlam
918f6a0cfd Use td::contains and td::remove instead of std::find if possible.
GitOrigin-RevId: faa0863eb49ee8ce4c2138dfec022620f71d2f6a
2019-10-22 02:12:58 +03:00
levlam
e84e131efd Use td::remove instead of std::remove.
GitOrigin-RevId: f64e6d2199f1b9049e2bc022de1f65c9efba6647
2019-10-22 01:29:19 +03:00
levlam
56c3a2fbed Use td::remove_if.
GitOrigin-RevId: 5cf21381966dc58689a06cc94cb8843fd8087bb9
2019-10-21 16:25:56 +03:00
levlam
408a456589 Add strongly typed StickerSetId.
GitOrigin-RevId: 518121f89e3a4c95ab5a2095a9bc2217090911de
2019-09-18 06:55:43 +03:00
levlam
c1a201fd7f Use main remote location for upload.
GitOrigin-RevId: 1a77b73bf73608e219cbf2a0d888f33b0c406a80
2019-11-17 22:41:28 +03:00
levlam
ee87414bab Fix misprints.
GitOrigin-RevId: e21e784c076005538ee889a61b12b8876567da13
2019-10-19 21:20:16 +03:00
levlam
06039ab496 Comment wrong CHECKs.
GitOrigin-RevId: 2111ac12ea1d7ebe07348457c7a1c962306474ae
2019-09-13 21:35:37 +03:00
levlam
64a77fc9fb Do not prefer animated recent stickers over non-animated.
GitOrigin-RevId: 112145286bd54de5706628bd8ad8d176e5895cf0
2019-09-03 21:41:11 +03:00
levlam
11c0fcc6ec Do not create documents without file_id.
GitOrigin-RevId: c208baf37b108ffb256c3a39dee0459fc081f017
2019-08-01 03:58:49 +03:00
levlam
cfe7b95be5 Do not replace known width and height of animated stickers.
GitOrigin-RevId: 0b74a1ffe07608c9d1ac447e5d471cc706894cbd
2019-07-30 19:41:49 +03:00
levlam
2fd851dfe2 Repair sticker set thumbnail if changed.
GitOrigin-RevId: 1b0e2e997338d85249e6eee877ab0483d9826342
2019-07-30 18:43:29 +03:00
levlam
3fac3f7860 Prefer animated stickers in getStickers.
GitOrigin-RevId: 1652ae43c36ebcb69752042cebb5dc8407558c06
2019-07-26 02:54:35 +03:00
levlam
98b8929932 Fix includes.
GitOrigin-RevId: 7b62de39f2d62ac8c14c24fb83041c717ba49873
2019-07-23 01:50:12 +03:00
levlam
e76c98ad74 Fix animated stickers extension.
GitOrigin-RevId: 69d65bd19e46fe2eb2dc6ebb4afd6dd64164ffc9
2019-07-18 19:47:29 +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
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
a74cda9603 Fix warning.
GitOrigin-RevId: f2e991783d1897c23f857a20bf109c138eb96489
2019-06-18 02:05: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
b75c532f2d Do not trust external documents from secret chats.
GitOrigin-RevId: e0341ce1e2017c6d0b8ac44e18fc9e03de65ccbe
2019-06-17 16:46:20 +03:00
levlam
97c50d5e58 Delete broken sticker sets from database before crash.
GitOrigin-RevId: 2fd0a2351560d56d0df21f38ed58bb4e223cb7fa
2019-06-13 23:16:12 +03:00
levlam
e5f068e47a Minor fixes.
GitOrigin-RevId: 49ed5d6671efa92dec7b09fa8e7863e3665ea355
2019-06-12 16:05:22 +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
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
652d2a9570 Add td_api::setBackground.
GitOrigin-RevId: e0c38213b41942ed8a5163ca7eb4ea61caa71d7b
2019-05-10 15:36:37 +03:00
levlam
85dd77b02c Initial background support.
GitOrigin-RevId: 14d3a1166f837069c55f40036a633295600524ca
2019-05-07 05:51:56 +03:00
levlam
3ecf990ad6 Update layer to 95.
GitOrigin-RevId: 0d6b470b6ca6f72b5b87fbd899aaeae8892f8834
2019-03-15 16:52:55 +03:00
levlam
43483e743d Update layer to 92: minithumbnails support.
GitOrigin-RevId: a2e3bba42504cdaf91db1e0113bc98c450ba78c9
2019-03-01 22:51:33 +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
9dc4785727 Repair broken sticker lists in the database.
GitOrigin-RevId: dccee88cabb2bad66fd37b91adf49c905c08594e
2019-05-29 22:24:27 +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
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
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
dc79cdc0b1 Add Document class.
GitOrigin-RevId: e1a5a8235f341cf0955ee37086a99a17e7b123de
2019-04-09 18:38:57 +03:00
levlam
a7d50c1ae8 Cancel more requests when closing.
GitOrigin-RevId: 5d7f37cf8abf45cfe37f3ab589f85a5e96417ffb
2019-04-08 17:57:41 +03:00
levlam
923acf298e Fail some sticker queries when closing.
GitOrigin-RevId: 30320a183002e6371f65c80cd21dc2aba318ca17
2019-04-08 01:14:09 +03:00
levlam
16d7278db9 Improve logging.
GitOrigin-RevId: 00d69bf29fb339c0eaaffbf9150bc2285b56fd3b
2019-02-20 05:37:04 +03:00
levlam
c8cfee8d7b Better deduplicating saved animations and recent/featured stickers.
GitOrigin-RevId: 2bc58b3fabbf1cb01727e584036846e6acde0cc6
2019-02-16 05:29:28 +03:00
levlam
ec692e98e4 Remove some errors logging while closing.
GitOrigin-RevId: 65e4ca3d0748b4d59511d9024e2eff1367e13cf7
2019-02-14 18:36:16 +03:00
levlam
ed25f88c19 Prefer InputFile over remote location in get_input_media.
GitOrigin-RevId: 01db2a0669b966ddac59b7f18b62f154cb54a427
2019-02-12 04:50:30 +03:00
levlam
6a43a9e91e Support file reference errors in SendMultiMediaActor.
GitOrigin-RevId: ef25dd8bedab0998db1e57572e46e072c5e2e374
2019-02-08 17:54:23 +03:00
levlam
c6d1a10734 Support repairing file references in SaveRecentStickerQuery.
GitOrigin-RevId: 710cd8d2bb126456dae78848eb5acaace18ffbca
2019-02-02 14:41:30 +03:00
levlam
7551b5617f Support repairing file references in SaveFavedStickerQuery.
GitOrigin-RevId: 92b0b851130c75bfb6bd7cab813aae815aba5200
2019-02-02 14:14:20 +03:00
levlam
005f943537 Add fileSourceFavoriteStickers.
GitOrigin-RevId: 4affa759ed53ace4b2f03c44cbf9f1c66b4890ac
2019-02-02 13:54:40 +03:00
levlam
7095879641 Add fileSourceRecentStickers.
GitOrigin-RevId: 727361a312d64588852dad07b1742bf596e9b5ad
2019-02-02 13:30:49 +03:00
Arseny Smirnov
2032f89723 FileManager: support two file references for photos
GitOrigin-RevId: f27a9867315e12e79a456c12949d8d2580531bbe
2019-01-30 20:08:50 +04:00
levlam
297e7642bb File reference repair in SendMedia.
GitOrigin-RevId: 086076167af60b39d132a8c71b84f965c4b521d0
2019-01-28 18:21:48 +03:00
levlam
c958bd5b7c Add FileManager::cancel_upload.
GitOrigin-RevId: d6db4e90fbe361ed2c90e509fe3aa609df5988e6
2019-01-25 04:52:38 +03:00
levlam
44ed807417 Do not throw away file ids of reused media.
GitOrigin-RevId: dcc460775768ae87ffc3be01ef8da8985b394463
2019-01-25 04:38:11 +03:00
levlam
4eec01cb49 Support file reference repair in getAttachedStickerSets.
GitOrigin-RevId: 368e1eccdbb99b9953153daf970825405ef6348d
2019-01-24 22:41:05 +03:00
levlam
0ac8c2d389 Repair file_reference in SaveGifQuery.
GitOrigin-RevId: ae9fcc543795a659c51699af8ea0048a0b5f8fb5
2019-01-23 22:20:48 +03:00
levlam
8ac921b8e7 Add FileManager::get_file_ids_object.
GitOrigin-RevId: a7e76f5e28514e2ccd99ce2316d5e4043836062f
2019-01-21 20:19:02 +03:00
levlam
e5400074ce Move FileType to FileType.h.
GitOrigin-RevId: 7e35c0f30b7755755b0583704dcfe344cc28d117
2019-01-20 00:54:29 +03:00
Arseny Smirnov
a75726d77a FileManager: file references draft
GitOrigin-RevId: 8d37ee4b5520497df08f49e598ae91825e74e1ea
2018-12-05 12:32:31 +03:00
levlam
5438119bb4 Fix Global.h and TdDb.h includes.
GitOrigin-RevId: 89fa1ee3e8071ad3f27687f79d1a52de113f9705
2019-01-06 22:59:17 +03:00
levlam
c8f3573ca5 Do not try to attach stickers not from sticker sets.
GitOrigin-RevId: e5ae71d7e47ab5e055ecdafd22a0cbe77c19ab71
2019-01-06 21:26:19 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
c3e7958020 Do not store sticker <-> emoji correspondence for bots.
GitOrigin-RevId: a631b0a288629c317402338d54bc8f3a7b027a09
2019-12-30 06:35:53 +03:00
levlam
e371abc0a7 Better logging of failed to parse sticker set in the database.
GitOrigin-RevId: 5fdf590fbfccb456f8dc2612470970031f81a199
2018-12-28 20:15:52 +03:00
levlam
ac3fa705a2 File streaming fixes.
GitOrigin-RevId: 86c6d1394a31d6bb108a12e14f4d981133ece235
2018-12-26 19:11:15 +03:00
levlam
c6c82220a4 Add on_sent_message_content.
GitOrigin-RevId: ce05a403dd251208c19696598b7ff2fea7b910f0
2018-12-12 15:57:24 +03:00
levlam
0eff518c4e Add StickersManager::after_get_difference.
GitOrigin-RevId: ba5502e640aa704267c97b7b995405375134547b
2018-12-12 05:55:08 +03:00
levlam
dbcbacea9a Fix getAttachedStickerSets for photos.
GitOrigin-RevId: a96584c9cc797f7e15d850af0a5c4c5d73b3d1ac
2018-10-01 14:34:42 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
e086b4f740 Add MessagesManager::get_current_state.
GitOrigin-RevId: c5bcea8ae60503a50ab9707b61fcc082ebc89f79
2018-09-21 10:15:07 +03:00
levlam
f9de09833c Add StickersManager::get_current_state.
GitOrigin-RevId: 52c53d43d72150d297f2c511c0e49cb83d22b873
2018-09-20 22:25:09 +03:00
levlam
bcadd6a459 Unite requests for getting full language pack.
GitOrigin-RevId: 401ccd4168f56c555af1a7827384395dcf906fc0
2018-08-24 04:53:14 +03:00
levlam
6dd751ab10 Fix duplicated stickers.
GitOrigin-RevId: 138fddeb69af48ce77a6e3005e7d356165b897f9
2018-07-31 23:48:54 +03:00
levlam
7626c1a6dc Add more get_stickers debug.
GitOrigin-RevId: dd0cef99c5866ed59f7f6db1a7e365b57b4e8d1e
2018-07-31 20:48:38 +03:00
levlam
d67645a2cb Add get_stickers debug.
GitOrigin-RevId: c82190d2e03712a2a716608fd5ab40b1908e023a
2018-07-31 20:17:46 +03:00
levlam
46ebd1b240 Include SqliteKeyValue only in cpp.
GitOrigin-RevId: b89c988f6da1d480f68ecb71ef5390e9376faac1
2018-07-18 04:11:48 +03:00
levlam
e2a90b9edf Fix some string to Slice conversions.
GitOrigin-RevId: 79ddee1a90c633cc1b1df5c8e3d9917027bad0f3
2018-07-08 02:47:46 +03:00
levlam
de7160f890 Make some arrays const.
GitOrigin-RevId: 6c7f0cf45fdc6736defb1559674242e1f1f29c91
2018-07-03 02:28:28 +03:00
levlam
4ebc21fe3d Get stickers_limit on construction.
GitOrigin-RevId: cb44a40f6dd47238bfeccc20d03171126fa87bd4
2018-07-03 02:10:57 +03:00
levlam
46535703e0 Fix some includes.
GitOrigin-RevId: 901d167d7197e4c0222656e9fc1f9fc0e216e44b
2018-06-26 02:43:11 +03:00
levlam
046ad3b752 Make TlStorerUnsafe buffer unsigned.
GitOrigin-RevId: 8bb19c10e4edd8b015d3a2be0449426c9c07f7df
2018-06-25 02:58:43 +03:00
levlam
8750c7a41a Better suggested name for sticker thumbnails.
GitOrigin-RevId: 5372a13825f558e47ee84bfaa705af6a9b587298
2018-06-01 01:23:07 +03:00
Arseny Smirnov
fb79d6f95a Layer 78. Initial Telegram Passport support.
GitOrigin-RevId: 197994bcf62a76cd963f32a8dd7f5951d7b6588b
2018-03-27 16:11:15 +03:00
levlam
88d5e5e015 Exclude trending stickers from getStickers.
GitOrigin-RevId: 52655e51077a48ac2bea6320f2c4be0aa5c18127
2018-03-17 20:24:21 +03:00
levlam
6422e77e15 Load installed sticker sets before changing sticker set.
GitOrigin-RevId: f4794d3c65327aa173030f6e53aaccc23875aff0
2018-03-10 14:15:23 +03:00
levlam
2a58cfd1b9 Add td_api::searchStickers method.
GitOrigin-RevId: e9615b7e2cdab0b7419f6cfbbf2289787233a693
2018-03-09 20:04:44 +03:00
levlam
a4fe4c93b3 New stickers by empji suggestions.
GitOrigin-RevId: 6396bb77310fc86cec1cb6d4fd13b5e782ffd7a3
2018-03-09 18:00:07 +03:00
levlam
ab9ce52e5c Update remote_id in FileId list if possible.
GitOrigin-RevId: 3c42e3947ee454b786213e681e39220ab0fdccfe
2018-03-08 21:04:28 +03:00
levlam
34f6fd8942 Ensure that list size limit isn't exceeded.
GitOrigin-RevId: eded5582f4828928ca37fe64cde6c58fb469242c
2018-03-08 17:17:53 +03:00
levlam
6669bd8c7b Support for recent_stickers_limit.
GitOrigin-RevId: f49119eb0703bb03e7c564a4f90a1f91f9c6074b
2018-03-08 16:49:45 +03:00
levlam
c35bc1c0fc Remove now unsafe FileId constructors.
GitOrigin-RevId: eb3e37f4056ff6b967e4fd3d9b310fdc0e7602a1
2018-03-07 02:37:39 +03:00
levlam
032aed823a Fix file list hash calculation.
GitOrigin-RevId: e39474ebdc128079f65a4e2d97ecc4b0a8419c22
2018-03-07 02:02:49 +03:00
levlam
17ea2cb2b6 Add td_api::searchInstalledStickerSets and td_api::searchStickerSets.
GitOrigin-RevId: 6abcb03bbbd79e3d1dc8156ac684de7100b85170
2018-03-06 01:44:11 +03:00
levlam
c40ab5d8d6 Fix loading of sticker sets.
GitOrigin-RevId: dc3d4425181d154a0aa5dbc2b7e1042ef216a127
2018-02-27 04:14:47 +03:00
levlam
d1f1a14a37 Update layer to 76: add messageWebsiteConnected.
GitOrigin-RevId: 8cb5128a7d7eac2afe0622fc901392bf318fa460
2018-02-22 03:36:40 +03:00
levlam
24b3998662 Fix installed sticker set list.
GitOrigin-RevId: 34c6e87b79d3626bb4d51d85753d8f652faafcd5
2018-02-13 23:41:37 +03:00
levlam
a6ab35e616 Replace std::max/min with td::max/min.
GitOrigin-RevId: 56fb21194e995cbb37b3ebb5caed689c10320b8d
2018-02-12 13:37:54 +03:00
levlam
607a485bdf Remove variation selector-15 from emoji just in case.
GitOrigin-RevId: 843a05314c7f993963d721b7c149a0a37d0531ac
2018-02-08 14:42:59 +03:00
levlam
536def0382 Fix has_input_media.
GitOrigin-RevId: f10ffc8116028849b3a0afc4ebf7169d707dd794
2018-01-31 12:18:40 +03:00
levlam
d7ecc96113 Update layer to 75. Support entities in captions.
GitOrigin-RevId: a633d5d57c52794da0fc1b6de04f4ff1a4ed00fd
2018-01-30 20:06:54 +03:00
levlam
f0e660e2aa Better FileLocationSource.
GitOrigin-RevId: bed0d4f52b129560097f0877bd4b3d3511914f27
2018-01-26 15:56:19 +03:00
levlam
c5b89c0302 Do not log expected error message.
GitOrigin-RevId: 19b20f3c40073a79de187bc4890f4085812900e7
2018-01-25 19:39:10 +03:00
levlam
0fa92bdb87 Improve log messages.
GitOrigin-RevId: b33eacf1de0f88c6cc0a8208ab82099cd9e1be83
2018-01-25 19:01:10 +03:00
levlam
f856a383ad Do not return empty sticker sets.
GitOrigin-RevId: 987492861215c593f7d9b9a6d475f63dd07b6e5e
2018-01-16 15:42:51 +03:00
levlam
2bd0b62f9a Disable deletion of old document info.
GitOrigin-RevId: 23a398aede9e1cae62d4e679474f9b82f55cefa4
2018-01-06 23:55:14 +03:00
levlam
5cbda834bd Update copyright year.
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
2018-01-02 16:45:09 +03:00
Arseny Smirnov
71d03f39c3 Project import generated by Copybara.
GitOrigin-RevId: 318483224ad6164d9966f731d60cde37039bb2d4
2017-12-31 23:08:40 +03:00