[][src]Trait telebot::file::TryIntoFile

pub trait TryIntoFile: Sized {
    type Error;
    fn try_into(self) -> Result<File, Self::Error>;
}

Associated Types

type Error

Loading content...

Required methods

fn try_into(self) -> Result<File, Self::Error>

Loading content...

Implementations on Foreign Types

impl<'a> TryIntoFile for &'a str[src]

Construct a Telegram file from a local path

type Error = Error

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

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

type Error = Error

Loading content...

Implementors

impl TryIntoFile for File[src]

type Error = ()

Loading content...