From 444d47d4409645e697cdc880cc8b7dde1b5fd441 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 17 Mar 2024 00:22:15 +0300 Subject: [PATCH] tg_cli: get business connection when try to send a message to it. --- td/telegram/cli.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index e37b128b4..6a2c2db88 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -1511,6 +1511,7 @@ class CliClient final : public Actor { if (!message->is_outgoing_ && use_test_dc_) { auto old_business_connection_id = std::move(business_connection_id_); business_connection_id_ = update->connection_id_; + on_cmd("gbc"); send_message(message->chat_id_, td_api::make_object(as_formatted_text("Welcome!"), get_link_preview_options(), true),