Struct telegram_typings::File [] [src]

pub struct File {
    pub file_id: String,
    pub file_size: Option<i64>,
    pub file_path: Option<String>,
}

This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile. See https://core.telegram.org/bots/api#getfile

Fields

Unique identifier for this file

File size, if known

File path. Use https://api.telegram.org/file/bot/<file_path> to get the file.

Trait Implementations

impl Debug for File
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for File
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for File

impl Sync for File