From 4c51721dff3362dd0307d456b1b72e12d2698c2d Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 7 Apr 2025 21:58:17 +0300 Subject: [PATCH] Improve error messages. --- telegram-bot-api/Client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 83e42cc..8b23d65 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -7195,12 +7195,12 @@ void Client::check_chat_no_fail(td::Slice chat_id_str, PromisedQueryPtr query, O td::Result Client::get_business_connection_chat_id(td::Slice chat_id_str) { if (chat_id_str.empty()) { - return td::Status::Error(400, "Bad Request: chat_id is empty"); + return td::Status::Error(400, "Bad Request: chat identifier is empty"); } auto r_chat_id = td::to_integer_safe(chat_id_str); if (r_chat_id.is_error()) { - return td::Status::Error(400, "Bad Request: chat_id must be a valid Integer"); + return td::Status::Error(400, "Bad Request: chat identifier must be a valid Integer"); } return r_chat_id.move_as_ok(); }