[−][src]Struct tbot::contexts::Photo
The context for photo
handlers.
Fields
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.
forward: Option<Forward>
The origin of the message if it's a forward.
reply_markup: Option<Keyboard>
The inline keyboard attached to the message.
photo: Vec<PhotoSize>
The photo.
The caption of the photo.
media_group_id: Option<String>
The media group's ID.
Trait Implementations
impl<'a, C: 'static> ChatMethods<'a, C> for Photo<C>
[src]
fn bot(&self) -> &Bot<C>
[src]
fn chat_id(&self) -> Id
[src]
fn message_id(&self) -> Id
[src]
fn delete_chat_photo(&'a self) -> DeleteChatPhoto<'a, C>
[src]
fn delete_chat_sticker_set(&'a self) -> DeleteChatStickerSet<'a, C>
[src]
fn delete_message(&'a self, message_id: Id) -> DeleteMessage<'a, C>
[src]
fn delete_this_message(&'a self) -> DeleteMessage<'a, C>
[src]
fn edit_message_caption(
&'a self,
message_id: Id,
caption: impl Into<Text<'a>>
) -> EditMessageCaption<'a, C>
[src]
&'a self,
message_id: Id,
caption: impl Into<Text<'a>>
) -> EditMessageCaption<'a, C>
fn edit_message_location(
&'a self,
message_id: Id,
location: (f64, f64)
) -> EditMessageLocation<'a, C>
[src]
&'a self,
message_id: Id,
location: (f64, f64)
) -> EditMessageLocation<'a, C>
fn edit_message_media(
&'a self,
message_id: Id,
media: impl Into<EditableMedia<'a>>
) -> EditMessageMedia<'a, C>
[src]
&'a self,
message_id: Id,
media: impl Into<EditableMedia<'a>>
) -> EditMessageMedia<'a, C>
fn edit_message_reply_markup(
&'a self,
message_id: Id,
reply_markup: Keyboard<'a>
) -> EditMessageReplyMarkup<'a, C>
[src]
&'a self,
message_id: Id,
reply_markup: Keyboard<'a>
) -> EditMessageReplyMarkup<'a, C>
fn edit_message_text(
&'a self,
message_id: Id,
text: impl Into<Text<'a>>
) -> EditMessageText<'a, C>
[src]
&'a self,
message_id: Id,
text: impl Into<Text<'a>>
) -> EditMessageText<'a, C>
fn export_chat_invite_link(&'a self) -> ExportChatInviteLink<'a, C>
[src]
fn forward_here(
&'a self,
from_chat_id: impl ImplicitChatId<'a>,
message_id: Id
) -> ForwardMessage<'a, C>
[src]
&'a self,
from_chat_id: impl ImplicitChatId<'a>,
message_id: Id
) -> ForwardMessage<'a, C>
fn get_chat(&'a self) -> GetChat<'a, C>
[src]
fn get_chat_administrators(&'a self) -> GetChatAdministrators<'a, C>
[src]
fn get_chat_member(&'a self, user_id: Id) -> GetChatMember<'a, C>
[src]
fn get_chat_members_count(&'a self) -> GetChatMembersCount<'a, C>
[src]
fn get_message_game_high_scores(
&'a self,
message_id: Id,
user_id: Id
) -> GetMessageGameHighScores<'a, C>
[src]
&'a self,
message_id: Id,
user_id: Id
) -> GetMessageGameHighScores<'a, C>
fn kick_chat_member(&'a self, user_id: Id) -> KickChatMember<'a, C>
[src]
fn leave_chat(&'a self) -> LeaveChat<'a, C>
[src]
fn promote_chat_member(&'a self, user_id: Id) -> PromoteChatMember<'a, C>
[src]
fn restrict_chat_member(
&'a self,
user_id: Id,
permissions: Permissions
) -> RestrictChatMember<'a, C>
[src]
&'a self,
user_id: Id,
permissions: Permissions
) -> RestrictChatMember<'a, C>
fn send_animation(&'a self, animation: Animation<'a>) -> SendAnimation<'a, C>
[src]
fn send_animation_in_reply(
&'a self,
animation: Animation<'a>
) -> SendAnimation<'a, C>
[src]
&'a self,
animation: Animation<'a>
) -> SendAnimation<'a, C>
fn send_audio(&'a self, audio: Audio<'a>) -> SendAudio<'a, C>
[src]
fn send_audio_in_reply(&'a self, audio: Audio<'a>) -> SendAudio<'a, C>
[src]
fn send_chat_action(&'a self, action: Action) -> SendChatAction<C>
[src]
fn send_contact(
&'a self,
phone_number: &'a str,
first_name: &'a str
) -> SendContact<'a, C>
[src]
&'a self,
phone_number: &'a str,
first_name: &'a str
) -> SendContact<'a, C>
fn send_contact_in_reply(
&'a self,
phone_number: &'a str,
first_name: &'a str
) -> SendContact<'a, C>
[src]
&'a self,
phone_number: &'a str,
first_name: &'a str
) -> SendContact<'a, C>
fn send_game(&'a self, game_short_name: &'a str) -> SendGame<'a, C>
[src]
fn send_game_in_reply(&'a self, game_short_name: &'a str) -> SendGame<'a, C>
[src]
fn send_document(&'a self, document: Document<'a>) -> SendDocument<'a, C>
[src]
fn send_document_in_reply(
&'a self,
document: Document<'a>
) -> SendDocument<'a, C>
[src]
&'a self,
document: Document<'a>
) -> SendDocument<'a, C>
fn send_invoice(
&'a self,
title: &'a str,
description: &'a str,
payload: &'a str,
provider_token: &'a str,
start_parameter: &'a str,
currency: &'a str,
prices: &'a [LabeledPrice<'a>]
) -> SendInvoice<'a, C>
[src]
&'a self,
title: &'a str,
description: &'a str,
payload: &'a str,
provider_token: &'a str,
start_parameter: &'a str,
currency: &'a str,
prices: &'a [LabeledPrice<'a>]
) -> SendInvoice<'a, C>
fn send_invoice_in_reply(
&'a self,
title: &'a str,
description: &'a str,
payload: &'a str,
provider_token: &'a str,
start_parameter: &'a str,
currency: &'a str,
prices: &'a [LabeledPrice<'a>]
) -> SendInvoice<'a, C>
[src]
&'a self,
title: &'a str,
description: &'a str,
payload: &'a str,
provider_token: &'a str,
start_parameter: &'a str,
currency: &'a str,
prices: &'a [LabeledPrice<'a>]
) -> SendInvoice<'a, C>
fn send_location(&'a self, location: (f64, f64)) -> SendLocation<C>
[src]
fn send_location_in_reply(&'a self, location: (f64, f64)) -> SendLocation<C>
[src]
fn send_media_group(
&'a self,
media: &'a [GroupMedia<'a>]
) -> SendMediaGroup<'a, C>
[src]
&'a self,
media: &'a [GroupMedia<'a>]
) -> SendMediaGroup<'a, C>
fn send_media_group_in_reply(
&'a self,
media: &'a [GroupMedia<'a>]
) -> SendMediaGroup<'a, C>
[src]
&'a self,
media: &'a [GroupMedia<'a>]
) -> SendMediaGroup<'a, C>
fn send_message(&'a self, text: impl Into<Text<'a>>) -> SendMessage<'a, C>
[src]
fn send_message_in_reply(
&'a self,
text: impl Into<Text<'a>>
) -> SendMessage<'a, C>
[src]
&'a self,
text: impl Into<Text<'a>>
) -> SendMessage<'a, C>
fn send_photo(&'a self, photo: Photo<'a>) -> SendPhoto<'a, C>
[src]
fn send_photo_in_reply(&'a self, photo: Photo<'a>) -> SendPhoto<'a, C>
[src]
fn send_poll(
&'a self,
question: &'a str,
options: &'a [&'a str]
) -> SendPoll<'a, C>
[src]
&'a self,
question: &'a str,
options: &'a [&'a str]
) -> SendPoll<'a, C>
fn send_poll_in_reply(
&'a self,
question: &'a str,
options: &'a [&'a str]
) -> SendPoll<'a, C>
[src]
&'a self,
question: &'a str,
options: &'a [&'a str]
) -> SendPoll<'a, C>
fn send_sticker(&'a self, sticker: Sticker<'a>) -> SendSticker<'a, C>
[src]
fn send_sticker_in_reply(&'a self, sticker: Sticker<'a>) -> SendSticker<'a, C>
[src]
fn send_venue(
&'a self,
location: (f64, f64),
title: &'a str,
address: &'a str
) -> SendVenue<'a, C>
[src]
&'a self,
location: (f64, f64),
title: &'a str,
address: &'a str
) -> SendVenue<'a, C>
fn send_venue_in_reply(
&'a self,
location: (f64, f64),
title: &'a str,
address: &'a str
) -> SendVenue<'a, C>
[src]
&'a self,
location: (f64, f64),
title: &'a str,
address: &'a str
) -> SendVenue<'a, C>
fn send_video(&'a self, video: Video<'a>) -> SendVideo<'a, C>
[src]
fn send_video_in_reply(&'a self, video: Video<'a>) -> SendVideo<'a, C>
[src]
fn send_video_note(&'a self, video_note: VideoNote<'a>) -> SendVideoNote<'a, C>
[src]
fn send_video_note_in_reply(
&'a self,
video_note: VideoNote<'a>
) -> SendVideoNote<'a, C>
[src]
&'a self,
video_note: VideoNote<'a>
) -> SendVideoNote<'a, C>
fn send_voice(&'a self, voice: Voice<'a>) -> SendVoice<'a, C>
[src]
fn send_voice_in_reply(&'a self, voice: Voice<'a>) -> SendVoice<'a, C>
[src]
fn set_chat_description(
&'a self,
description: &'a str
) -> SetChatDescription<'a, C>
[src]
&'a self,
description: &'a str
) -> SetChatDescription<'a, C>
fn set_chat_permissions(
&'a self,
permissions: Permissions
) -> SetChatPermissions<'a, C>
[src]
&'a self,
permissions: Permissions
) -> SetChatPermissions<'a, C>
fn set_chat_photo(&'a self, photo: ChatPhoto<'a>) -> SetChatPhoto<'a, C>
[src]
fn set_chat_sticker_set(
&'a self,
sticker_set_name: &'a str
) -> SetChatStickerSet<'a, C>
[src]
&'a self,
sticker_set_name: &'a str
) -> SetChatStickerSet<'a, C>
fn set_chat_title(&'a self, title: &'a str) -> SetChatTitle<'a, C>
[src]
fn set_message_game_score(
&'a self,
message_id: Id,
user_id: Id,
score: u32
) -> SetMessageGameScore<'a, C>
[src]
&'a self,
message_id: Id,
user_id: Id,
score: u32
) -> SetMessageGameScore<'a, C>
fn unban_chat_member(&'a self, user_id: Id) -> UnbanChatMember<'a, C>
[src]
fn unpin_chat_message(&'a self) -> UnpinChatMessage<'a, C>
[src]
impl<'a, C: 'static> Forwardable<'a, C> for Photo<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<'a, C: 'static> Pinnable<'a, C> for Photo<C>
[src]
fn pin_this_message(&'a self) -> PinChatMessage<'a, C>
[src]
impl<C: Clone> Clone for Photo<C>
[src]
impl<C: Debug> Debug for Photo<C>
[src]
Auto Trait Implementations
impl<C> Sync for Photo<C> where
C: Send + Sync,
C: Send + Sync,
impl<C> Send for Photo<C> where
C: Send + Sync,
C: Send + Sync,
impl<C> Unpin for Photo<C>
impl<C> !UnwindSafe for Photo<C>
impl<C> !RefUnwindSafe for Photo<C>
Blanket Implementations
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> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,