Skip to main content

teloxide_core/payloads/
delete_message_reaction.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{ChatId, MessageId, Recipient, True, UserId};
6
7impl_payload! {
8    /// Use this method to remove a reaction from a message in a group or a supergroup chat. The bot must have the 'can_delete_messages' administrator right in the chat. Returns _True_ on success.
9    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10    pub DeleteMessageReaction (DeleteMessageReactionSetters) => True {
11        required {
12            /// Unique identifier for the target chat or username of the target supergroup in the format `@username`
13            pub chat_id: Recipient [into],
14            /// Identifier of the target message
15            #[serde(flatten)]
16            pub message_id: MessageId,
17        }
18        optional {
19            /// Identifier of the user whose reaction will be removed, if the reaction was added by a user
20            pub user_id: UserId,
21            /// Identifier of the chat whose reaction will be removed, if the reaction was added by a chat
22            pub actor_chat_id: ChatId [into],
23        }
24    }
25}