Commit Graph

337 Commits

Author SHA1 Message Date
levlam
96cca84a60 Remove source from next_utf8_unsafe. 2022-08-19 16:37:44 +03:00
levlam
a8b3573a00 Always pass non-null pointer to next_utf8_unsafe. 2022-08-19 16:19:58 +03:00
levlam
04b98aa385 Use OptionManager directly if possible. 2022-08-18 17:00:18 +03:00
levlam
3318ffdb20 Proxy all option-related requests through G. 2022-08-17 16:11:13 +03:00
levlam
f0a89c3dbe Remove process_input_caption in favor of get_formatted_text. 2022-08-15 16:26:51 +03:00
levlam
b1e43bfbd5 Pass FormattedText to get_first_url. 2022-08-15 15:55:48 +03:00
levlam
a045e8a528 Avoid expected error logging. 2022-08-08 16:42:26 +03:00
levlam
2867fe3637 Improve get_message_content_file_ids implementation. 2022-08-05 22:59:39 +03:00
levlam
3c863517ba Return messageAnimatedEmoji for single custom emoji. 2022-08-05 17:58:16 +03:00
levlam
33623f9818 Remove unused can_delete_old parameter. 2022-08-03 21:38:03 +03:00
levlam
a67155a145 Add source to get_message_content. 2022-08-01 14:45:44 +03:00
levlam
2c9e1767dd Ignore empty entities loaded from database. 2022-07-31 00:34:30 +03:00
levlam
e40fbde299 Check currency amounts received from server. 2022-07-30 03:58:46 +03:00
levlam
a5da79327d Preload and check all custom emoji in secret chats. 2022-07-27 23:47:16 +03:00
levlam
e601012e9f Remove known premium emoji from secret chat messages from non-premium users. 2022-07-27 21:52:42 +03:00
levlam
6383e7f1b1 Improve remove_unallowed_entities. 2022-07-27 20:35:40 +03:00
levlam
97ab564e07 Prepare for removing premium custom emoji if have no premium. 2022-07-22 18:11:55 +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
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
52214f37bc Don't warn when server deletes a custom emoji entity. 2022-07-21 14:10:26 +03:00
levlam
ba3f24ed8d Rename stickerTypeEmoji to stickerTypeCustomEmoji. 2022-07-19 14:51:29 +03:00
levlam
fd6684ab9d Disallow sending, adding to favorite and recent for emoji stickers. 2022-07-18 14:51:37 +03:00
levlam
1f2e8d7c57 Check voice_messages_forbidden for private chats before sending messages. 2022-07-17 17:15:48 +03:00
levlam
ea8f81187e Support documentAttributeCustomEmoji. 2022-07-14 17:11:36 +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
b8bd39dc6f Fix PaymentSuccessful comparison. 2022-07-14 00:13:52 +03:00
levlam
c01dd0d461 Increase MessageUnsupported version. 2022-07-12 22:50:28 +03:00
levlam
dd89d46a27 Unify message media type variable names. 2022-07-01 15:04:11 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
f48fd19e98 Fix is_premium flag. 2022-06-07 17:21:45 +03:00
levlam
157878f47e Fix reply_in_dialog_id. 2022-06-06 18:01:44 +03:00
levlam
fc2a95cac6 Avoid expected error logging. 2022-06-06 17:44:38 +03:00
levlam
8fae960e43 Support premium stickers in secret chats. 2022-06-03 17:31:48 +03:00
levlam
8b9bed6a0b Add messageSticker.is_premium. 2022-06-03 16:33:49 +03:00
levlam
6d0e57a8c5 Add is_recurring flags to messagePaymentSuccessful. 2022-05-30 16:35:25 +03:00
levlam
de4d3e7620 Register voice note messages. 2022-05-25 19:39:15 +03:00
levlam
4ef4933536 Add optional invoice name to messagePaymentSuccessful. 2022-05-11 18:52:45 +03:00
levlam
0909f88bc3 Use int53 for file size in TDLib API. 2022-05-11 17:17:20 +03:00
levlam
880a582959 Add layer 143 to secret chats. 2022-05-11 07:46:06 +03:00
levlam
447cfbfb1d Support premium stickers. 2022-04-26 16:01:29 +03:00
levlam
1cace9e666 Ensure that message chat photo is not null. 2022-06-05 22:51:13 +03:00
levlam
82c9d538ce Ensure that photo is not null. 2022-06-05 22:39:03 +03:00
levlam
014b458425 Add Dimensions.h. 2022-06-02 17:52:12 +03:00
levlam
63a4027ab2 Add source to on_get_poll. 2022-05-29 19:31:36 +03:00
levlam
a90dd653af Avoid logging to error if invalid dimensions were provided by app. 2022-05-26 17:13:31 +03:00
levlam
de5f047dba Remove all emoji modifiers, including modifiers in the middle. 2022-05-12 18:02:27 +03:00