1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde::{Deserialize, Serialize};

///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.
///API Reference: [link](https://core.telegram.org/bots/api/#passportfile)
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct PassportFile {
    ///Identifier for this file, which can be used to download or reuse the file
    pub file_id: String,

    ///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.
    pub file_unique_id: String,

    ///File size in bytes
    pub file_size: i64,

    ///Unix time when the file was uploaded
    pub file_date: i64,
}
// Divider: all content below this line will be preserved after code regen