From 55ee7aed4acd659dc4c16e2670ec0f8839a35ccf Mon Sep 17 00:00:00 2001 From: Giuseppe Marino Date: Tue, 24 Nov 2020 09:22:16 +0100 Subject: [PATCH] Skip check only if not supergroup --- 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 e32e125..5173bd4 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -3652,7 +3652,7 @@ bool Client::have_message_access(int64 chat_id) const { case ChatInfo::Type::Supergroup: { auto supergroup_info = get_supergroup_info(chat_info->supergroup_id); CHECK(supergroup_info != nullptr); - return true; + return !supergroup_info->is_supergroup || is_chat_member(supergroup_info->status); // return is_chat_member(supergroup_info->status); } case ChatInfo::Type::Unknown: