Struct botapi::gen_methods::CallSendDice
source · pub struct CallSendDice<'a> { /* private fields */ }
Implementations§
source§impl<'a> CallSendDice<'a>
impl<'a> CallSendDice<'a>
sourcepub fn chat_id(self, chat_id: i64) -> Self
pub fn chat_id(self, chat_id: i64) -> Self
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
sourcepub fn message_thread_id(self, message_thread_id: i64) -> Self
pub fn message_thread_id(self, message_thread_id: i64) -> Self
Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
sourcepub fn emoji(self, emoji: &'a str) -> Self
pub fn emoji(self, emoji: &'a str) -> Self
Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, “🏀”, “⚽”, “🎳”, or “🎰”. Dice can have values 1-6 for “🎲”, “🎯” and “🎳”, values 1-5 for “🏀” and “⚽”, and values 1-64 for “🎰”. Defaults to “🎲”
sourcepub fn disable_notification(self, disable_notification: bool) -> Self
pub fn disable_notification(self, disable_notification: bool) -> Self
Sends the message silently. Users will receive a notification with no sound.
sourcepub fn protect_content(self, protect_content: bool) -> Self
pub fn protect_content(self, protect_content: bool) -> Self
Protects the contents of the sent message from forwarding
sourcepub fn reply_to_message_id(self, reply_to_message_id: i64) -> Self
pub fn reply_to_message_id(self, reply_to_message_id: i64) -> Self
If the message is a reply, ID of the original message
sourcepub fn allow_sending_without_reply(
self,
allow_sending_without_reply: bool
) -> Self
pub fn allow_sending_without_reply( self, allow_sending_without_reply: bool ) -> Self
Pass True if the message should be sent even if the specified replied-to message is not found
sourcepub fn reply_markup(self, reply_markup: &'a EReplyMarkup) -> Self
pub fn reply_markup(self, reply_markup: &'a EReplyMarkup) -> Self
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.