Struct telegram_bot_raw_ars::requests::send_photo::SendPhoto
source · 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) -> Selfwhere
C: ToChatRef,
V: Into<InputFile>,
pub fn parse_mode(&mut self, parse_mode: ParseMode) -> &mut Self
pub fn reply_to<R>(&mut self, to: R) -> &mut Selfwhere
R: ToMessageId,
pub fn disable_notification(&mut self) -> &mut Self
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Selfwhere
R: Into<ReplyMarkup>,
Trait Implementations§
source§impl<'c> PartialEq<SendPhoto<'c>> for SendPhoto<'c>
impl<'c> PartialEq<SendPhoto<'c>> for SendPhoto<'c>
source§impl<'c> PartialOrd<SendPhoto<'c>> for SendPhoto<'c>
impl<'c> PartialOrd<SendPhoto<'c>> for SendPhoto<'c>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more