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
name: String
source: Box<Read>
Trait Implementations
impl<'a> From<&'a str> for File
[src]
Construct a Telegram file from a local path
impl<'a, S: Read + 'static> From<(&'a str, S)> for File
[src]
Construct a Telegram file from an object which implements the Read trait