Skip to content

Commit

Permalink
Add custom deleteMessages implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
cavallium committed Feb 11, 2024
1 parent dd075ae commit 0bc23e3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions telegram-bot-api/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10592,10 +10592,7 @@ td::Status Client::process_delete_message_query(PromisedQueryPtr &query) {
}

td::Status Client::process_delete_messages_query(PromisedQueryPtr &query) {
auto is_range_delete_query = query->arg("start").empty() && query->arg("end").empty();
if (is_range_delete_query) {
return process_delete_messages_range_query(query);
}
if (!query->arg("start").empty() || !query->arg("end").empty()) return process_delete_messages_range_query(query);
auto chat_id = query->arg("chat_id");
TRY_RESULT(message_ids, get_message_ids(query.get(), 100));
if (message_ids.empty()) {
Expand Down

0 comments on commit 0bc23e3

Please sign in to comment.