Commit Graph

6814 Commits

Author SHA1 Message Date
levlam
bcf2580e09 Add discount_percentage. 2022-07-24 16:18:20 +03:00
levlam
8183e062ab Handle installed sticker sets of incorrect type in the database. 2022-07-24 15:03:54 +03:00
levlam
40b5b586e6 Add sticker_type to getStickers. 2022-07-24 14:53:48 +03:00
levlam
99ae4ada88 Access arrays with pre-casted sticker type. 2022-07-24 14:01:58 +03:00
levlam
f26a33b3d3 Implement StickersManager::is_premium_custom_emoji. 2022-07-22 19:06:39 +03:00
levlam
d361d6e8a1 Add StickersManager::get_custom_emoji_id. 2022-07-22 18:27:12 +03:00
levlam
97ab564e07 Prepare for removing premium custom emoji if have no premium. 2022-07-22 18:11:55 +03:00
levlam
680cce2f6d Remove spoiler and custom emoji entities for messages sent to secret chats. 2022-07-22 17:21:58 +03:00
levlam
833dfcc9db Remove spoiler and custom emoji entities from messages forwarded to secret chats. 2022-07-22 16:47:58 +03:00
levlam
03773d01fd Disallow emoji stickers in secret chats. 2022-07-22 16:11:33 +03:00
levlam
813867eb66 Improve special sticker set loading. 2022-07-22 15:40:24 +03:00
levlam
a81740892d Add messageGiftedPremium.sticker. 2022-07-22 15:01:44 +03:00
levlam
61fe5d0df5 Register GiftPremium messages. 2022-07-22 13:30:24 +03:00
levlam
da7d302dec Increase MessageUnsupported version to reload messages with custom emoji. 2022-07-22 12:15:21 +03:00
levlam
06b10526f1 Increase maximum allowed value for mute_for. 2022-07-22 11:35:09 +03:00
levlam
b5468e4cac Move out StickerType from inputSticker. 2022-07-21 17:31:27 +03:00
levlam
342bf8c41f Preload sticker set before adding a sticker to it. 2022-07-21 16:06:58 +03:00
levlam
310c4d1b6a Always try to fetch mask_position. 2022-07-21 15:54:43 +03:00
levlam
52214f37bc Don't warn when server deletes a custom emoji entity. 2022-07-21 14:10:26 +03:00
levlam
d499fa5834 tg_cli: use real custom emoji identifiers. 2022-07-21 13:54:18 +03:00
levlam
1d7af482fe Support additional payment options in payment form. 2022-07-20 20:44:40 +03:00
levlam
7d94cc9aa8 Remove some unneeded logging. 2022-07-20 18:01:26 +03:00
levlam
771b6d3991 Add td_api::getCustomEmojiStickers. 2022-07-19 16:00:04 +03:00
levlam
ba3f24ed8d Rename stickerTypeEmoji to stickerTypeCustomEmoji. 2022-07-19 14:51:29 +03:00
levlam
219d5ecf87 Add sticker.custom_emoji_id. 2022-07-19 14:45:37 +03:00
levlam
eef3fe5932 Support custom emoji in parse_html. 2022-07-19 14:13:37 +03:00
levlam
8e09a83506 Support custom emoji in MarkdownV2. 2022-07-18 23:40:57 +03:00
levlam
585191bb6f Process stickerSetFullCovered. 2022-07-18 21:44:44 +03:00
levlam
903236bf78 Fix wrong value of status.can_be_edited. 2022-07-18 21:14:04 +03:00
levlam
8673d30109 Add gift support in assignGooglePlayTransaction. 2022-07-18 15:17:01 +03:00
levlam
fd6684ab9d Disallow sending, adding to favorite and recent for emoji stickers. 2022-07-18 14:51:37 +03:00
levlam
2064034364 Rename uploadFile/cancelUploadFile for clarity. 2022-07-18 14:07:50 +03:00
levlam
1a2d1adb0c Fix early return in ContactsManager::drop_user_photos. 2022-07-18 01:43:46 +03:00
levlam
4482ee461d Call update_user and update_user_full in on_set_profile_photo just in case. 2022-07-18 01:39:51 +03:00
levlam
fb0689545d Add textEntityTypeCustomEmoji. 2022-07-18 01:03:58 +03:00
levlam
7cd65d06a1 Support emoji stickers in get_max_sticker_file_size. 2022-07-17 23:49:46 +03:00
levlam
4442293acf Support trending emoji sticker sets. 2022-07-17 22:39:22 +03:00
levlam
1f2e8d7c57 Check voice_messages_forbidden for private chats before sending messages. 2022-07-17 17:15:48 +03:00
levlam
45f68d9e06 Ensure that voice_messages_forbidden is false for non-premium users. 2022-07-17 17:15:15 +03:00
levlam
fcfe9c3996 Add userFullInfo.as_restricted_voice_and_video_note_messages. 2022-07-17 16:59:12 +03:00
levlam
15e0786632 Add userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages. 2022-07-16 21:20:18 +03:00
levlam
32c7bd8bcd Support thumbnail_document_id. 2022-07-16 17:22:30 +03:00
levlam
577d48cba5 Add premiumFeatureCustomEmoji. 2022-07-16 14:33:54 +03:00
levlam
cb33c7b852 Delete min channel in add_channel. 2022-07-15 17:39:23 +03:00
levlam
347e1b81cf Avoid warnings for changes of restricted messages. 2022-07-15 17:04:41 +03:00
levlam
ddb572b830 Add more debug for have_full_history. 2022-07-15 17:03:40 +03:00
levlam
d506c4732a Add getPremiumGiftOptionSticker. 2022-07-15 16:15:59 +03:00
levlam
2c7493978b Remove unneeded td_api::getAllAnimatedEmojis. 2022-07-15 15:29:19 +03:00
levlam
d3b9b3b7c4 Support premium gifts special sticker set. 2022-07-15 15:24:08 +03:00
levlam
a114133854 Add purpose to canPurchasePremium. 2022-07-15 14:09:37 +03:00
levlam
3bfb3cdbb1 Add explicit flag sticker.is_premium. 2022-07-15 13:37:46 +03:00
levlam
ea8f81187e Support documentAttributeCustomEmoji. 2022-07-14 17:11:36 +03:00
levlam
5bdc4e207b Add stickerTypeEmoji. 2022-07-14 16:42:27 +03:00
levlam
c34f5d063b Use StickerType instead of is_masks everywhere. 2022-07-14 16:17:19 +03:00
levlam
b447c32fe9 Add class StickerType. 2022-07-14 15:02:55 +03:00
levlam
a896edcd14 Move mask_position out of stickerTypeMask. 2022-07-14 14:38:25 +03:00
levlam
7d5dc9fd16 Split sticker format and sticker type in API. 2022-07-14 13:58:33 +03:00
levlam
6817f3fc44 Allow to specify password in deleteAccount. 2022-07-01 21:25:34 +03:00
levlam
54c052adce Add td_api::StorePaymentPurpose. 2022-07-01 19:27:59 +03:00
levlam
035f24b8e9 Add userFullInfo.premium_gift_options. 2022-07-01 15:57:38 +03:00
levlam
4f7113395b Add td_api::messageGiftedPremium. 2022-07-01 15:28:22 +03:00
levlam
e38615b71e Update layer to 144. 2022-07-01 14:33:59 +03:00
levlam
262ea91d9a Drop via_bot from forwarded Audio. 2022-07-25 16:28:46 +03:00
levlam
a63642c8bf Avoid broken server copy for some quizes. 2022-07-24 12:54:49 +03:00
levlam
6c98bec686 Ensure that poll is removed from being_closed_polls_ after request is completed. 2022-07-24 12:19:51 +03:00
levlam
3afbce24b3 Disable getStorageStatisticsFast for bots to reduce disk usage in the main thread. 2022-07-23 23:50:28 +03:00
levlam
2729d44f71 Move DownloadManagerImpl::*_impl functions to private section. 2022-07-23 17:19:18 +03:00
levlam
07cc51c1d5 Add check that download manager database isn't loaded recursively. 2022-07-23 17:16:21 +03:00
levlam
698b34709f Make DownloadManager::add_file asynchronous. 2022-07-23 17:11:25 +03:00
levlam
ec19eaad65 Call FileReferenceManager::get_file_search_text through DownloadManagerCallback. 2022-07-23 17:01:27 +03:00
levlam
061aac58db Make DownloadManager interface mostly asynchronous. 2022-07-23 16:41:03 +03:00
levlam
206becbb9f Safely traverse map. 2022-07-23 14:52:42 +03:00
levlam
03de62b29f Check data validness before initing InlineKeyboardButton. 2022-07-23 13:04:25 +03:00
levlam
1ff1059de8 Fix warning. 2022-07-23 12:59:21 +03:00
levlam
ad8693801f Fix another compilation error. 2022-07-23 12:15:54 +03:00
levlam
8efe57fb6b Fix ForwardMessagesLogEvent. 2022-07-23 12:06:14 +03:00
levlam
c6fc1bb98e Fix compilation error with old compilers. 2022-07-23 12:04:15 +03:00
levlam
3506bc94dc Check messageMediaPoll validness for just sent messages. 2022-07-23 11:32:08 +03:00
levlam
bc83832e03 Avoid copying when adding users/chats to binlog. 2022-07-23 11:00:46 +03:00
levlam
4cf1e02479 Add multiarg version of Scheduler::destroy_on_scheduler. 2022-07-22 21:21:30 +03:00
levlam
3ffe770d57 Fix generated file parsing. 2022-07-21 13:12:25 +03:00
levlam
4ac8be8122 Check local location of files when adding them to download manager. 2022-07-20 16:46:55 +03:00
levlam
0f87447ffc Asynchronously destroy some big data storages. 2022-07-20 13:40:14 +03:00
levlam
061c4f65d5 Drop context for SemaphoreActor before creation of the actor. 2022-07-20 10:56:48 +03:00
levlam
e8b0983d7b Use std::move to restore ActorContext. 2022-07-20 10:28:31 +03:00
levlam
87a5111399 Fix compilation error. 2022-07-19 12:40:34 +03:00
levlam
6898d07793 Make td_api::saveApplicationLogEvent persistent. 2022-07-18 19:21:47 +03:00
levlam
0147c97f9c Ensure that the same notification doesn't added and removed simultaneously. 2022-07-17 14:17:22 +03:00
levlam
c7fe53ecae Add additional checks in DownloadManager. 2022-07-17 14:02:33 +03:00
levlam
75902bb8a7 Improve logging. 2022-07-17 13:31:43 +03:00
levlam
72bc285637 Delete from database information about unlinked files. 2022-07-16 17:25:28 +03:00
levlam
02396be7eb Allow internal links in bio of non-premium users. 2022-07-16 16:10:06 +03:00
levlam
bedec2c9ba Add StickersManager::get_sticker_set_thumbnail_object. 2022-07-16 15:45:30 +03:00
levlam
abc9ed2cd9 Minor fixes. 2022-07-14 18:38:48 +03:00
Arseny Smirnov
bf80c43c05 fix CE 2022-07-14 18:36:46 +04:00
Arseny Smirnov
7ddc3099f6 remove td::this_thread::yield function. usleep_for(1) used instead 2022-07-14 16:15:17 +04:00
levlam
b8bd39dc6f Fix PaymentSuccessful comparison. 2022-07-14 00:13:52 +03:00
levlam
7618c9aa64 Add get_sticker_type function. 2022-07-13 23:02:46 +03:00
levlam
98bfbc9000 Use random_id == 1 in ChangeImportedContacts. 2022-07-12 23:04:01 +03:00
levlam
c01dd0d461 Increase MessageUnsupported version. 2022-07-12 22:50:28 +03:00