ronami_core/payloads/forward_message.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::EffectId;
6use crate::types::Message;
7use crate::types::MessageId;
8use crate::types::Recipient;
9use crate::types::Seconds;
10use crate::types::SuggestedPostParameters;
11use crate::types::ThreadId;
12use crate::types::TopicId;
13
14impl_payload! {
15 /// Use this method to forward messages of any kind. On success, the sent [`Message`] is returned.
16 ///
17 /// [`Message`]: crate::types::Message
18 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
19 pub ForwardMessage (ForwardMessageSetters) => Message {
20 required {
21 /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
22 pub chat_id: Recipient [into],
23 /// Unique identifier for the chat where the original message was sent (or channel username in the format `@channelusername`)
24 pub from_chat_id: Recipient [into],
25 /// Message identifier in the chat specified in _from\_chat\_id_
26 #[serde(flatten)]
27 pub message_id: MessageId,
28 }
29 optional {
30 /// Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
31 pub message_thread_id: ThreadId,
32 /// Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
33 pub direct_messages_topic_id: TopicId,
34 /// New start timestamp for the forwarded video in the message
35 pub video_start_timestamp: Seconds,
36 /// Sends the message [silently]. Users will receive a notification with no sound.
37 ///
38 /// [silently]: https://telegram.org/blog/channels-2-0#silent-messages
39 pub disable_notification: bool,
40 /// Protects the contents of sent messages from forwarding and saving
41 pub protect_content: bool,
42 /// Unique identifier of the message effect to be added to the message; for private chats only
43 pub message_effect_id: EffectId,
44 /// An object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
45 pub suggested_post_parameters: SuggestedPostParameters,
46 }
47 }
48}