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

#include "Chat.h"

Public Member Functions

 Chat (std::int64_t id, chat_type type)
 
 Chat (const Chat &chat)
 
void setTitle (const std::optional< std::string > &title)
 
void setUsername (const std::optional< std::string > &username)
 
void setFirst_name (const std::optional< std::string > &first_name)
 
void setLast_name (const std::optional< std::string > &last_name)
 
void setAll_members_are_administrators (const std::optional< bool > &all_members_are_administrators)
 
void setDescription (const std::optional< std::string > &description)
 
void setInvite_link (const std::optional< std::string > &invite_link)
 
std::int64_t getId () const
 
chat_type getType () const
 
const std::optional< std::string > & getTitle () const
 
const std::optional< std::string > & getUsername () const
 
const std::optional< std::string > & getFirst_name () const
 
const std::optional< std::string > & getLast_name () const
 
const std::optional< bool > & getAll_members_are_administrators () const
 
const std::optional< std::string > & getDescription () const
 
const std::optional< std::string > & getInvite_link () const
 

Private Attributes

std::int64_t id
 
chat_type type
 
std::optional< std::string > title
 
std::optional< std::string > username
 
std::optional< std::string > first_name
 
std::optional< std::string > last_name
 
std::optional< bool > all_members_are_administrators
 
std::optional< std::string > description
 
std::optional< std::string > invite_link
 

Detailed Description

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

Definition at line 10 of file Chat.h.

Constructor & Destructor Documentation

◆ Chat() [1/2]

yatbcpp::Chat::Chat ( std::int64_t  id,
chat_type  type 
)

◆ Chat() [2/2]

Chat::Chat ( const Chat chat)

Definition at line 19 of file Chat.cc.

Member Function Documentation

◆ getAll_members_are_administrators()

const optional< bool > & Chat::getAll_members_are_administrators ( ) const

Definition at line 92 of file Chat.cc.

◆ getDescription()

const optional< string > & Chat::getDescription ( ) const

Definition at line 96 of file Chat.cc.

◆ getFirst_name()

const optional< string > & Chat::getFirst_name ( ) const

Definition at line 84 of file Chat.cc.

◆ getId()

int64_t Chat::getId ( ) const

Definition at line 68 of file Chat.cc.

◆ getInvite_link()

const optional< string > & Chat::getInvite_link ( ) const

Definition at line 100 of file Chat.cc.

◆ getLast_name()

const optional< string > & Chat::getLast_name ( ) const

Definition at line 88 of file Chat.cc.

◆ getTitle()

const optional< string > & Chat::getTitle ( ) const

Definition at line 76 of file Chat.cc.

◆ getType()

chat_type Chat::getType ( ) const

Definition at line 72 of file Chat.cc.

◆ getUsername()

const optional< string > & Chat::getUsername ( ) const

Definition at line 80 of file Chat.cc.

◆ setAll_members_are_administrators()

void Chat::setAll_members_are_administrators ( const std::optional< bool > &  all_members_are_administrators)

Definition at line 52 of file Chat.cc.

◆ setDescription()

void Chat::setDescription ( const std::optional< std::string > &  description)

Definition at line 56 of file Chat.cc.

◆ setFirst_name()

void Chat::setFirst_name ( const std::optional< std::string > &  first_name)

Definition at line 44 of file Chat.cc.

◆ setInvite_link()

void Chat::setInvite_link ( const std::optional< std::string > &  invite_link)

Definition at line 60 of file Chat.cc.

◆ setLast_name()

void Chat::setLast_name ( const std::optional< std::string > &  last_name)

Definition at line 48 of file Chat.cc.

◆ setTitle()

void Chat::setTitle ( const std::optional< std::string > &  title)

Definition at line 36 of file Chat.cc.

◆ setUsername()

void Chat::setUsername ( const std::optional< std::string > &  username)

Definition at line 40 of file Chat.cc.

Member Data Documentation

◆ all_members_are_administrators

std::optional<bool> yatbcpp::Chat::all_members_are_administrators
private

Definition at line 56 of file Chat.h.

◆ description

std::optional<std::string> yatbcpp::Chat::description
private

Definition at line 60 of file Chat.h.

◆ first_name

std::optional<std::string> yatbcpp::Chat::first_name
private

Definition at line 54 of file Chat.h.

◆ id

std::int64_t yatbcpp::Chat::id
private

Definition at line 50 of file Chat.h.

◆ invite_link

std::optional<std::string> yatbcpp::Chat::invite_link
private

Definition at line 61 of file Chat.h.

◆ last_name

std::optional<std::string> yatbcpp::Chat::last_name
private

Definition at line 55 of file Chat.h.

◆ title

std::optional<std::string> yatbcpp::Chat::title
private

Definition at line 52 of file Chat.h.

◆ type

chat_type yatbcpp::Chat::type
private

Definition at line 51 of file Chat.h.

◆ username

std::optional<std::string> yatbcpp::Chat::username
private

Definition at line 53 of file Chat.h.


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