tgbot-cpp
Loading...
Searching...
No Matches
TgBot::PassportFile Class Reference

This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB. More...

#include <PassportFile.h>

Public Types

typedef std::shared_ptr< PassportFilePtr
 

Public Attributes

std::string fileId
 Identifier for this file, which can be used to download or reuse the file.
 
std::string fileUniqueId
 Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
 
std::int32_t fileSize
 File size.
 
std::int32_t fileDate
 Unix time when the file was uploaded.
 

Detailed Description

This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.

Definition at line 15 of file PassportFile.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 18 of file PassportFile.h.

Member Data Documentation

◆ fileDate

std::int32_t TgBot::PassportFile::fileDate

Unix time when the file was uploaded.

Definition at line 39 of file PassportFile.h.

◆ fileId

std::string TgBot::PassportFile::fileId

Identifier for this file, which can be used to download or reuse the file.

Definition at line 23 of file PassportFile.h.

◆ fileSize

std::int32_t TgBot::PassportFile::fileSize

File size.

Definition at line 34 of file PassportFile.h.

◆ fileUniqueId

std::string TgBot::PassportFile::fileUniqueId

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

Definition at line 29 of file PassportFile.h.


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