Struct telebot::file::File [] [src]

pub struct File {
    pub name: String,
    pub source: Box<Read>,
}

A Telegram file which contains a readable source and a filename

Fields

Trait Implementations

impl<'a> From<&'a str> for File
[src]

Construct a Telegram file from a local path

[src]

Performs the conversion.

impl<'a, S: Read + 'static> From<(&'a str, S)> for File
[src]

Construct a Telegram file from an object which implements the Read trait

[src]

Performs the conversion.