LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
Chat.cc
Go to the documentation of this file.
1 #include "Telegram/Chat.h"
2 
3 Telegram::Chat::Chat(Json::Value json) {
4 
5  this->id = json["id"].asUInt64();
6  this->type = json["type"].asString();
7  this->title = json["title"].asString();
8  this->username = json["username"].asString();
9  this->first_name = json["first_name"].asString();
10  this->last_name = json["last_name"].asString();
11 }
12 
13 Json::Int64 Telegram::Chat::getId() {
14 
15  return(this->id);
16 }
17 
19 
20  return(this->username);
21 }
Chat(Json::Value)
Definition: Chat.cc:3
std::string last_name
Definition: Chat.h:22
std::string first_name
Definition: Chat.h:21
std::string getUsername()
Definition: Chat.cc:18
std::string title
Definition: Chat.h:19
std::string username
Definition: Chat.h:20
std::string type
Definition: Chat.h:18
Json::Int64 getId()
Definition: Chat.cc:13