mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-11 04:21:12 +01:00
Fix deserializing Document
This commit is contained in:
parent
93690a3417
commit
db8175e9f9
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ pub struct Document {
|
|||
pub file_name: Option<String>,
|
||||
|
||||
/// A MIME type of the file as defined by a sender.
|
||||
#[serde(with = "crate::types::non_telegram_types::mime::opt_deser")]
|
||||
#[serde(default, with = "crate::types::non_telegram_types::mime::opt_deser")]
|
||||
pub mime_type: Option<Mime>,
|
||||
|
||||
/// A size of a file.
|
||||
|
|
Loading…
Reference in a new issue