tgbot-cpp
TgBot::InputFile Class Reference

This object represents the contents of a file to be uploaded. More...

#include <InputFile.h>

Public Types

typedef std::shared_ptr< InputFilePtr
 

Static Public Member Functions

static InputFile::Ptr fromFile (const std::string &filePath, const std::string &mimeType)
 Creates new InputFile::Ptr from an existing file. More...
 

Public Attributes

std::string data
 Contents of a file. More...
 
std::string mimeType
 Mime type of a file. More...
 
std::string fileName
 File name. More...
 

Detailed Description

This object represents the contents of a file to be uploaded.

Definition at line 37 of file InputFile.h.

Member Typedef Documentation

typedef std::shared_ptr<InputFile> TgBot::InputFile::Ptr

Definition at line 40 of file InputFile.h.

Member Function Documentation

static InputFile::Ptr TgBot::InputFile::fromFile ( const std::string &  filePath,
const std::string &  mimeType 
)
static

Creates new InputFile::Ptr from an existing file.

Member Data Documentation

std::string TgBot::InputFile::data

Contents of a file.

Definition at line 45 of file InputFile.h.

std::string TgBot::InputFile::fileName

File name.

Definition at line 55 of file InputFile.h.

std::string TgBot::InputFile::mimeType

Mime type of a file.

Definition at line 50 of file InputFile.h.


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