diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 1cc0084..51d9dc4 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -3710,8 +3710,13 @@ class Client::JsonChatMember final : public td::Jsonable { } break; } - case td_api::chatMemberStatusMember::ID: + case td_api::chatMemberStatusMember::ID: { + auto member = static_cast(member_->status_.get()); + if (member->member_until_date_ > 0) { + object("until_date", member->member_until_date_); + } break; + } case td_api::chatMemberStatusRestricted::ID: if (chat_type_ == Client::ChatType::Supergroup) { auto restricted = static_cast(member_->status_.get());