Add Message.write_access_allowed.

This commit is contained in:
levlam 2022-12-29 18:06:35 +03:00
parent d19413f8e6
commit 9b47c90de9

View File

@ -2183,6 +2183,7 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
case td_api::messageSuggestProfilePhoto::ID: case td_api::messageSuggestProfilePhoto::ID:
break; break;
case td_api::messageBotWriteAccessAllowed::ID: case td_api::messageBotWriteAccessAllowed::ID:
object("write_access_allowed", JsonEmptyObject());
break; break;
default: default:
UNREACHABLE(); UNREACHABLE();
@ -10376,8 +10377,6 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
return true; return true;
case td_api::messageSuggestProfilePhoto::ID: case td_api::messageSuggestProfilePhoto::ID:
return true; return true;
case td_api::messageBotWriteAccessAllowed::ID:
return true;
default: default:
break; break;
} }