pub struct CopyMessage { /* private fields */ }Expand description
Builder for the copyMessage method.
Implementations§
Source§impl CopyMessage
impl CopyMessage
Sourcepub fn message_thread_id(self, id: i64) -> Self
pub fn message_thread_id(self, id: i64) -> Self
Forum topic thread ID.
Sourcepub fn direct_messages_topic_id(self, id: i64) -> Self
pub fn direct_messages_topic_id(self, id: i64) -> Self
Identifier of a direct messages chat topic.
Sourcepub fn video_start_timestamp(self, ts: i64) -> Self
pub fn video_start_timestamp(self, ts: i64) -> Self
New start timestamp for a copied video.
Sourcepub fn caption(self, c: impl Into<String>) -> Self
pub fn caption(self, c: impl Into<String>) -> Self
Sets the caption (0–1024 characters) for media messages.
Sourcepub fn parse_mode(self, m: ParseMode) -> Self
pub fn parse_mode(self, m: ParseMode) -> Self
Sets the text parse mode (MarkdownV2, HTML, or Markdown).
Sourcepub fn disable_notification(self, v: bool) -> Self
pub fn disable_notification(self, v: bool) -> Self
Sends the message silently — the recipient receives no notification sound.
Sourcepub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
pub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Sourcepub fn allow_paid_broadcast(self, v: bool) -> Self
pub fn allow_paid_broadcast(self, v: bool) -> Self
Allows sending to large audiences at the cost of Telegram Stars.
Sourcepub fn message_effect_id(self, v: impl Into<String>) -> Self
pub fn message_effect_id(self, v: impl Into<String>) -> Self
Attaches a message effect (animated emoji reaction) to the message.
Sourcepub fn suggested_post_parameters(self, v: SuggestedPostParameters) -> Self
pub fn suggested_post_parameters(self, v: SuggestedPostParameters) -> Self
Suggested post parameters for channel direct messages chats.
Sourcepub fn caption_entities(self, entities: Vec<MessageEntity>) -> Self
pub fn caption_entities(self, entities: Vec<MessageEntity>) -> Self
Special entities in the caption, in place of parse_mode.
Sourcepub fn show_caption_above_media(self, v: bool) -> Self
pub fn show_caption_above_media(self, v: bool) -> Self
Shows the caption above the media instead of below it.
Sourcepub fn protect_content(self, v: bool) -> Self
pub fn protect_content(self, v: bool) -> Self
Protects the message from being forwarded or saved.
Sourcepub fn reply_parameters(self, rp: ReplyParameters) -> Self
pub fn reply_parameters(self, rp: ReplyParameters) -> Self
Reply parameters for this message.