2
0
mirror of https://github.com/tdlib/telegram-bot-api synced 2025-08-22 18:08:31 +00:00

Fix Client::have_message_access.

This commit is contained in:
levlam 2025-03-11 08:37:15 +03:00
parent ddd1344b65
commit 27bbe0c71b

View File

@ -6932,6 +6932,9 @@ bool Client::is_chat_member(const object_ptr<td_api::ChatMemberStatus> &status)
}
bool Client::have_message_access(int64 chat_id) const {
if (chat_id > 0) {
return true; // for unknown private chats during paid broadcasts
}
auto chat_info = get_chat(chat_id);
CHECK(chat_info != nullptr);
switch (chat_info->type) {