From f15fa69d3b543096dcd7e4072b565e7e207edc6e Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 13 Apr 2019 21:59:29 +0300 Subject: [PATCH] Describe, why switch_inline_query buttons can't be used in channel chats. GitOrigin-RevId: c30c892637a077891fc819d67b9dcfe635b7ccbf --- td/telegram/ReplyMarkup.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/td/telegram/ReplyMarkup.cpp b/td/telegram/ReplyMarkup.cpp index 5336f397..65ed10e4 100644 --- a/td/telegram/ReplyMarkup.cpp +++ b/td/telegram/ReplyMarkup.cpp @@ -382,7 +382,9 @@ static Result get_inline_keyboard_button(tl_object_ptrin_current_chat_ ? "switch_inline_query_current_chat" : "switch_inline_query"; - return Status::Error(400, PSLICE() << "Can't use " << button_name << " in a channel chat"); + return Status::Error(400, PSLICE() << "Can't use " << button_name + << " in a channel chat, because a user will not be able to use the button " + "without knowing bot's username"); } current_button.type = switch_inline_button->in_current_chat_