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