Commit Graph

591 Commits

Author SHA1 Message Date
levlam
73c2145c0b Improve need_message_text_changed_warning. 2024-06-15 22:17:44 +03:00
levlam
70c03cf22f Check that parameter show_caption_above_media is the same for all media album messages. 2024-05-15 23:12:47 +03:00
levlam
30416fe801 Add function check_message_group_message_contents. 2024-05-15 22:53:41 +03:00
levlam
bbf45047d0 Support sending messages with caption above media. 2024-05-15 18:04:42 +03:00
levlam
31b348e108 Move extract_input_caption to MessageContent.cpp. 2024-05-15 17:33:56 +03:00
levlam
f9d3431401 Add flag show_caption_above_media to relevant message content types. 2024-05-15 17:19:41 +03:00
levlam
b1044c9348 Don't check received from server strings for emptiness. 2024-05-04 23:12:26 +03:00
levlam
6be5906111 Support indefinite sharing of live locations. 2024-04-25 20:38:27 +03:00
levlam
9fa1656557 Remove unallowed custom emoji when copying poll. 2024-04-23 22:10:48 +03:00
levlam
7be2966e27 Support custom emoji in poll question and options. 2024-04-23 03:10:58 +03:00
levlam
306aec8d6a Check app-provided contact.user_id. 2024-04-28 21:46:18 +03:00
levlam
e08cf00efb Remove unused get_formatted_text parameters. 2024-04-23 20:04:38 +03:00
levlam
8e2713ca93 Use get_formatted_text. 2024-04-23 19:43:12 +03:00
levlam
bd8c6be0cd Rename rest of ContactsManager to ChatManager. 2024-04-02 13:06:22 +03:00
levlam
03a624903e Move relevant functions to UserManager. 2024-04-02 03:52:34 +03:00
levlam
25f87a39ac Improve custom emoji checks and business messages processing. 2024-03-29 15:52:03 +03:00
levlam
6121755719 Fix video note length check. 2024-03-28 23:22:21 +03:00
levlam
a9d5078f66 Increase MessageUnsupported version. 2024-03-28 19:11:27 +03:00
levlam
f7db1f1e32 Add MessageContentType::DialogShared. 2024-03-22 00:43:18 +03:00
levlam
35124395a4 Use sharedUser/sharedChat in messageUserShared/messageChatShared. 2024-03-21 22:00:36 +03:00
levlam
bce17cb5d8 Update layer to 177. 2024-03-07 15:24:28 +03:00
levlam
acef6e61a0 Check close_flag() first. 2024-02-18 20:55:41 +03:00
levlam
e1098ef8e9 Allow empty non-null backgrounds in chat event log. 2024-02-13 16:56:07 +03:00
levlam
6dfdb00f85 Support messageActionBoostApply. 2024-02-13 13:45:40 +03:00
levlam
64635aefe1 Add td_api::messageChatBoost. 2024-02-07 20:50:00 +03:00
levlam
cb3c623fd2 Update layer to 174. 2024-02-07 20:34:28 +03:00
levlam
ec21b0276f Set disable_web_page_preview to true only if the message has a link. 2024-01-31 12:48:03 +03:00
levlam
3d539f1bcc Add class MessageSelfDestructType. 2024-01-30 15:07:21 +03:00
levlam
eb3f9f7ba1 Improve error messages. 2024-01-29 01:09:46 +03:00
levlam
7144475524 Increase MessageUnsupported version. 2024-01-26 23:07:39 +03:00
levlam
b287f2f177 Remove unused init_stickers_manager fucntion. 2024-01-11 21:46:12 +03:00
levlam
052f6cb20c Allow to send self-destructing video notes and voice notes. 2024-01-02 14:51:16 +03:00
levlam
139b61e4b6 Add td_api::messageExpiredVideoNote and td_api::messageExpiredVoiceNote. 2024-01-02 14:27:11 +03:00
levlam
dc3929fede Remove is_unsent_animated_emoji_click proxy function. 2024-01-07 01:08:41 +03:00
levlam
cb6c15b9c9 Explicitly check message content before trying to register it for bots. 2024-01-05 18:43:53 +03:00
levlam
32898dbe88 Move get_chat_ids_object and get_chats_object to DialogManager. 2024-01-04 16:13:20 +03:00
levlam
eb5a37e927 Add DialogManager::force_create_dialog. 2024-01-04 15:38:01 +03:00
levlam
b2fccc7d9c Move ContactsManager proxy methods to DialogManager. 2024-01-03 23:07:50 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
e3a01fddd7 Improve includes. 2023-12-26 21:39:48 +03:00
levlam
d79114691c Replace td_api::messageUserShared with td_api::messageUsersShared. 2023-12-22 19:17:58 +03:00
levlam
0b51acefe9 Add td_api::messagePremiumGiveawayWinners. 2023-12-18 21:03:11 +03:00
levlam
895150e649 Add optional currency information to messagePremiumGiftCode. 2023-12-18 13:30:21 +03:00
levlam
58e8b7c97e Support creation of giveaways with public list of winners and additional prize description. 2023-12-05 13:45:32 +03:00
levlam
c6ce44815e Update layer to 169. 2023-12-05 12:30:12 +03:00
levlam
5b8fff9643 Allow messagePremiumGiftCode.creator_id == null. 2023-12-22 12:51:58 +03:00
levlam
542271a1fd Don't save get_id() to a used-once variable before switch. 2023-12-12 23:20:41 +03:00
levlam
dce778442c Allow 0 as giveaway_message_id in messagePremiumGiveawayCompleted. 2023-12-11 00:44:47 +03:00
levlam
44844e1c19 Improve link preview options comparison. 2023-12-07 21:16:37 +03:00
levlam
f4f46c9a79 Don't try to process stories inside message content by bots. 2023-12-07 13:34:37 +03:00