diff --git a/td b/td index 91f8bb4..c582ab0 160000 --- a/td +++ b/td @@ -1 +1 @@ -Subproject commit 91f8bb48ac9507439993919461ed470b6268e051 +Subproject commit c582ab0bbfaa9ed2566de501f7e03b65a4c3613c diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 48a469b..97c590c 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -458,7 +458,8 @@ class Client::JsonVectorEntities : public Jsonable { void store(JsonValueScope *scope) const { auto array = scope->enter_array(); for (auto &entity : entities_) { - if (entity->type_->get_id() != td_api::textEntityTypeBankCardNumber::ID) { + auto entity_type = entity->type_->get_id(); + if (entity_type != td_api::textEntityTypeBankCardNumber::ID && entity_type != td_api::textEntityTypeMediaTimestamp::ID) { array << JsonEntity(entity.get(), client_); } } @@ -1838,6 +1839,8 @@ void Client::JsonMessage::store(JsonValueScope *scope) const { break; case td_api::messageCustomServiceAction::ID: break; + case td_api::messageChatSetTheme::ID: + break; case td_api::messageWebsiteConnected::ID: { auto chat = client_->get_chat(message_->chat_id); if (chat->type != ChatInfo::Type::Private) { @@ -4401,7 +4404,7 @@ void Client::on_update(object_ptr result) { add_update_chat_member(move_object_as(result)); break; default: - // we are not interested in this updates + // we are not interested in this update break; } } @@ -8920,6 +8923,8 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr