yatbcpp
0.0.1
Yet another Telegram Bot CPP Library
|
#include "telegram_methodJSON.h"
Public Member Functions | |
telegram_methodJSON (std::string functionname) | |
virtual Json::Value | toJson () |
const std::string & | getFunctionname () const |
Static Public Member Functions | |
static size_t | WriteCallback (void *contents, size_t size, size_t nmemb, void *stringptr) |
static RETURNTYPE | perform_requestJSON (Token T, telegram_methodJSON< RETURNTYPE > &method_body) |
Protected Attributes | |
std::string | functionname |
Required for Methods which can be serialized to a json request, for file uploading use multipart, file types are then considered files to be uploaded
RETURNTYPE |
Definition at line 19 of file telegram_methodJSON.h.
|
inline |
Definition at line 22 of file telegram_methodJSON.h.
|
inline |
|
inlinestatic |
Definition at line 35 of file telegram_methodJSON.h.
|
inlinevirtual |
Method Required for derived classes so they can be made into json object
Reimplemented in yatbcpp::sendLocation, yatbcpp::sendAudio, yatbcpp::sendDocument, yatbcpp::sendPhoto, yatbcpp::sendVideo, yatbcpp::sendVoice, yatbcpp::forwardMessage, yatbcpp::sendMessage, and yatbcpp::getMe.
Definition at line 74 of file telegram_methodJSON.h.
|
inlinestatic |
Definition at line 27 of file telegram_methodJSON.h.
|
protected |
Definition at line 85 of file telegram_methodJSON.h.