Struct telegram_bot2::models::ForwardMessageBuilder
source · pub struct ForwardMessageBuilder { /* private fields */ }Expand description
Builder for the ForwardMessage structure
Implementations§
source§impl ForwardMessageBuilder
impl ForwardMessageBuilder
sourcepub fn new(chat_id: ChatId, from_chat_id: ChatId, message_id: i64) -> Self
pub fn new(chat_id: ChatId, from_chat_id: ChatId, message_id: i64) -> Self
Instantiate the builder with the fields chat_id, message_thread_id, from_chat_id, disable_notification, protect_content, message_id
sourcepub fn message_thread_id(self, val: i64) -> Self
pub fn message_thread_id(self, val: i64) -> Self
Set the field message_thread_id to the given value
sourcepub fn disable_notification(self, val: bool) -> Self
pub fn disable_notification(self, val: bool) -> Self
Set the field disable_notification to the given value
sourcepub fn protect_content(self, val: bool) -> Self
pub fn protect_content(self, val: bool) -> Self
Set the field protect_content to the given value
Trait Implementations§
source§impl Builder for ForwardMessageBuilder
impl Builder for ForwardMessageBuilder
§type Value = ForwardMessage
type Value = ForwardMessage
Type to be built