[−][src]Struct tbot::contexts::EditedPhoto
The context for edited_photo
handlers.
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bot: Arc<Bot<C>>
A bot for calling API without information inference.
message_id: Id
ID of the message.
from: Option<User>
The author of the message.
date: i64
The timestamp of the message.
chat: Chat
The chat to which the message was sent.
reply_to: Option<Message>
The replied message.
The author's signature, if enabled for the channel.
edit_date: i64
The last time when the message was edited.
reply_markup: Option<Keyboard>
The inline keyboard attached to the message.
photo: Vec<PhotoSize>
The photo.
caption: Text
The caption of the photo.
media_group_id: Option<String>
The media group's ID.
Trait Implementations
impl<C> Album<C> for EditedPhoto<C>
[src]
#[must_use]
fn media_group_id(&self) -> Option<&str>
[src]
impl<C> AnyText<C> for EditedPhoto<C>
[src]
impl<C> Caption<C> for EditedPhoto<C>
[src]
impl<C: Clone> Clone for EditedPhoto<C>
[src]
fn clone(&self) -> EditedPhoto<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C> Context<C> for EditedPhoto<C>
[src]
impl<C: Debug> Debug for EditedPhoto<C>
[src]
impl<C> EditedMessage<C> for EditedPhoto<C>
[src]
impl<'a, C: 'static> Forwardable<'a, C> for EditedPhoto<C>
[src]
fn forward_to(
&'a self,
chat_id: impl ImplicitChatId<'a>
) -> ForwardMessage<'a, C>
[src]
&'a self,
chat_id: impl ImplicitChatId<'a>
) -> ForwardMessage<'a, C>
impl<C> MediaMessage<C> for EditedPhoto<C>
[src]
#[must_use]
fn reply_to(&self) -> Option<&Message>
[src]
#[must_use]
fn author_signature(&self) -> Option<&str>
[src]
#[must_use]
fn reply_markup(&self) -> Option<&Keyboard>
[src]
impl<C> Message<C> for EditedPhoto<C>
[src]
#[must_use]
fn message_id(&self) -> Id
[src]
#[must_use]
fn from(&self) -> Option<&User>
[src]
#[must_use]
fn date(&self) -> i64
[src]
#[must_use]
fn chat(&self) -> &Chat
[src]
impl<C> Photo<C> for EditedPhoto<C>
[src]
impl<'a, C: 'static> Pinnable<'a, C> for EditedPhoto<C>
[src]
fn pin_this_message(&'a self) -> PinChatMessage<'a, C>
[src]
Auto Trait Implementations
impl<C> !RefUnwindSafe for EditedPhoto<C>
impl<C> Send for EditedPhoto<C> where
C: Send + Sync,
C: Send + Sync,
impl<C> Sync for EditedPhoto<C> where
C: Send + Sync,
C: Send + Sync,
impl<C> Unpin for EditedPhoto<C>
impl<C> !UnwindSafe for EditedPhoto<C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,