From cc83909b80b1bbc8eec8073fb4457c389ceefbe5 Mon Sep 17 00:00:00 2001 From: AYMENJD <53928879+AYMENJD@users.noreply.github.com> Date: Thu, 5 Dec 2024 22:29:46 +0300 Subject: [PATCH] Fix warning. --- telegram-bot-api/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 30dafea..be10b7a 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -6666,7 +6666,7 @@ void Client::check_business_connection_chat_id(const td::string &business_connec } auto chat_id = r_chat_id.move_as_ok(); check_business_connection(business_connection_id, std::move(query), - [this, chat_id, on_success = std::move(on_success)]( + [chat_id, on_success = std::move(on_success)]( const BusinessConnection *business_connection, PromisedQueryPtr query) mutable { on_success(business_connection, chat_id, std::move(query)); });