tg_flows/types/chat_photo.rs
1use serde::{Deserialize, Serialize};
2
3/// This object represents a chat photo.
4///
5/// [The official docs](https://core.telegram.org/bots/api#chatphoto).
6#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
7pub struct ChatPhoto {
8 /// A file identifier of small (160x160) chat photo. This file_id can be
9 /// used only for photo download and only for as long as the photo is
10 /// not changed.
11 pub small_file_id: String,
12
13 /// Unique file identifier of small (160x160) chat photo, which is supposed
14 /// to be the same over time and for different bots. Can't be used to
15 /// download or reuse the file.
16 pub small_file_unique_id: String,
17
18 /// A file identifier of big (640x640) chat photo. This file_id can be used
19 /// only for photo download and only for as long as the photo is not
20 /// changed.
21 pub big_file_id: String,
22
23 /// Unique file identifier of big (640x640) chat photo, which is supposed
24 /// to be the same over time and for different bots. Can't be used to
25 /// download or reuse the file.
26 pub big_file_unique_id: String,
27}