Commit Graph

281 Commits

Author SHA1 Message Date
levlam
a6151aff7b Don't delete old document after sticker upload. 2021-07-28 21:39:17 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
eb134b02f2 Improve error messages. 2021-06-25 21:21:17 +03:00
levlam
7e543cf80b Allow to use uploadStickerFile for animated stickers. 2021-06-21 22:25:26 +03:00
levlam
16f52b59ab Add createNewStickerSet.source. 2021-06-18 18:45:57 +03:00
levlam
cec785022a Update layer 129. 2021-06-18 18:26:11 +03:00
levlam
84cf82583e Add td_api::checkStickerSetName. 2021-06-17 21:29:07 +03:00
levlam
706647bdbc Add the method getSuggestedStickerSetName. 2021-06-17 20:38:03 +03:00
levlam
4048e5ae95 Enable createNewStickerSet for regular users. 2021-06-17 20:14:48 +03:00
levlam
8db4febd4c Minor improvements. 2021-06-02 15:43:56 +03:00
levlam
d7c739dc70 Ignore document and chat photo minithumbnails by bots. 2021-05-27 21:15:30 +03:00
levlam
4bb76a7b6f Update layer to 128. Remove photo volume_id/local_id. 2021-04-16 17:43:51 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
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