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