pub struct SetMessageReaction {
pub chat_id: Recipient,
pub message_id: MessageId,
pub reaction: Option<Vec<ReactionType>>,
pub is_big: Option<bool>,
}Expand description
Use this method to change the chosen reactions on a message. Service messages can’t be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success.
Fields§
§chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_id: MessageIdIdentifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.
reaction: Option<Vec<ReactionType>>New list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators.
is_big: Option<bool>Pass True to set the reaction with a big animation
Implementations§
Trait Implementations§
Source§impl Clone for SetMessageReaction
impl Clone for SetMessageReaction
Source§fn clone(&self) -> SetMessageReaction ⓘ
fn clone(&self) -> SetMessageReaction ⓘ
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SetMessageReaction
impl Debug for SetMessageReaction
impl Eq for SetMessageReaction
Source§impl Hash for SetMessageReaction
impl Hash for SetMessageReaction
Source§impl PartialEq for SetMessageReaction
impl PartialEq for SetMessageReaction
Source§impl Payload for SetMessageReaction
impl Payload for SetMessageReaction
Source§const NAME: &'static str = "SetMessageReaction"
const NAME: &'static str = "SetMessageReaction"
EditMessageTextInline).Source§const TELEGRAM_METHOD: &'static str = Self::NAME
const TELEGRAM_METHOD: &'static str = Self::NAME
EditMessageText). Defaults to the payload name.Source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates with
big timeout), the minimum timeout that should be used.Source§impl Serialize for SetMessageReaction
impl Serialize for SetMessageReaction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SetMessageReaction
Auto Trait Implementations§
impl Forget for SetMessageReaction
impl Freeze for SetMessageReaction
impl Move for SetMessageReaction
impl RefUnwindSafe for SetMessageReaction
impl Send for SetMessageReactionwhere
RawVecInner: Send,
impl Sync for SetMessageReactionwhere
RawVecInner: Sync,
impl Unpin for SetMessageReaction
impl UnsafeUnpin for SetMessageReactionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ReactionType>: UnsafeUnpin,
impl UnwindSafe for SetMessageReactionwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
Source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
Source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeSend for T
impl<T> MaybeSync for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<P> SetMessageReactionSetters for Pwhere
P: HasPayload<Payload = SetMessageReaction>,
impl<P> SetMessageReactionSetters for Pwhere
P: HasPayload<Payload = SetMessageReaction>,
Source§fn message_id(self, value: MessageId) -> Self
fn message_id(self, value: MessageId) -> Self
message_id field.