Commit Graph

9114 Commits

Author SHA1 Message Date
levlam
37637bf9ed Preload chat to which belongs the replied meessage from a draft. 2023-11-01 21:32:09 +03:00
levlam
36ce823dcc Add separate flag message.can_be_replied_in_another_chat. 2023-11-01 18:32:55 +03:00
levlam
0e0d6dd5eb Call hide_sender_if_needed immediately after origin creation. 2023-11-01 18:25:44 +03:00
levlam
887fd06e1c Keep external replies when forwarding a message. 2023-11-01 17:14:35 +03:00
levlam
6c1fb4fe57 Postpone adding of draft message to loaded from database chat. 2023-11-01 15:19:03 +03:00
levlam
0bbd41a5d5 Store directly pending_order in Dialog. 2023-11-01 15:02:32 +03:00
levlam
97eb982ade Fix get_input_message_reply_to_object. 2023-11-01 14:36:40 +03:00
levlam
95cf186fe6 Call on_dialog_updated and send_update_chat_draft_message independently. 2023-10-31 23:37:40 +03:00
levlam
740c001ff3 Add struct AddDialogData. 2023-10-31 23:24:28 +03:00
levlam
3e08601eea Silence old compiler warnings. 2023-10-31 22:34:40 +03:00
levlam
0e2300e1fa Add warning when reply quote changes. 2023-10-31 18:20:55 +03:00
levlam
d5d069416e Apply restrictions in channel chats. 2023-10-31 13:54:22 +03:00
levlam
2ad5a86fa7 Fix DialogParticipantStatus::get_effective_restricted_rights(). 2023-10-31 13:27:56 +03:00
levlam
9cf1afe1b0 Prefer original message as reply source. 2023-10-31 03:00:03 +03:00
levlam
04b431608d Fix get_message_reply_to_message_object and improve documentation. 2023-10-31 02:38:16 +03:00
levlam
d6f284e8cd Add td_api::getUserChatBoosts. 2023-10-31 01:52:26 +03:00
levlam
9e289e2046 Add chatBoost.id. 2023-10-31 01:14:18 +03:00
levlam
b2a85a5d1b Add td_api::updateChatBoost. 2023-10-31 00:18:38 +03:00
levlam
50243afc9a Add get_chat_boost_object function. 2023-10-31 00:09:48 +03:00
levlam
3c64604acc Update layer 166 scheme. 2023-10-30 23:26:53 +03:00
levlam
6ca71be27d Fix warning. 2023-10-30 23:17:39 +03:00
levlam
4648901627 tg_cli: support reply with quote. 2023-10-30 20:20:27 +03:00
levlam
dc930122a8 tg_cli: support replies in other chats. 2023-10-30 20:18:10 +03:00
levlam
8b95bde9b3 Globally set message reply for messages to be sent. 2023-10-30 19:35:03 +03:00
levlam
5c1b940402 Minor improvements. 2023-10-30 19:04:14 +03:00
levlam
4ebdd74343 Fix DraftMessage parsing. 2023-10-30 18:52:49 +03:00
levlam
ea450564b0 Add BlockQuote parsing in MarkdownV2. 2023-10-30 18:18:13 +03:00
levlam
24b09ce83d Return back check_utf8 in parseTextEntities. 2023-10-30 16:39:24 +03:00
levlam
841a6b5e45 Use clean_input_string in searchStringsByPrefix and parseTextEntities. 2023-10-29 23:54:09 +03:00
levlam
f10bcc49cb Support BlockQuote entities in textParseModeHTML. 2023-10-29 22:29:39 +03:00
levlam
5b2dd42e58 Init RepliedMessageInfo fields for sent replies to messages in other chats. 2023-10-29 22:14:41 +03:00
levlam
0ad0f7cdcc Improve function and parameters names. 2023-10-29 22:05:23 +03:00
levlam
1b12428c9a Add truncate_formatted_text function. 2023-10-29 21:22:25 +03:00
levlam
77fa45c72c Add MessagesManager::get_message_forward_origin. 2023-10-29 20:40:36 +03:00
levlam
9a66b6ec5c Disallow quotes and replies in other chats in secret chats. 2023-10-29 20:08:59 +03:00
levlam
c38bb8c51a Drop message_id for outgoing replies in private chats. 2023-10-29 14:25:42 +03:00
levlam
23c42e937a Add and use MessageInputReplyTo::add_dependencies. 2023-10-29 11:26:21 +03:00
levlam
456d2342bf Add td_api::premiumFeatureAccentColor. 2023-10-29 03:20:29 +03:00
levlam
7f5b50db9b Disallow to reply unknown messages in another chat. 2023-10-29 02:05:08 +03:00
levlam
b2b665e8d6 Remove unallowed reply quote entities. 2023-10-29 01:25:21 +03:00
levlam
7f5da4b5c5 Don't allow to reply in another chat non-forwardable messages. 2023-10-29 01:05:55 +03:00
levlam
0737f3b741 Support link preview in reply media content. 2023-10-29 00:57:50 +03:00
levlam
6e217d1aac Add inputMessageReplyToMessage.chat_id. 2023-10-29 00:50:33 +03:00
levlam
25eebd3d6f Update default option value. 2023-10-28 22:38:57 +03:00
levlam
eec35cf63e Init reply_to_random_id for scheduled messages. 2023-10-28 22:21:13 +03:00
levlam
ac7e48351e Inline is_same_chat_reply. 2023-10-28 21:11:24 +03:00
levlam
8a17168315 Disable separate notification for messageGiveawayLaunch. 2023-10-28 20:46:14 +03:00
levlam
8adea20fd3 Keep quote when forwarding replies. 2023-10-27 14:33:15 +03:00
levlam
e86539c015 Support story sender channel in get_message_content_min_channel_ids. 2023-10-27 14:04:09 +03:00
levlam
012211ea19 Pass MessageInputReplyTo to set_message_reply. 2023-10-27 13:33:00 +03:00
levlam
ec231f0c99 Add inputMessageReplyToMessage.quote. 2023-10-27 13:06:38 +03:00
levlam
d43fd3beb3 Disallow MessageInputReplyTo copying. 2023-10-27 03:37:26 +03:00
levlam
6517d6b9db Don't copy get_message_input_reply_to return value. 2023-10-27 03:27:03 +03:00
levlam
a92b2fec1d Make MessageInputReplyTo fields private. 2023-10-27 03:03:52 +03:00
levlam
adad6d6984 Add "message_reply_quote_length_max" option. 2023-10-27 02:21:29 +03:00
levlam
84edd20cfd Support messageOriginChannel in replied message info. 2023-10-27 02:18:49 +03:00
levlam
10e2decf4b Add and use RepliedMessageInfo::get_file_ids. 2023-10-27 01:50:32 +03:00
levlam
d8430c5681 Add and use WebPagesManager::get_web_page_channel_ids. 2023-10-27 01:44:11 +03:00
levlam
5b9731a974 Support RepliedMessageInfo in *FromMessage. 2023-10-27 01:41:15 +03:00
levlam
9260d38618 Support giveaway channels in *ChannelFromMessage. 2023-10-27 00:34:33 +03:00
levlam
11c20c0417 Add messagePremiumGiveaway.sticker. 2023-10-26 23:22:53 +03:00
levlam
8128c6e079 Reget message if reply contains MessageUnsupported. 2023-10-26 23:16:06 +03:00
levlam
e50a3ce18c Add messageReplyToMessage.content. 2023-10-26 22:53:25 +03:00
levlam
e113fb47f1 Add compare_message_contents function. 2023-10-26 18:50:16 +03:00
levlam
72c29377b7 Add messageReplyToMessage.origin. 2023-10-26 16:43:28 +03:00
levlam
10c9e400d3 Rename MessageForwardOrigin to MessageOrigin. 2023-10-26 16:26:52 +03:00
levlam
a953ef7225 Add messageReplyToMessage.send_date. 2023-10-26 16:14:43 +03:00
levlam
f0d166cbdc Add messageReplyToMessage.quote. 2023-10-26 15:52:42 +03:00
levlam
3531481591 Store RepliedMessageInfo in Message. 2023-10-26 14:51:32 +03:00
levlam
e791c98757 Support RepliedMessageInfo logging. 2023-10-26 01:11:36 +03:00
levlam
d839e5b68c Add RepliedMessageInfo::need_reply_changed_warning. 2023-10-26 01:01:22 +03:00
levlam
75d9abc388 Add RepliedMessageInfo::add_dependencies. 2023-10-25 17:44:24 +03:00
levlam
944bb24e51 Add RepliedMessageInfo(MessageInputReplyTo) constructor. 2023-10-25 17:37:28 +03:00
levlam
fc3dfbe3c0 Add RepliedMessageInfo::get_message_reply_to_message_object. 2023-10-25 17:24:24 +03:00
levlam
e4ffed5752 Move other reply_to_message_id checks to ReplyHeader parsing. 2023-10-25 16:46:17 +03:00
levlam
bd923a36eb Check top_thread_message_id during object parsing. 2023-10-25 16:14:36 +03:00
levlam
27b9ad4526 Store MessageInputReplyTo in Message. 2023-10-25 13:07:25 +03:00
levlam
5216ea1d01 Use InputMessageReplyTo in draftMessage. 2023-10-25 02:07:37 +03:00
levlam
cfff600a44 Add MessageInputReplyTo::get_reply_message_full_id. 2023-10-24 19:03:10 +03:00
levlam
4425eadc3c Pass default DialogId to get_reply_message_full_id. 2023-10-24 18:54:32 +03:00
levlam
2d7b2b4545 Simplify RepliedMessageInfo field names. 2023-10-24 16:34:54 +03:00
levlam
82b9f21cec Make RepliedMessageInfo fields private. 2023-10-24 15:55:52 +03:00
levlam
d7a6e74bea Add "premium_gift_boost_count" option. 2023-10-24 15:34:22 +03:00
levlam
3e6ca71036 Don't store empty text in InputMessageText. 2023-10-24 15:09:22 +03:00
levlam
017d1a531d Add MessageInputReplyTo storer/parser. 2023-10-24 15:02:57 +03:00
levlam
a213820013 Add RepliedMessageInfo parser and storer. 2023-10-24 14:06:49 +03:00
levlam
cb70dd7831 Add class RepliedMessageInfo. 2023-10-24 12:04:45 +03:00
levlam
abca2962f2 Parse new MessageReplyHeader. 2023-10-23 20:54:47 +03:00
levlam
4027e73309 Support only_preview in sendInlineQueryResultMessage. 2023-10-23 18:58:53 +03:00
levlam
2c464baae1 Support only_preview in sendMessage. 2023-10-23 18:47:31 +03:00
levlam
faf964a10d Move only_preview to messageSendOptions. 2023-10-23 18:40:55 +03:00
levlam
d9d3d492ff Add messagePremiumGiftCode.is_unclaimed. 2023-10-23 17:37:54 +03:00
levlam
2bbb0ed0ec Add linkPreviewOptions.show_above_text. 2023-10-22 00:50:19 +03:00
levlam
cb51944cb7 Add webPage.show_above_text. 2023-10-21 21:33:46 +03:00
levlam
d32319cf75 Fix sign/unsigned comparison warnings. 2023-10-21 03:20:18 +03:00
levlam
6106b5fd4b Use explicit cast. 2023-10-21 03:19:01 +03:00
levlam
216b4833dd Return ChatBoostSlots from boostChat. 2023-10-21 01:41:05 +03:00
levlam
4f4537ba33 Add td_api::getAvailableChatBoostSlots. 2023-10-21 01:24:25 +03:00
levlam
de3aebd011 Allow to pass list of slots to boostChat. 2023-10-20 23:28:09 +03:00
levlam
00ac941e64 Add chatBoostStatus.gift_code_boost_count. 2023-10-20 23:18:16 +03:00