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

#include "File.h"

Public Member Functions

 File (std::string file_id)
 
 File (const File &File)
 
void setFile_size (const std::optional< std::int32_t > &file_size)
 
void setFile_path (const std::optional< std::string > &file_path)
 
const std::string & getFile_id () const
 
const std::optional< std::int32_t > & getFile_size () const
 
const std::optional< std::string > & getFile_path () const
 

Private Attributes

std::string file_id
 
std::optional< std::int32_t > file_size
 
std::optional< std::string > file_path
 

Detailed Description

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

Definition at line 9 of file File.h.

Constructor & Destructor Documentation

◆ File() [1/2]

File::File ( std::string  file_id)

Definition at line 12 of file File.cc.

◆ File() [2/2]

File::File ( const File File)

Definition at line 18 of file File.cc.

Member Function Documentation

◆ getFile_id()

const string & File::getFile_id ( ) const

Definition at line 41 of file File.cc.

◆ getFile_path()

const optional< string > & File::getFile_path ( ) const

Definition at line 49 of file File.cc.

◆ getFile_size()

const optional< int32_t > & File::getFile_size ( ) const

Definition at line 45 of file File.cc.

◆ setFile_path()

void File::setFile_path ( const std::optional< std::string > &  file_path)

Definition at line 33 of file File.cc.

◆ setFile_size()

void File::setFile_size ( const std::optional< std::int32_t > &  file_size)

Definition at line 29 of file File.cc.

Member Data Documentation

◆ file_id

std::string yatbcpp::File::file_id
private

Definition at line 26 of file File.h.

◆ file_path

std::optional<std::string> yatbcpp::File::file_path
private

Definition at line 28 of file File.h.

◆ file_size

std::optional<std::int32_t> yatbcpp::File::file_size
private

Definition at line 27 of file File.h.


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