Commit Graph

96 Commits

Author SHA1 Message Date
levlam
5becaaa838 Support quick reply file upload. 2024-04-17 21:29:58 +03:00
levlam
33f5552a18 Implement QuickReplyManager::on_failed_send_quick_reply_messages. 2024-04-17 19:29:50 +03:00
levlam
6a2c579bb1 Disallow live locations in quick replies. 2024-04-17 19:08:42 +03:00
levlam
8e99a8dba1 Add td_api::addQuickReplyShortcutMessage and support adding of quick replies without media. 2024-04-17 18:39:25 +03:00
levlam
8e4a241c7f Don't send empty DeleteQuickReplyMessagesQuery. 2024-04-17 14:31:36 +03:00
levlam
05866446dc Add QuickReplyManager::add_local_message. 2024-04-16 00:53:48 +03:00
levlam
f3d655f1ac Create local qucik reply shortcut if it doesn't exist yet. 2024-04-15 23:36:27 +03:00
levlam
d8a50a3ef0 Add QuickReplyManager::process_input_message_content. 2024-04-15 23:12:22 +03:00
levlam
5d984efdd3 Add QuickReplyManager::get_input_reply_to_message_id. 2024-04-15 22:55:26 +03:00
levlam
a7dca7a744 Add QuickReplyManager::check_new_shortcut_name function. 2024-04-15 22:41:36 +03:00
levlam
90d4e3a6d3 Improve sending of quick reply voice messages to users that forbidden that. 2024-04-15 20:36:23 +03:00
levlam
14b4666423 Use DialogManager::check_dialog_access when appropriate. 2024-04-15 02:32:04 +03:00
levlam
c0ed8f09b0 Add explicit allow_secret_chats to have_input_peer. 2024-04-14 22:59:05 +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
b28e1d2fd8 Support via_bot_user_id in sendQuickReplyShortcutMessages. 2024-03-18 22:38:30 +03:00
levlam
bce17cb5d8 Update layer to 177. 2024-03-07 15:24:28 +03:00
levlam
046ed45152 Various fixes. 2024-03-07 14:09:31 +03:00
levlam
6e44c27db0 Improve includes. 2024-03-07 13:56:57 +03:00
levlam
d08ad22a2b Use explicit cast. 2024-03-07 12:03:22 +03:00
levlam
a1bcec491d Fix QuickReplyManager::get_shortcut_it. 2024-03-06 17:05:30 +03:00
levlam
2d43bdf03c Fix query promise. 2024-03-06 16:52:54 +03:00
levlam
bc1a8d2bc2 Add quickReplyMessage.reply_markup. 2024-03-06 15:56:50 +03:00
levlam
ef636ea07c Improve QuickReplyManager::update_shortcut_from. 2024-03-05 18:12:05 +03:00
levlam
b69eaf8669 Send update about quick reply messages only after shortcut updates. 2024-03-05 18:04:40 +03:00
levlam
85f8f5ec87 Improve QuickReplyManager::get_current_state. 2024-03-05 18:02:11 +03:00
levlam
a9ab6b739c Disable QuickReplyManager for bots. 2024-03-05 17:58:40 +03:00
levlam
2e0d52f618 Ignore service and live location messages in quick replies. 2024-03-05 16:41:10 +03:00
levlam
e91b946015 Remove get_shortcut_it(const string &name). 2024-03-05 16:40:17 +03:00
levlam
eaba45ebcb Load quick replies from database in more places. 2024-03-05 16:25:39 +03:00
levlam
401318d812 Reget messages with unsupported or legacy content. 2024-03-05 15:49:42 +03:00
levlam
dd06d5ccb2 Combine get_quick_reply_shortcuts and load_quick_reply_shortcuts. 2024-03-05 15:38:56 +03:00
levlam
3d397c1d35 Add load_quick_reply_shortcuts. 2024-03-05 15:30:57 +03:00
levlam
f1c3bb5c33 Fix sending update about changed shortcut. 2024-03-05 14:41:35 +03:00
levlam
c4d92b3f00 Ignore edit_hide for quick replies. 2024-03-05 14:25:09 +03:00
levlam
8dcf5c4bca Fix quick reply count updating. 2024-03-05 14:17:18 +03:00
levlam
f0b745b291 Save only server and local quick reply messages. 2024-03-05 13:42:21 +03:00
levlam
5a0a3f2c14 Add chat type check in get_quick_reply_message_contents. 2024-03-04 22:33:25 +03:00
levlam
f11ad19a4f Ignore saved_peer_id in quick reply messages. 2024-03-04 22:30:24 +03:00
levlam
464973839e Add QuickReplyManager::get_quick_reply_message_contents. 2024-03-04 20:06:32 +03:00
levlam
3103a6d82c Remove QuickReplyMessage.noforwards. 2024-03-04 18:53:51 +03:00
levlam
fbc738c8df Improve updates after quick reply message deletion. 2024-03-04 15:11:36 +03:00
levlam
f03bdc7e50 Add td_api::setQuickReplyShortcutName. 2024-03-04 15:00:00 +03:00
levlam
74c5ba7087 Add td_api::checkQuickReplyShortcutName. 2024-03-04 14:34:47 +03:00
levlam
00e9793f09 Improve reload_quick_reply_messages. 2024-03-01 13:39:26 +03:00
levlam
8a5f4afa91 Add source to delete_quick_reply_messages. 2024-02-29 21:59:53 +03:00
levlam
de6f15c973 Add td_api::deleteQuickReplyShortcutMessages. 2024-02-29 21:34:45 +03:00
levlam
3d60b43196 Register quick reply message files. 2024-02-29 21:05:56 +03:00
levlam
3022da6b83 Add and use QuickReplyManager::update_quick_reply_message. 2024-02-29 20:58:30 +03:00
levlam
fd5a6389ec Delete files from deleted quick reply messages. 2024-02-29 19:01:40 +03:00