mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-21 01:37:47 +01:00
added is_deleted
field in User
type
This commit is contained in:
parent
079328dba5
commit
0c5a139146
@ -317,6 +317,8 @@ class Client::JsonUser : public Jsonable {
|
|||||||
object("id", user_id_);
|
object("id", user_id_);
|
||||||
bool is_bot = user_info != nullptr && user_info->type == UserInfo::Type::Bot;
|
bool is_bot = user_info != nullptr && user_info->type == UserInfo::Type::Bot;
|
||||||
object("is_bot", td::JsonBool(is_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);
|
object("first_name", user_info == nullptr ? "" : user_info->first_name);
|
||||||
if (user_info != nullptr && !user_info->last_name.empty()) {
|
if (user_info != nullptr && !user_info->last_name.empty()) {
|
||||||
object("last_name", user_info->last_name);
|
object("last_name", user_info->last_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user