tgbot-cpp
Loading...
Searching...
No Matches
TgBot::PassportFile Struct 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 <Types.h>

Public Types

using Ptr = std::shared_ptr<PassportFile>

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::uint32_t fileSize { }
 File size in bytes.
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 10232 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::PassportFile::Ptr = std::shared_ptr<PassportFile>

Definition at line 10233 of file Types.h.

Member Data Documentation

◆ fileDate

std::int32_t TgBot::PassportFile::fileDate { }

Unix time when the file was uploaded.

Definition at line 10251 of file Types.h.

◆ fileId

std::string TgBot::PassportFile::fileId { }

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

Definition at line 10238 of file Types.h.

◆ fileSize

std::uint32_t TgBot::PassportFile::fileSize { }

File size in bytes.

Definition at line 10247 of file Types.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 10243 of file Types.h.


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