LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
Telegram::Message Class Reference

#include <Message.h>

Public Member Functions

 Message (void)
 
 Message (Json::Value)
 
 Message (std::string)
 
void setEntities (Json::Value)
 
std::vector< PhotoSize * > setPhotos (Json::Value)
 
Telegram::ChatgetChat ()
 
std::string getText ()
 
Telegram::TMessageEntities getEntities ()
 

Private Member Functions

void init (void)
 
void init (Json::Value)
 

Private Attributes

Json::UInt64 message_id
 
Userfrom
 
Json::Int64 date
 
Chatchat
 
Userforward_from
 
Json::Int64 forward_date
 
Messagereply_to_message
 
std::string text
 
Telegram::TMessageEntities entities
 
Audioaudio
 
Documentdocument
 
std::vector< PhotoSize * > photo
 
Stickersticker
 
Videovideo
 
Voicevoice
 
std::string caption
 
Contactcontact
 
Locationlocation
 
Venuevenue
 
Usernew_chat_member
 
Userleft_chat_member
 
std::string new_chat_title
 
std::vector< PhotoSize * > new_chat_photo
 
int delete_chat_photo
 
int group_chat_created
 
int supergroup_chat_created
 
Json::Int64 migrate_to_chat_id
 
Json::Int64 migrate_from_chat_id
 
Messagepinned_message
 

Detailed Description

Constructor & Destructor Documentation

Telegram::Message::Message ( void  )

Generic constructor

Definition at line 6 of file Message.cc.

Telegram::Message::Message ( Json::Value  json)

Definition at line 11 of file Message.cc.

Telegram::Message::Message ( std::string  message)

Definition at line 21 of file Message.cc.

Member Function Documentation

Telegram::Chat * Telegram::Message::getChat ( )

Definition at line 122 of file Message.cc.

Telegram::TMessageEntities Telegram::Message::getEntities ( )

Definition at line 132 of file Message.cc.

std::string Telegram::Message::getText ( )

Definition at line 127 of file Message.cc.

void Telegram::Message::init ( void  )
private

Definition at line 31 of file Message.cc.

void Telegram::Message::init ( Json::Value  json)
private

Definition at line 63 of file Message.cc.

void Telegram::Message::setEntities ( Json::Value  entities)

Definition at line 99 of file Message.cc.

std::vector< Telegram::PhotoSize * > Telegram::Message::setPhotos ( Json::Value  photos)

Definition at line 108 of file Message.cc.

Member Data Documentation

Audio* Telegram::Message::audio
private

Definition at line 51 of file Message.h.

std::string Telegram::Message::caption
private

Definition at line 57 of file Message.h.

Chat* Telegram::Message::chat
private

Definition at line 45 of file Message.h.

Contact* Telegram::Message::contact
private

Definition at line 58 of file Message.h.

Json::Int64 Telegram::Message::date
private

Definition at line 44 of file Message.h.

int Telegram::Message::delete_chat_photo
private

Definition at line 65 of file Message.h.

Document* Telegram::Message::document
private

Definition at line 52 of file Message.h.

Telegram::TMessageEntities Telegram::Message::entities
private

Definition at line 50 of file Message.h.

Json::Int64 Telegram::Message::forward_date
private

Definition at line 47 of file Message.h.

User* Telegram::Message::forward_from
private

Definition at line 46 of file Message.h.

User* Telegram::Message::from
private

Definition at line 43 of file Message.h.

int Telegram::Message::group_chat_created
private

Definition at line 66 of file Message.h.

User* Telegram::Message::left_chat_member
private

Definition at line 62 of file Message.h.

Location* Telegram::Message::location
private

Definition at line 59 of file Message.h.

Json::UInt64 Telegram::Message::message_id
private

Definition at line 42 of file Message.h.

Json::Int64 Telegram::Message::migrate_from_chat_id
private

Definition at line 69 of file Message.h.

Json::Int64 Telegram::Message::migrate_to_chat_id
private

Definition at line 68 of file Message.h.

User* Telegram::Message::new_chat_member
private

Definition at line 61 of file Message.h.

std::vector<PhotoSize*> Telegram::Message::new_chat_photo
private

Definition at line 64 of file Message.h.

std::string Telegram::Message::new_chat_title
private

Definition at line 63 of file Message.h.

std::vector<PhotoSize*> Telegram::Message::photo
private

Definition at line 53 of file Message.h.

Message* Telegram::Message::pinned_message
private

Definition at line 70 of file Message.h.

Message* Telegram::Message::reply_to_message
private

Definition at line 48 of file Message.h.

Sticker* Telegram::Message::sticker
private

Definition at line 54 of file Message.h.

int Telegram::Message::supergroup_chat_created
private

Definition at line 67 of file Message.h.

std::string Telegram::Message::text
private

Definition at line 49 of file Message.h.

Venue* Telegram::Message::venue
private

Definition at line 60 of file Message.h.

Video* Telegram::Message::video
private

Definition at line 55 of file Message.h.

Voice* Telegram::Message::voice
private

Definition at line 56 of file Message.h.


The documentation for this class was generated from the following files: