yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Classes | Enumerations | Functions
yatbcpp Namespace Reference

Classes

class  answerInlineQuery
 
class  Audio
 
class  Bot
 
class  Chat
 
class  ChatMember
 
class  ChatPhoto
 
class  Contact
 
class  curl_error
 
class  Document
 
class  essential_key_missing
 
class  File
 
class  file_not_found
 
class  ForceReply
 
class  forwardMessage
 
class  getMe
 
class  InlineQuery
 
class  InlineQueryResult
 
class  InlineQueryResultCachedAudio
 
class  InlineQueryResultCachedVoice
 
class  KeyboardButton
 
class  Location
 
class  Message
 
class  MessageEntity
 
class  PhotoSize
 
class  ReplyKeyboardMarkup
 
class  ReplyKeyboardRemove
 
class  ReplyMarkup
 
class  sendAudio
 
class  sendDocument
 
class  sendLocation
 
class  sendMessage
 
class  sendPhoto
 
class  sendVideo
 
class  sendVoice
 
class  telegram_api_error
 
class  telegram_methodJSON
 
class  telegram_methodMultipart
 
class  telegram_simplemethodJSON
 
class  Token
 
class  Update
 
class  User
 
class  UserProfilePhotos
 
class  Venue
 
class  Video
 
class  VideoNote
 
class  Voice
 

Enumerations

enum  chat_type { chat_type::Private, chat_type::Group, chat_type::Supergroup, chat_type::Channel }
 
enum  chatmember_status {
  chatmember_status::creator, chatmember_status::administrator, chatmember_status::member, chatmember_status::restricted,
  chatmember_status::left, chatmember_status::kicked
}
 

Functions

template<typename T >
Json::Value toJson (T Obj)
 
template<typename T >
fromJson (Json::Value Data)
 
template<typename T >
fromString (std::string Data)
 
std::ostream & operator<< (std::ostream &o, const curl_error &curlError)
 
std::ostream & operator<< (std::ostream &o, const curl_error *curlError)
 
std::ostream & operator<< (std::ostream &o, const essential_key_missing &essentialKeyMissing)
 
std::ostream & operator<< (std::ostream &o, const essential_key_missing *essentialKeyMissing)
 
std::ostream & operator<< (std::ostream &o, const file_not_found &fileNotFound)
 
std::ostream & operator<< (std::ostream &o, const file_not_found *fileNotFound)
 
std::ostream & operator<< (std::ostream &o, const telegram_api_error &telegramApiError)
 
std::ostream & operator<< (std::ostream &o, const telegram_api_error *telegramApiError)
 
std::ostream & operator<< (std::ostream &o, const yatbcpp::User &U)
 
template<>
Audio fromJson (Json::Value Data)
 
template<>
Chat fromJson (Json::Value Data)
 
template<>
ChatMember fromJson (Json::Value Data)
 
template<>
ChatPhoto fromJson (Json::Value Data)
 
template<>
Contact fromJson (Json::Value Data)
 
template<>
Document fromJson (Json::Value Data)
 
template<>
File fromJson (Json::Value Data)
 
template<>
InlineQuery fromJson (Json::Value Data)
 
template<>
KeyboardButton fromJson (Json::Value Data)
 
template<>
Location fromJson (Json::Value Data)
 
template<>
Message fromJson (Json::Value Data)
 
template<>
MessageEntity fromJson (Json::Value Data)
 
template<>
PhotoSize fromJson (Json::Value Data)
 
template<>
ReplyKeyboardMarkup fromJson (Json::Value Data)
 
template<>
Update fromJson (Json::Value Data)
 
template<>
User fromJson< User > (Json::Value Data)
 
template<>
UserProfilePhotos fromJson (Json::Value Data)
 
template<>
Venue fromJson (Json::Value Data)
 
template<>
Video fromJson (Json::Value Data)
 
template<>
VideoNote fromJson (Json::Value Data)
 
template<>
Voice fromJson (Json::Value Data)
 
template<>
chat_type fromString (string Data)
 
template<>
chatmember_status fromString (string Data)
 

Enumeration Type Documentation

◆ chat_type

enum yatbcpp::chat_type
strong
Enumerator
Private 
Group 
Supergroup 
Channel 

Definition at line 6 of file chat_type.h.

◆ chatmember_status

Enumerator
creator 
administrator 
member 
restricted 
left 
kicked 

Definition at line 6 of file chatmember_status.h.

Function Documentation

◆ fromJson() [1/21]

template<typename T >
T yatbcpp::fromJson ( Json::Value  Data)

Returns A Audio based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Audio

Returns A Chat based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Chat

Returns A ChatMember based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed ChatMember

Returns A ChatPhoto based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed ChatPhoto

Returns A Contact based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Contact

Returns A Document based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Document

Returns A File based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
File Voice

Returns An InlineQuery based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed InlineQuery

Returns A KeyboardButton based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
KeyboardButton

Returns A Location based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Location Voice

Returns A Message based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Message

Returns A MessageEntity based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed MessageEntity

Returns A PhotoSize based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed PhotoSize

Returns An Update based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Update

Returns A Video based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Video

Returns A VideoNote based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed VideoNote

Returns A Voice based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Voice

Definition at line 15 of file Audio_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [2/21]

template<>
Location yatbcpp::fromJson ( Json::Value  Data)

Returns A Location based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Location Voice

Definition at line 15 of file Location_fromJson.cc.

◆ fromJson() [3/21]

template<>
Audio yatbcpp::fromJson ( Json::Value  Data)

Returns A Audio based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Audio

Definition at line 15 of file Audio_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [4/21]

template<>
InlineQuery yatbcpp::fromJson ( Json::Value  Data)

Returns An InlineQuery based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed InlineQuery

Definition at line 16 of file InlineQuery_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [5/21]

template<>
Chat yatbcpp::fromJson ( Json::Value  Data)

Returns A Chat based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Chat

Definition at line 16 of file Chat_fromJson.cc.

◆ fromJson() [6/21]

template<>
Video yatbcpp::fromJson ( Json::Value  Data)

Returns A Video based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Video

Definition at line 17 of file Video_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [7/21]

template<>
Document yatbcpp::fromJson ( Json::Value  Data)

Returns A Document based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Document

Definition at line 17 of file Document_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [8/21]

template<>
VideoNote yatbcpp::fromJson ( Json::Value  Data)

Returns A VideoNote based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed VideoNote

Definition at line 17 of file VideoNote_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [9/21]

template<>
Voice yatbcpp::fromJson ( Json::Value  Data)

Returns A Voice based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Voice

Definition at line 17 of file Voice_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [10/21]

template<>
Update yatbcpp::fromJson ( Json::Value  Data)

Returns An Update based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Update

Definition at line 17 of file Update_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [11/21]

template<>
File yatbcpp::fromJson ( Json::Value  Data)

Returns A File based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
File Voice

Definition at line 17 of file File_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [12/21]

template<>
ChatPhoto yatbcpp::fromJson ( Json::Value  Data)

Returns A ChatPhoto based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed ChatPhoto

Definition at line 17 of file ChatPhoto_fromJson.cc.

◆ fromJson() [13/21]

template<>
Message yatbcpp::fromJson ( Json::Value  Data)

Returns A Message based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed Message

Definition at line 17 of file Message_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [14/21]

template<>
MessageEntity yatbcpp::fromJson ( Json::Value  Data)

Returns A MessageEntity based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed MessageEntity

Definition at line 17 of file MessageEntity_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [15/21]

template<>
PhotoSize yatbcpp::fromJson ( Json::Value  Data)

Returns A PhotoSize based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed PhotoSize

Definition at line 17 of file PhotoSize_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [16/21]

template<>
ReplyKeyboardMarkup yatbcpp::fromJson ( Json::Value  Data)

Returns A KeyboardButton based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
KeyboardButton

Definition at line 17 of file ReplyKeyboardMarkup_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [17/21]

template<>
ChatMember yatbcpp::fromJson ( Json::Value  Data)

Returns A ChatMember based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed ChatMember

Definition at line 17 of file ChatMember_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [18/21]

template<>
Venue yatbcpp::fromJson ( Json::Value  Data)

Returns A Location based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Location Voice

Definition at line 17 of file Venue_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [19/21]

template<>
Contact yatbcpp::fromJson ( Json::Value  Data)

Returns A Contact based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Contact

Definition at line 18 of file Contact_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [20/21]

template<>
KeyboardButton yatbcpp::fromJson ( Json::Value  Data)

Returns A KeyboardButton based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
KeyboardButton

Definition at line 18 of file KeyboardButton_fromJson.cc.

Here is the call graph for this function:

◆ fromJson() [21/21]

template<>
UserProfilePhotos yatbcpp::fromJson ( Json::Value  Data)

Returns A File based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
File Voice

Definition at line 18 of file UserProfilePhotos_fromJson.cc.

◆ fromJson< User >()

template<>
User yatbcpp::fromJson< User > ( Json::Value  Data)

Returns A User based on a Json Object

Parameters
Dataa Json Object Containing the necessary and Optional Fields
Returns
Parsed User

Definition at line 17 of file User_fromJson.cc.

Here is the call graph for this function:

◆ fromString() [1/3]

template<typename T >
T yatbcpp::fromString ( std::string  Data)

◆ fromString() [2/3]

template<>
chat_type yatbcpp::fromString ( string  Data)

Returns A chat_type based on a STL string

Parameters
Dataa String Containing the nescesary data
Returns
Parsed chat_type

Definition at line 17 of file chat_type.cc.

◆ fromString() [3/3]

template<>
chatmember_status yatbcpp::fromString ( string  Data)

Returns A chatmember_status based on a STL string

Parameters
Dataa String Containing the nescesary data
Returns
Parsed chatmember_status

Definition at line 17 of file chatmember_status.cc.

◆ operator<<() [1/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const file_not_found fileNotFound 
)

Definition at line 9 of file exception_file_not_found_ostream.cc.

◆ operator<<() [2/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const yatbcpp::User U 
)

Definition at line 9 of file User_ostream.cc.

Here is the call graph for this function:

◆ operator<<() [3/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const telegram_api_error telegramApiError 
)

Definition at line 9 of file telegram_api_error_ostream.cc.

◆ operator<<() [4/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const curl_error curlError 
)

Definition at line 9 of file curl_error_ostream.cc.

◆ operator<<() [5/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const essential_key_missing essentialKeyMissing 
)

Definition at line 9 of file exception_essential_key_missing_ostream.cc.

◆ operator<<() [6/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const telegram_api_error telegramApiError 
)

Definition at line 13 of file telegram_api_error_ostream.cc.

◆ operator<<() [7/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const curl_error curlError 
)

Definition at line 13 of file curl_error_ostream.cc.

◆ operator<<() [8/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const file_not_found fileNotFound 
)

Definition at line 13 of file exception_file_not_found_ostream.cc.

◆ operator<<() [9/9]

std::ostream& yatbcpp::operator<< ( std::ostream &  o,
const essential_key_missing essentialKeyMissing 
)

Definition at line 13 of file exception_essential_key_missing_ostream.cc.

◆ toJson()

template<typename T >
Json::Value yatbcpp::toJson ( Obj)