conogram/entities/passport_file.rs
1use serde::{Deserialize, Serialize};
2
3/// 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.
4///
5/// API Reference: [link](https://core.telegram.org/bots/api/#passportfile)
6#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
7pub struct PassportFile {
8 /// Identifier for this file, which can be used to download or reuse the file
9 pub file_id: String,
10
11 /// 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.
12 pub file_unique_id: String,
13
14 /// File size in bytes
15 pub file_size: i64,
16
17 /// Unix time when the file was uploaded
18 pub file_date: i64,
19}
20
21// Divider: all content below this line will be preserved after code regen