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::sendLocation Class Reference

#include "sendLocation.h"

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

Public Member Functions

Json::Value toJson ()
 
 sendLocation (Chat C, Location location)
 
 sendLocation (std::int64_t chat_id, Location location)
 
 sendLocation (std::string chat_id, Location location)
 
void setLivePeriod (const std::optional< unsigned int > live_period)
 
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 float & getLatitude () const
 
const float & getLongitude () const
 
const std::optional< unsigned int > & getLivePeriod () const
 
const std::optional< bool > & getDisable_notification () const
 
const std::optional< int > & getReply_to_message_id () const
 
const std::optional< ReplyMarkup > & getReply_markup () const
 
void setLive_period (const std::optional< unsigned int > &live_period)
 
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)
 

Protected Attributes

std::string functionname
 

Private Attributes

std::string chat_id
 
float latitude
 
float longitude
 
std::optional< unsigned int > live_period
 
std::optional< bool > disable_notification
 
std::optional< int > reply_to_message_id
 
std::optional< ReplyMarkupreply_markup
 

Detailed Description

Definition at line 19 of file sendLocation.h.

Constructor & Destructor Documentation

◆ sendLocation() [1/3]

sendLocation::sendLocation ( Chat  C,
Location  location 
)
Parameters
C
location,andDocument file id or an document file location to send local files use methodMultipart

Definition at line 13 of file sendLocation.cc.

Here is the call graph for this function:

◆ sendLocation() [2/3]

yatbcpp::sendLocation::sendLocation ( std::int64_t  chat_id,
Location  location 
)
Parameters
chat_id
location,andDocument file id or an Document file location to send local files use methodMultipart

◆ sendLocation() [3/3]

yatbcpp::sendLocation::sendLocation ( std::string  chat_id,
Location  location 
)
Parameters
chat_id
location,andLocation file id or an Document file location to send local files use methodMultipart

Member Function Documentation

◆ getChat_id()

const string & sendLocation::getChat_id ( ) const

Definition at line 105 of file sendLocation.cc.

◆ getDisable_notification()

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

Definition at line 121 of file sendLocation.cc.

◆ getFunctionname()

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

returns the Functionname

Returns

Definition at line 80 of file telegram_methodJSON.h.

◆ getLatitude()

const float & sendLocation::getLatitude ( ) const

Definition at line 109 of file sendLocation.cc.

◆ getLivePeriod()

const optional< unsigned int > & sendLocation::getLivePeriod ( ) const

Definition at line 117 of file sendLocation.cc.

◆ getLongitude()

const float & sendLocation::getLongitude ( ) const

Definition at line 113 of file sendLocation.cc.

◆ getReply_markup()

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

Definition at line 129 of file sendLocation.cc.

◆ getReply_to_message_id()

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

Definition at line 125 of file sendLocation.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.

◆ setDisable_notification()

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

Definition at line 68 of file sendLocation.cc.

◆ setLive_period()

void sendLocation::setLive_period ( const std::optional< unsigned int > &  live_period)

Definition at line 64 of file sendLocation.cc.

◆ setLivePeriod()

void yatbcpp::sendLocation::setLivePeriod ( const std::optional< unsigned int >  live_period)

◆ setReply_to_message_id()

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

Definition at line 72 of file sendLocation.cc.

◆ setReplyMarkup() [1/3]

void sendLocation::setReplyMarkup ( const ReplyKeyboardMarkup  RKM)

Sets an ReplyKeyboardMarkup

Parameters
RKM

Definition at line 81 of file sendLocation.cc.

◆ setReplyMarkup() [2/3]

void sendLocation::setReplyMarkup ( const ReplyKeyboardRemove  RKR)

Sets an ReplyKeyboardRemove

Parameters
RKR

Definition at line 89 of file sendLocation.cc.

◆ setReplyMarkup() [3/3]

void sendLocation::setReplyMarkup ( const ForceReply  FR)

Sets an ForceReply

Parameters
FR

Definition at line 97 of file sendLocation.cc.

◆ toJson()

Json::Value sendLocation::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 38 of file sendLocation.cc.

Here is the call graph for this function:

◆ WriteCallback()

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

◆ chat_id

std::string yatbcpp::sendLocation::chat_id
private

Definition at line 75 of file sendLocation.h.

◆ disable_notification

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

Definition at line 79 of file sendLocation.h.

◆ functionname

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

Definition at line 85 of file telegram_methodJSON.h.

◆ latitude

float yatbcpp::sendLocation::latitude
private

Definition at line 76 of file sendLocation.h.

◆ live_period

std::optional<unsigned int> yatbcpp::sendLocation::live_period
private

Definition at line 78 of file sendLocation.h.

◆ longitude

float yatbcpp::sendLocation::longitude
private

Definition at line 77 of file sendLocation.h.

◆ reply_markup

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

Definition at line 81 of file sendLocation.h.

◆ reply_to_message_id

std::optional<int> yatbcpp::sendLocation::reply_to_message_id
private

Definition at line 80 of file sendLocation.h.


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