teloxide_core/payloads/set_message_reaction.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{MessageId, ReactionType, Recipient, True};
6
7impl_payload! {
8 /// 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.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub SetMessageReaction (SetMessageReactionSetters) => True {
11 required {
12 /// Unique identifier for the target chat or username of the target channel (in the format @channelusername)
13 pub chat_id: Recipient [into],
14 /// 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.
15 #[serde(flatten)]
16 pub message_id: MessageId,
17 }
18 optional {
19 /// 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.
20 pub reaction: Vec<ReactionType> [collect],
21 /// Pass True to set the reaction with a big animation
22 pub is_big: bool,
23 }
24 }
25}