Struct telegram_types::bot::methods::SendPhoto
source · pub struct SendPhoto<'a> {
pub chat_id: ChatTarget<'a>,
pub photo: File,
pub caption: Option<Cow<'a, str>>,
pub parse_mode: Option<ParseMode>,
pub disable_notification: Option<bool>,
pub reply_to_message_id: Option<MessageId>,
pub reply_markup: Option<ReplyMarkup>,
}
Expand description
Use this method to send photos.
Fields
chat_id: ChatTarget<'a>
photo: File
parse_mode: Option<ParseMode>
disable_notification: Option<bool>
reply_to_message_id: Option<MessageId>
reply_markup: Option<ReplyMarkup>
Implementations
sourceimpl<'a> SendPhoto<'a>
impl<'a> SendPhoto<'a>
pub fn new(chat_id: ChatTarget<'a>, photo: File) -> SendPhoto<'a>
pub fn parse_mode(self, mode: ParseMode) -> SendPhoto<'a>
pub fn reply(self, reply_to_message_id: MessageId) -> SendPhoto<'a>
pub fn reply_markup(self, markup: ReplyMarkup) -> Self
Trait Implementations
sourceimpl<'de, 'a> Deserialize<'de> for SendPhoto<'a>
impl<'de, 'a> Deserialize<'de> for SendPhoto<'a>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> PartialEq<SendPhoto<'a>> for SendPhoto<'a>
impl<'a> PartialEq<SendPhoto<'a>> for SendPhoto<'a>
impl<'a> Eq for SendPhoto<'a>
impl<'a> StructuralEq for SendPhoto<'a>
impl<'a> StructuralPartialEq for SendPhoto<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SendPhoto<'a>
impl<'a> Send for SendPhoto<'a>
impl<'a> Sync for SendPhoto<'a>
impl<'a> Unpin for SendPhoto<'a>
impl<'a> UnwindSafe for SendPhoto<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more