yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | List of all members
yatbcpp::sendVideo Class Reference

#include "sendVideo.h"

Inheritance diagram for yatbcpp::sendVideo:
Inheritance graph
[legend]
Collaboration diagram for yatbcpp::sendVideo:
Collaboration graph
[legend]

Public Member Functions

void add_to_post (struct curl_httppost **start, struct curl_httppost **end)
 
Json::Value toJson ()
 
 sendVideo (std::int64_t chat_id, std::string video)
 
 sendVideo (std::string chat_id, std::string video)
 
 sendVideo (Chat C, std::string video)
 
void setCaption (const std::optional< std::string > &caption)
 
void setDuration (const std::optional< unsigned int > &duration)
 
void setWidth (const std::optional< unsigned int > &width)
 
void setHeight (const std::optional< unsigned int > &height)
 
void setDisable_notification (const std::optional< bool > &disable_notification)
 
void setReply_to_message_id (const std::optional< int > &reply_to_message_id)
 
void setReplyMarkup (const ReplyKeyboardMarkup RKM)
 
void setReplyMarkup (const ReplyKeyboardRemove RKR)
 
void setReplyMarkup (const ForceReply FR)
 
const std::string & getChat_id () const
 
const std::string & getVideo () const
 
const std::optional< std::string > & getCaption () const
 
const std::optional< unsigned int > & getDuration () const
 
const std::optional< unsigned int > & getWidth () const
 
const std::optional< unsigned int > & getHeight () const
 
const std::optional< bool > & getDisable_notification () const
 
const std::optional< std::int32_t > & getReply_to_message_id () const
 
const std::optional< ReplyMarkup > & getReply_markup () const
 
const std::string & getFunctionname () const
 
const std::string & getFunctionname () const
 

Static Public Member Functions

static size_t WriteCallback (void *contents, size_t size, size_t nmemb, void *stringptr)
 
static Message perform_requestJSON (Token T, telegram_methodJSON< Message > &method_body)
 
static size_t WriteCallback (void *contents, size_t size, size_t nmemb, void *stringptr)
 
static Message perform_requestMultipart (Token T, telegram_methodMultipart< Message > &method_body)
 

Protected Attributes

std::string functionname
 
std::string functionname
 

Private Attributes

std::string chat_id
 
std::string video
 
std::optional< std::string > caption
 
std::optional< unsigned int > duration
 
std::optional< unsigned int > width
 
std::optional< unsigned int > height
 
std::optional< bool > disable_notification
 
std::optional< std::int32_t > reply_to_message_id
 
std::optional< ReplyMarkupreply_markup
 

Detailed Description

Definition at line 18 of file sendVideo.h.

Constructor & Destructor Documentation

◆ sendVideo() [1/3]

yatbcpp::sendVideo::sendVideo ( std::int64_t  chat_id,
std::string  video 
)
Parameters
chat_id
video,andVideo file id or an Video file location to send local files use methodMultipart

◆ sendVideo() [2/3]

yatbcpp::sendVideo::sendVideo ( std::string  chat_id,
std::string  video 
)
Parameters
chat_id
video,andVideo file id or an Video file location to send local files use methodMultipart

◆ sendVideo() [3/3]

yatbcpp::sendVideo::sendVideo ( Chat  C,
std::string  video 
)
Parameters
C
video,andVideo file id or an Video file location to send local files use methodMultipart

Member Function Documentation

◆ add_to_post()

void sendVideo::add_to_post ( struct curl_httppost **  start,
struct curl_httppost **  end 
)
virtual

Method Required for derived classes so they can be made into Multipart object The Post Parts have to be added in it , upon end of request it is deleted in perform_requestMultipart

Returns

Reimplemented from yatbcpp::telegram_methodMultipart< Message >.

Definition at line 67 of file sendVideo.cc.

◆ getCaption()

const optional< string > & sendVideo::getCaption ( ) const

Definition at line 149 of file sendVideo.cc.

◆ getChat_id()

const string & sendVideo::getChat_id ( ) const

Definition at line 141 of file sendVideo.cc.

◆ getDisable_notification()

const optional< bool > & sendVideo::getDisable_notification ( ) const

Definition at line 165 of file sendVideo.cc.

◆ getDuration()

const optional< unsigned int > & sendVideo::getDuration ( ) const

Definition at line 153 of file sendVideo.cc.

◆ getFunctionname() [1/2]

const std::string& yatbcpp::telegram_methodJSON< Message >::getFunctionname ( ) const
inlineinherited

returns the Functionname

Returns

Definition at line 80 of file telegram_methodJSON.h.

◆ getFunctionname() [2/2]

const std::string& yatbcpp::telegram_methodMultipart< Message >::getFunctionname ( ) const
inlineinherited

returns the Functionname

Returns

Definition at line 83 of file telegram_methodMultipart.h.

◆ getHeight()

const optional< unsigned int > & sendVideo::getHeight ( ) const

Definition at line 161 of file sendVideo.cc.

◆ getReply_markup()

const optional< ReplyMarkup > & sendVideo::getReply_markup ( ) const

Definition at line 173 of file sendVideo.cc.

◆ getReply_to_message_id()

const optional< int32_t > & sendVideo::getReply_to_message_id ( ) const

Definition at line 169 of file sendVideo.cc.

◆ getVideo()

const string & sendVideo::getVideo ( ) const

Definition at line 145 of file sendVideo.cc.

◆ getWidth()

const optional< unsigned int > & sendVideo::getWidth ( ) const

Definition at line 157 of file sendVideo.cc.

◆ perform_requestJSON()

static Message yatbcpp::telegram_methodJSON< Message >::perform_requestJSON ( Token  T,
telegram_methodJSON< Message > &  method_body 
)
inlinestaticinherited

Definition at line 35 of file telegram_methodJSON.h.

◆ perform_requestMultipart()

static Message yatbcpp::telegram_methodMultipart< Message >::perform_requestMultipart ( Token  T,
telegram_methodMultipart< Message > &  method_body 
)
inlinestaticinherited

Definition at line 30 of file telegram_methodMultipart.h.

◆ setCaption()

void sendVideo::setCaption ( const std::optional< std::string > &  caption)

Definition at line 88 of file sendVideo.cc.

◆ setDisable_notification()

void sendVideo::setDisable_notification ( const std::optional< bool > &  disable_notification)

Definition at line 105 of file sendVideo.cc.

◆ setDuration()

void sendVideo::setDuration ( const std::optional< unsigned int > &  duration)

Definition at line 93 of file sendVideo.cc.

◆ setHeight()

void sendVideo::setHeight ( const std::optional< unsigned int > &  height)

Definition at line 101 of file sendVideo.cc.

◆ setReply_to_message_id()

void sendVideo::setReply_to_message_id ( const std::optional< int > &  reply_to_message_id)

Definition at line 109 of file sendVideo.cc.

◆ setReplyMarkup() [1/3]

void sendVideo::setReplyMarkup ( const ReplyKeyboardMarkup  RKM)

Sets an ReplyKeyboardMarkup

Parameters
RKM

Definition at line 117 of file sendVideo.cc.

◆ setReplyMarkup() [2/3]

void sendVideo::setReplyMarkup ( const ReplyKeyboardRemove  RKR)

Sets an ReplyKeyboardRemove

Parameters
RKR

Definition at line 125 of file sendVideo.cc.

◆ setReplyMarkup() [3/3]

void sendVideo::setReplyMarkup ( const ForceReply  FR)

Sets an ForceReply

Parameters
FR

Definition at line 133 of file sendVideo.cc.

◆ setWidth()

void sendVideo::setWidth ( const std::optional< unsigned int > &  width)

Definition at line 97 of file sendVideo.cc.

◆ toJson()

Json::Value sendVideo::toJson ( )
virtual

Method Required for derived classes so they can be made into json object

Returns

Reimplemented from yatbcpp::telegram_methodJSON< Message >.

Definition at line 39 of file sendVideo.cc.

Here is the call graph for this function:

◆ WriteCallback() [1/2]

static size_t yatbcpp::telegram_methodMultipart< Message >::WriteCallback ( void *  contents,
size_t  size,
size_t  nmemb,
void *  stringptr 
)
inlinestaticinherited

Definition at line 22 of file telegram_methodMultipart.h.

◆ WriteCallback() [2/2]

static size_t yatbcpp::telegram_methodJSON< Message >::WriteCallback ( void *  contents,
size_t  size,
size_t  nmemb,
void *  stringptr 
)
inlinestaticinherited

Definition at line 27 of file telegram_methodJSON.h.

Member Data Documentation

◆ caption

std::optional<std::string> yatbcpp::sendVideo::caption
private

Definition at line 86 of file sendVideo.h.

◆ chat_id

std::string yatbcpp::sendVideo::chat_id
private

Definition at line 84 of file sendVideo.h.

◆ disable_notification

std::optional<bool> yatbcpp::sendVideo::disable_notification
private

Definition at line 90 of file sendVideo.h.

◆ duration

std::optional<unsigned int> yatbcpp::sendVideo::duration
private

Definition at line 87 of file sendVideo.h.

◆ functionname [1/2]

std::string yatbcpp::telegram_methodJSON< Message >::functionname
protectedinherited

Definition at line 85 of file telegram_methodJSON.h.

◆ functionname [2/2]

std::string yatbcpp::telegram_methodMultipart< Message >::functionname
protectedinherited

Definition at line 88 of file telegram_methodMultipart.h.

◆ height

std::optional<unsigned int> yatbcpp::sendVideo::height
private

Definition at line 89 of file sendVideo.h.

◆ reply_markup

std::optional<ReplyMarkup> yatbcpp::sendVideo::reply_markup
private

Definition at line 92 of file sendVideo.h.

◆ reply_to_message_id

std::optional<std::int32_t> yatbcpp::sendVideo::reply_to_message_id
private

Definition at line 91 of file sendVideo.h.

◆ video

std::string yatbcpp::sendVideo::video
private

Definition at line 85 of file sendVideo.h.

◆ width

std::optional<unsigned int> yatbcpp::sendVideo::width
private

Definition at line 88 of file sendVideo.h.


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