Struct telegram_bot2::models::SendGameBuilder
source · pub struct SendGameBuilder { /* private fields */ }Expand description
Builder for the SendGame structure
Implementations§
source§impl SendGameBuilder
impl SendGameBuilder
sourcepub fn new(chat_id: i64, game_short_name: String) -> Self
pub fn new(chat_id: i64, game_short_name: String) -> Self
Instantiate the builder with the fields chat_id, game_short_name, disable_notification, protect_content, reply_to_message_id, allow_sending_without_reply, reply_markup
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
sourcepub fn reply_to_message_id(self, val: i64) -> Self
pub fn reply_to_message_id(self, val: i64) -> Self
Set the field reply_to_message_id to the given value
sourcepub fn allow_sending_without_reply(self, val: bool) -> Self
pub fn allow_sending_without_reply(self, val: bool) -> Self
Set the field allow_sending_without_reply to the given value
sourcepub fn reply_markup(self, val: InlineKeyboardMarkup) -> Self
pub fn reply_markup(self, val: InlineKeyboardMarkup) -> Self
Set the field reply_markup to the given value