pub struct SendPollBuilder<'a> { /* private fields */ }Expand description
Builder for the [sendPoll] API method.
Implementations§
Source§impl<'a> SendPollBuilder<'a>
impl<'a> SendPollBuilder<'a>
Sourcepub fn is_anonymous(self, val: bool) -> Self
pub fn is_anonymous(self, val: bool) -> Self
Sets the is_anonymous parameter.
Sourcepub fn allows_multiple_answers(self, val: bool) -> Self
pub fn allows_multiple_answers(self, val: bool) -> Self
Sets the allows_multiple_answers parameter.
Sourcepub fn correct_option_id(self, val: i64) -> Self
pub fn correct_option_id(self, val: i64) -> Self
Sets the correct_option_id parameter.
Sourcepub fn explanation(self, val: impl Into<String>) -> Self
pub fn explanation(self, val: impl Into<String>) -> Self
Sets the explanation parameter.
Sourcepub fn explanation_parse_mode(self, val: impl Into<String>) -> Self
pub fn explanation_parse_mode(self, val: impl Into<String>) -> Self
Sets the explanation_parse_mode parameter.
Sourcepub fn explanation_entities(self, val: Vec<MessageEntity>) -> Self
pub fn explanation_entities(self, val: Vec<MessageEntity>) -> Self
Sets the explanation_entities parameter.
Sourcepub fn open_period(self, val: i64) -> Self
pub fn open_period(self, val: i64) -> Self
Sets the open_period parameter.
Sourcepub fn close_date(self, val: i64) -> Self
pub fn close_date(self, val: i64) -> Self
Sets the close_date parameter.
Sourcepub fn disable_notification(self, val: bool) -> Self
pub fn disable_notification(self, val: bool) -> Self
Sets the disable_notification parameter.
Sourcepub fn protect_content(self, val: bool) -> Self
pub fn protect_content(self, val: bool) -> Self
Sets the protect_content parameter.
Sourcepub fn reply_parameters(self, val: ReplyParameters) -> Self
pub fn reply_parameters(self, val: ReplyParameters) -> Self
Sets the reply_parameters parameter.
Sourcepub fn reply_markup(self, val: Value) -> Self
pub fn reply_markup(self, val: Value) -> Self
Sets the reply_markup parameter.
Sourcepub fn message_thread_id(self, val: i64) -> Self
pub fn message_thread_id(self, val: i64) -> Self
Sets the message_thread_id parameter.
Sourcepub fn business_connection_id(self, val: impl Into<String>) -> Self
pub fn business_connection_id(self, val: impl Into<String>) -> Self
Sets the business_connection_id parameter.
Sourcepub fn question_parse_mode(self, val: impl Into<String>) -> Self
pub fn question_parse_mode(self, val: impl Into<String>) -> Self
Sets the question_parse_mode parameter.
Sourcepub fn question_entities(self, val: Vec<MessageEntity>) -> Self
pub fn question_entities(self, val: Vec<MessageEntity>) -> Self
Sets the question_entities parameter.
Sourcepub fn message_effect_id(self, val: impl Into<String>) -> Self
pub fn message_effect_id(self, val: impl Into<String>) -> Self
Sets the message_effect_id parameter.
Sourcepub fn allow_paid_broadcast(self, val: bool) -> Self
pub fn allow_paid_broadcast(self, val: bool) -> Self
Sets the allow_paid_broadcast parameter.
Sourcepub fn direct_messages_topic_id(self, val: i64) -> Self
pub fn direct_messages_topic_id(self, val: i64) -> Self
Sets the direct_messages_topic_id parameter.
Sourcepub fn suggested_post_parameters(self, val: SuggestedPostParameters) -> Self
pub fn suggested_post_parameters(self, val: SuggestedPostParameters) -> Self
Sets the suggested_post_parameters parameter.