[−][src]Struct telegram_bot::types::ChannelPost
This object represents a channel message.
Fields
id: MessageId
Unique message identifier inside this chat.
date: i64
Date the message was sent in Unix time.
chat: Channel
Conversation the message belongs to.
forward: Option<Forward>
Information about the original message.
reply_to_message: Option<Box<MessageOrChannelPost, Global>>
For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
edit_date: Option<i64>
Date the message was last edited in Unix time.
kind: MessageKind
Kind of the message.
Trait Implementations
impl Clone for ChannelPost
[src]
pub fn clone(&self) -> ChannelPost
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChannelPost
[src]
impl<'de> Deserialize<'de> for ChannelPost
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<ChannelPost, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<ChannelPost, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl MessageGetFiles for ChannelPost
[src]
impl MessageText for ChannelPost
[src]
impl PartialEq<ChannelPost> for ChannelPost
[src]
pub fn eq(&self, other: &ChannelPost) -> bool
[src]
pub fn ne(&self, other: &ChannelPost) -> bool
[src]
impl PartialOrd<ChannelPost> for ChannelPost
[src]
pub fn partial_cmp(&self, other: &ChannelPost) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ChannelPost) -> bool
[src]
pub fn le(&self, other: &ChannelPost) -> bool
[src]
pub fn gt(&self, other: &ChannelPost) -> bool
[src]
pub fn ge(&self, other: &ChannelPost) -> bool
[src]
impl StructuralPartialEq for ChannelPost
[src]
impl ToMessageId for ChannelPost
[src]
pub fn to_message_id(&self) -> MessageId
[src]
impl ToSourceChat for ChannelPost
[src]
pub fn to_source_chat(&self) -> ChatId
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelPost
[src]
impl Send for ChannelPost
[src]
impl Sync for ChannelPost
[src]
impl Unpin for ChannelPost
[src]
impl UnwindSafe for ChannelPost
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<M> CanDeleteMessage for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn delete(&self) -> DeleteMessage
[src]
impl<M> CanEditMessageCaption for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn edit_caption<'s, T>(&self, caption: T) -> EditMessageCaption<'s> where
T: Into<Cow<'s, str>>,
[src]
T: Into<Cow<'s, str>>,
impl<M> CanEditMessageLiveLocation for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn edit_live_location(
&self,
latitude: f32,
longitude: f32
) -> EditMessageLiveLocation
[src]
&self,
latitude: f32,
longitude: f32
) -> EditMessageLiveLocation
impl<M> CanEditMessageReplyMarkup for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn edit_reply_markup<R>(
&self,
reply_markup: Option<R>
) -> EditMessageReplyMarkup where
R: Into<ReplyMarkup>,
[src]
&self,
reply_markup: Option<R>
) -> EditMessageReplyMarkup where
R: Into<ReplyMarkup>,
impl<M> CanEditMessageText for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
impl<M> CanForwardMessage for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn forward<T>(&self, to: T) -> ForwardMessage where
T: ToChatRef,
[src]
T: ToChatRef,
impl<M> CanPinMessage for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn pin(&self) -> PinChatMessage
[src]
impl<M> CanReplySendAudio for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn audio_reply<'c, 'p, 't, T>(&self, audio: T) -> SendAudio<'c, 'p, 't> where
T: Into<InputFile>,
[src]
T: Into<InputFile>,
impl<M> CanReplySendContact for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn contact_reply<'p, 'f, 'l, P, F>(
&self,
phone_number: P,
first_name: F
) -> SendContact<'p, 'f, 'l> where
P: 'p + Into<Cow<'p, str>>,
F: 'f + Into<Cow<'f, str>>,
[src]
&self,
phone_number: P,
first_name: F
) -> SendContact<'p, 'f, 'l> where
P: 'p + Into<Cow<'p, str>>,
F: 'f + Into<Cow<'f, str>>,
impl<M> CanReplySendDocument for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn document_reply<'c, T>(&self, document: T) -> SendDocument<'c> where
T: Into<InputFile>,
[src]
T: Into<InputFile>,
impl<M> CanReplySendLocation for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn location_reply(&self, latitude: f32, longitude: f32) -> SendLocation
[src]
impl<M> CanReplySendMessage for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn text_reply<'s, T>(&self, text: T) -> SendMessage<'s> where
T: Into<Cow<'s, str>>,
[src]
T: Into<Cow<'s, str>>,
impl<M> CanReplySendPhoto for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn photo_reply<'c, T>(&self, photo: T) -> SendPhoto<'c> where
T: Into<InputFile>,
[src]
T: Into<InputFile>,
impl<M> CanReplySendPoll for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn poll_reply<'q, 'o, 'e, Q, O>(
&self,
question: Q,
options: Vec<O, Global>
) -> SendPoll<'q, 'o, 'e> where
O: Into<Cow<'o, str>>,
Q: Into<Cow<'q, str>>,
[src]
&self,
question: Q,
options: Vec<O, Global>
) -> SendPoll<'q, 'o, 'e> where
O: Into<Cow<'o, str>>,
Q: Into<Cow<'q, str>>,
impl<M> CanReplySendVenue for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn venue_reply<'t, 'a, 'f, T, A>(
&self,
latitude: f32,
longitude: f32,
title: T,
address: A
) -> SendVenue<'t, 'a, 'f> where
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
[src]
&self,
latitude: f32,
longitude: f32,
title: T,
address: A
) -> SendVenue<'t, 'a, 'f> where
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
impl<M> CanReplySendVideo for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn video_reply<'c, T>(&self, video: T) -> SendVideo<'c> where
T: Into<InputFile>,
[src]
T: Into<InputFile>,
impl<M> CanStopMessageLiveLocation for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn stop_live_location(&self) -> StopMessageLiveLocation
[src]
impl<M> CanStopPoll for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,