Struct telegram_typings::Document
[−]
[src]
pub struct Document { pub file_id: String, pub thumb: Option<Box<PhotoSize>>, pub file_name: Option<String>, pub mime_type: Option<String>, pub file_size: Option<i64>, }
This object represents a general file (as opposed to photos, voice messages and audio files). See https://core.telegram.org/bots/api#photosize See https://core.telegram.org/bots/api#voice See https://core.telegram.org/bots/api#audio
Fields
file_id: String
Unique file identifier
thumb: Option<Box<PhotoSize>>
Document thumbnail as defined by sender
file_name: Option<String>
Original filename as defined by sender
mime_type: Option<String>
MIME type of the file as defined by sender
file_size: Option<i64>
File size