mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Added Animation, File, UserProfilePhotos
This commit is contained in:
parent
7de6f9f252
commit
a5f1b7fb70
4 changed files with 26 additions and 3 deletions
13
src/core/types/animation.rs
Normal file
13
src/core/types/animation.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
use crate::core::types::PhotoSize;
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
|
||||
pub struct Animation {
|
||||
pub file_id: String,
|
||||
pub width: u32,
|
||||
pub height: u32,
|
||||
pub duration: u32,
|
||||
pub thumb: PhotoSize,
|
||||
pub file_name: Option<String>,
|
||||
pub mime_type: Option<String>,
|
||||
pub file_size: Option<u32>
|
||||
}
|
6
src/core/types/file.rs
Normal file
6
src/core/types/file.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Clone)]
|
||||
pub struct File {
|
||||
pub file_id: String,
|
||||
pub file_size: u32,
|
||||
pub file_path: String
|
||||
}
|
|
@ -1,8 +1,5 @@
|
|||
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Serialize, Clone)]
|
||||
pub struct PassportData;
|
||||
|
||||
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Serialize, Clone)]
|
||||
pub struct Animation;
|
||||
|
||||
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Serialize, Clone)]
|
||||
pub struct ChatMemberStatus;
|
||||
|
|
7
src/core/types/user_profile_photos.rs
Normal file
7
src/core/types/user_profile_photos.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
use crate::core::types::PhotoSize;
|
||||
|
||||
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Clone, Serialize)]
|
||||
pub struct UserProfilePhotos {
|
||||
pub total_count: u32,
|
||||
pub photos: Vec<Vec<PhotoSize>>
|
||||
}
|
Loading…
Reference in a new issue