From 0c5a13914639b4dd6ba7b5896ec86b03cb2bf445 Mon Sep 17 00:00:00 2001 From: Giuseppe Marino Date: Wed, 11 Nov 2020 01:23:02 +0100 Subject: [PATCH] added `is_deleted` field in `User` type --- telegram-bot-api/Client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 028003e..02f6a3c 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -317,6 +317,8 @@ class Client::JsonUser : public Jsonable { object("id", user_id_); bool is_bot = user_info != nullptr && user_info->type == UserInfo::Type::Bot; object("is_bot", td::JsonBool(is_bot)); + bool is_deleted = user_info != nullptr && user_info->type == UserInfo::Type::Deleted; + object("is_deleted", td::JsonBool(is_deleted)); object("first_name", user_info == nullptr ? "" : user_info->first_name); if (user_info != nullptr && !user_info->last_name.empty()) { object("last_name", user_info->last_name);