Struct teloxide_core::payloads::SetMessageReaction
source · 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: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_id: MessageId
Identifier 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
1.0.0 · 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
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§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
impl Eq for SetMessageReaction
impl StructuralPartialEq for SetMessageReaction
Auto Trait Implementations§
impl Freeze for SetMessageReaction
impl RefUnwindSafe for SetMessageReaction
impl Send for SetMessageReaction
impl Sync for SetMessageReaction
impl Unpin for SetMessageReaction
impl UnwindSafe for SetMessageReaction
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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
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 moresource§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.source§fn reaction<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = ReactionType>,
fn reaction<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = ReactionType>,
reaction
field.