Commit Graph

361 Commits

Author SHA1 Message Date
levlam
7115f19332 Suppress expected warnings. 2022-10-06 18:31:01 +03:00
levlam
aa6ed42734 Add class CustomEmojiId. 2022-10-03 01:26:32 +03:00
levlam
6917d9c36f Improve secret chat schema constructor naming. 2022-09-28 12:17:04 +03:00
levlam
75a021e836 Really avoid force_reuse even for message photos. 2022-09-27 20:17:30 +03:00
levlam
bb69175aab Add InputInvoice::is_equal_but_different. 2022-09-24 22:55:03 +03:00
levlam
b10983acfa Add InputInvoice::need_reget. 2022-09-24 22:45:29 +03:00
levlam
6a5989eb8b Add InputInvoice::update_from. 2022-09-24 22:42:47 +03:00
levlam
92f9f8bdd0 Support extended media polling. 2022-09-24 22:17:17 +03:00
levlam
263b383530 Support extended media in inputMessageInvoice. 2022-09-23 16:16:56 +03:00
levlam
e5d1fd0dfa Move InputInvoice methods inside the class. 2022-09-23 12:52:54 +03:00
levlam
87e2e107bb Unify field naming in Invoice/InputInvoice classes. 2022-09-23 12:30:26 +03:00
levlam
7f353cd064 Support telegram_api::updateMessageExtendedMedia. 2022-09-23 12:07:07 +03:00
levlam
7f433c7e18 Add OrderInfo.h. 2022-09-22 19:28:39 +03:00
levlam
1e1191fcfc Move InputInvoice to InputInvoice.h. 2022-09-22 19:08:06 +03:00
levlam
2a4201f989 Move some functions to Photo.h. 2022-09-22 18:25:20 +03:00
levlam
e9b181ec42 Support ExtendedMedia in MessageContent. 2022-09-22 18:05:58 +03:00
levlam
1fd5452c8f Add version for MessageExtendedMedia::Unsupported. 2022-09-22 15:30:12 +03:00
levlam
2440ebda56 Never replace ExtendedMedia media with preview. 2022-09-22 06:39:40 +03:00
levlam
a7d8d28895 Add td_api::messageExtendedMedia. 2022-09-22 01:46:12 +03:00
levlam
ee381ecbb5 Avoid force_reuse even for message photos. 2022-09-20 00:26:22 +03:00
levlam
ce1292ea32 Allow to always reuse photos from inputMessagePhoto. 2022-09-15 16:08:19 +03:00
levlam
e087521b01 Fix compilation error. 2022-09-14 19:02:49 +03:00
levlam
ce9175a00b Always use "must be non-empty". 2022-09-10 22:48:34 +03:00
levlam
c5040d9fcd Locally move sticker set to top. 2022-09-04 21:35:11 +03:00
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