LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
User.cc
Go to the documentation of this file.
1 #include "Telegram/User.h"
2 
3 Telegram::User::User(Json::Value json) {
4 
5  this->id = json["id"].asUInt64();
6  this->first_name = json["first_name"].asString();
7  this->last_name = json["last_name"].asString();
8  this->username = json["username"].asString();
9 }
User(Json::Value)
Definition: User.cc:3
std::string first_name
Definition: User.h:15
std::string username
Definition: User.h:17
std::string last_name
Definition: User.h:16