Skip to main content

ronami_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;
6use crate::types::Recipient;
7use crate::types::True;
8use crate::types::UserId;
9
10impl_payload! {
11    /// 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.
12    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13    pub DeleteMessageReaction (DeleteMessageReactionSetters) => True {
14        required {
15            /// Unique identifier for the target chat or username of the target supergroup in the format `@username`
16            pub chat_id: Recipient [into],
17            /// Identifier of the target message
18            pub message_id: i32,
19        }
20        optional {
21            /// Identifier of the user whose reaction will be removed, if the reaction was added by a user
22            pub user_id: UserId,
23            /// Identifier of the chat whose reaction will be removed, if the reaction was added by a chat
24            pub actor_chat_id: ChatId [into],
25        }
26    }
27}