pub struct SendPhoto<'c> { /* private fields */ }Expand description
Use this method to send photos
Implementations§
Source§impl<'c> SendPhoto<'c>
impl<'c> SendPhoto<'c>
pub fn new<C, V>(chat: C, photo: V) -> SendPhoto<'c>
pub fn caption<T>(&mut self, caption: T) -> &mut SendPhoto<'c>
pub fn parse_mode(&mut self, parse_mode: ParseMode) -> &mut SendPhoto<'c>
pub fn reply_to<R>(&mut self, to: R) -> &mut SendPhoto<'c>where
R: ToMessageId,
pub fn disable_notification(&mut self) -> &mut SendPhoto<'c>
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendPhoto<'c>where
R: Into<ReplyMarkup>,
Trait Implementations§
Source§impl<'c> PartialOrd for SendPhoto<'c>
impl<'c> PartialOrd for SendPhoto<'c>
Source§impl<'c> ToMultipart for SendPhoto<'c>
impl<'c> ToMultipart for SendPhoto<'c>
fn to_multipart(&self) -> Result<Vec<(&'static str, MultipartValue)>, Error>
impl<'c> StructuralPartialEq for SendPhoto<'c>
Auto Trait Implementations§
impl<'c> !Freeze for SendPhoto<'c>
impl<'c> RefUnwindSafe for SendPhoto<'c>
impl<'c> Send for SendPhoto<'c>
impl<'c> Sync for SendPhoto<'c>
impl<'c> Unpin for SendPhoto<'c>
impl<'c> UnsafeUnpin for SendPhoto<'c>
impl<'c> UnwindSafe for SendPhoto<'c>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more