Don't invoke quick reply queries simultaneously.

This commit is contained in:
levlam 2024-02-24 13:42:34 +03:00
parent 2c8c883fbf
commit bf825d76cb

View File

@ -38,7 +38,7 @@ class GetQuickRepliesQuery final : public Td::ResultHandler {
}
void send(int64 hash) {
send_query(G()->net_query_creator().create(telegram_api::messages_getQuickReplies(hash)));
send_query(G()->net_query_creator().create(telegram_api::messages_getQuickReplies(hash), {{"me"}}));
}
void on_result(BufferSlice packet) final {
@ -65,7 +65,8 @@ class DeleteQuickReplyShortcutQuery final : public Td::ResultHandler {
}
void send(QuickReplyShortcutId shortcut_id) {
send_query(G()->net_query_creator().create(telegram_api::messages_deleteQuickReplyShortcut(shortcut_id.get())));
send_query(
G()->net_query_creator().create(telegram_api::messages_deleteQuickReplyShortcut(shortcut_id.get()), {{"me"}}));
}
void on_result(BufferSlice packet) final {