tgbot-cpp
Loading...
Searching...
No Matches
InputFile.h
Go to the documentation of this file.
1
#ifndef TGBOT_CPP_INPUTFILE_H
2
#define TGBOT_CPP_INPUTFILE_H
3
4
#include "
tgbot/export.h
"
5
6
#include <memory>
7
#include <string>
8
9
namespace
TgBot
{
10
16
class
TGBOT_API
InputFile
{
17
18
public
:
19
typedef
std::shared_ptr<InputFile>
Ptr
;
20
24
std::string
data
;
25
29
std::string
mimeType
;
30
34
std::string
fileName
;
35
39
static
InputFile::Ptr
fromFile
(
const
std::string& filePath,
const
std::string& mimeType);
40
};
41
42
}
43
44
#endif
//TGBOT_CPP_INPUTFILE_H
TgBot::InputFile
This object represents the contents of a file to be uploaded.
Definition
InputFile.h:16
TgBot::InputFile::mimeType
std::string mimeType
Mime type of a file.
Definition
InputFile.h:29
TgBot::InputFile::data
std::string data
Contents of a file.
Definition
InputFile.h:24
TgBot::InputFile::fromFile
static InputFile::Ptr fromFile(const std::string &filePath, const std::string &mimeType)
Creates new InputFile::Ptr from an existing file.
TgBot::InputFile::fileName
std::string fileName
File name.
Definition
InputFile.h:34
TgBot::InputFile::Ptr
std::shared_ptr< InputFile > Ptr
Definition
InputFile.h:19
export.h
TgBot
Definition
Api.h:40
include
tgbot
types
InputFile.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0