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

#include "forwardMessage.h"

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

Public Member Functions

 forwardMessage (std::string chat_id, std::string from_chat_id, std::int32_t message_id)
 
 forwardMessage (std::int64_t chat_id, std::int64_t from_chat_id, std::int32_t message_id)
 
 forwardMessage (Chat chat_id, Message from)
 
Json::Value toJson ()
 
const std::string & getChat_id () const
 
const std::string & getFrom_chat_id () const
 
const std::optional< bool > & getDisable_notification () const
 
std::int32_t getMessage_id () const
 
void setDisable_notification (const std::optional< bool > &disable_notification)
 
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
 
std::string from_chat_id
 
std::optional< bool > disable_notification
 
std::int32_t message_id
 

Detailed Description

Definition at line 15 of file forwardMessage.h.

Constructor & Destructor Documentation

◆ forwardMessage() [1/3]

yatbcpp::forwardMessage::forwardMessage ( std::string  chat_id,
std::string  from_chat_id,
std::int32_t  message_id 
)

◆ forwardMessage() [2/3]

yatbcpp::forwardMessage::forwardMessage ( std::int64_t  chat_id,
std::int64_t  from_chat_id,
std::int32_t  message_id 
)

◆ forwardMessage() [3/3]

forwardMessage::forwardMessage ( Chat  chat_id,
Message  from 
)

Definition at line 13 of file forwardMessage.cc.

Here is the call graph for this function:

Member Function Documentation

◆ getChat_id()

const string & forwardMessage::getChat_id ( ) const

Definition at line 61 of file forwardMessage.cc.

◆ getDisable_notification()

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

Definition at line 69 of file forwardMessage.cc.

◆ getFrom_chat_id()

const string & forwardMessage::getFrom_chat_id ( ) const

Definition at line 65 of file forwardMessage.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.

◆ getMessage_id()

int32_t forwardMessage::getMessage_id ( ) const

Definition at line 73 of file forwardMessage.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 forwardMessage::setDisable_notification ( const std::optional< bool > &  disable_notification)

Definition at line 53 of file forwardMessage.cc.

◆ toJson()

Json::Value forwardMessage::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 forwardMessage.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::forwardMessage::chat_id
private

Definition at line 33 of file forwardMessage.h.

◆ disable_notification

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

Definition at line 35 of file forwardMessage.h.

◆ from_chat_id

std::string yatbcpp::forwardMessage::from_chat_id
private

Definition at line 34 of file forwardMessage.h.

◆ functionname

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

Definition at line 85 of file telegram_methodJSON.h.

◆ message_id

std::int32_t yatbcpp::forwardMessage::message_id
private

Definition at line 36 of file forwardMessage.h.


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