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

#include "Update.h"

Public Member Functions

 Update (std::int32_t update_id)
 
 Update (const Update &Update)
 
void setMessage (const std::optional< Message > &message)
 
void setEdited_message (const std::optional< Message > &edited_message)
 
void setChannel_post (const std::optional< Message > &channel_post)
 
void setEdited_channel_post (const std::optional< Message > &edited_channel_post)
 
std::int32_t getUpdate_id () const
 
const std::optional< Message > & getMessage () const
 
const std::optional< Message > & getEdited_message () const
 
const std::optional< Message > & getChannel_post () const
 
const std::optional< Message > & getEdited_channel_post () const
 
const std::optional< InlineQuery > & getInlineQuery () const
 
void setInlineQuery (const std::optional< InlineQuery > &inlineQuery)
 

Private Attributes

std::int32_t update_id
 
std::optional< Messagemessage
 
std::optional< Messageedited_message
 
std::optional< Messagechannel_post
 
std::optional< Messageedited_channel_post
 
std::optional< InlineQueryinlineQuery
 

Detailed Description

See also https://core.telegram.org/bots/api#update

Definition at line 15 of file Update.h.

Constructor & Destructor Documentation

◆ Update() [1/2]

yatbcpp::Update::Update ( std::int32_t  update_id)

◆ Update() [2/2]

Update::Update ( const Update Update)

Definition at line 17 of file Update.cc.

Member Function Documentation

◆ getChannel_post()

const optional< Message > & Update::getChannel_post ( ) const

Definition at line 68 of file Update.cc.

◆ getEdited_channel_post()

const optional< Message > & Update::getEdited_channel_post ( ) const

Definition at line 72 of file Update.cc.

◆ getEdited_message()

const optional< Message > & Update::getEdited_message ( ) const

Definition at line 64 of file Update.cc.

◆ getInlineQuery()

const optional< InlineQuery > & Update::getInlineQuery ( ) const

Definition at line 76 of file Update.cc.

◆ getMessage()

const optional< Message > & Update::getMessage ( ) const

Definition at line 60 of file Update.cc.

◆ getUpdate_id()

int Update::getUpdate_id ( ) const

Definition at line 56 of file Update.cc.

◆ setChannel_post()

void Update::setChannel_post ( const std::optional< Message > &  channel_post)

Definition at line 40 of file Update.cc.

◆ setEdited_channel_post()

void Update::setEdited_channel_post ( const std::optional< Message > &  edited_channel_post)

Definition at line 44 of file Update.cc.

◆ setEdited_message()

void Update::setEdited_message ( const std::optional< Message > &  edited_message)

Definition at line 36 of file Update.cc.

◆ setInlineQuery()

void Update::setInlineQuery ( const std::optional< InlineQuery > &  inlineQuery)

Definition at line 48 of file Update.cc.

◆ setMessage()

void Update::setMessage ( const std::optional< Message > &  message)

Definition at line 32 of file Update.cc.

Member Data Documentation

◆ channel_post

std::optional<Message> yatbcpp::Update::channel_post
private

Definition at line 48 of file Update.h.

◆ edited_channel_post

std::optional<Message> yatbcpp::Update::edited_channel_post
private

Definition at line 49 of file Update.h.

◆ edited_message

std::optional<Message> yatbcpp::Update::edited_message
private

Definition at line 47 of file Update.h.

◆ inlineQuery

std::optional<InlineQuery> yatbcpp::Update::inlineQuery
private

Definition at line 50 of file Update.h.

◆ message

std::optional<Message> yatbcpp::Update::message
private

Definition at line 46 of file Update.h.

◆ update_id

std::int32_t yatbcpp::Update::update_id
private

Definition at line 45 of file Update.h.


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