pub struct SendInvoiceBuilder<'a> { /* private fields */ }Expand description
Builder for the [sendInvoice] API method.
Implementations§
Source§impl<'a> SendInvoiceBuilder<'a>
impl<'a> SendInvoiceBuilder<'a>
Sourcepub fn provider_token(self, val: impl Into<String>) -> Self
pub fn provider_token(self, val: impl Into<String>) -> Self
Sets the provider_token parameter.
Sourcepub fn max_tip_amount(self, val: i64) -> Self
pub fn max_tip_amount(self, val: i64) -> Self
Sets the max_tip_amount parameter.
Sourcepub fn suggested_tip_amounts(self, val: Vec<i64>) -> Self
pub fn suggested_tip_amounts(self, val: Vec<i64>) -> Self
Sets the suggested_tip_amounts parameter.
Sourcepub fn start_parameter(self, val: impl Into<String>) -> Self
pub fn start_parameter(self, val: impl Into<String>) -> Self
Sets the start_parameter parameter.
Sourcepub fn provider_data(self, val: impl Into<String>) -> Self
pub fn provider_data(self, val: impl Into<String>) -> Self
Sets the provider_data parameter.
Sourcepub fn photo_size(self, val: i64) -> Self
pub fn photo_size(self, val: i64) -> Self
Sets the photo_size parameter.
Sourcepub fn photo_width(self, val: i64) -> Self
pub fn photo_width(self, val: i64) -> Self
Sets the photo_width parameter.
Sourcepub fn photo_height(self, val: i64) -> Self
pub fn photo_height(self, val: i64) -> Self
Sets the photo_height parameter.
Sourcepub fn need_phone_number(self, val: bool) -> Self
pub fn need_phone_number(self, val: bool) -> Self
Sets the need_phone_number parameter.
Sourcepub fn need_email(self, val: bool) -> Self
pub fn need_email(self, val: bool) -> Self
Sets the need_email parameter.
Sourcepub fn need_shipping_address(self, val: bool) -> Self
pub fn need_shipping_address(self, val: bool) -> Self
Sets the need_shipping_address parameter.
Sourcepub fn send_phone_number_to_provider(self, val: bool) -> Self
pub fn send_phone_number_to_provider(self, val: bool) -> Self
Sets the send_phone_number_to_provider parameter.
Sourcepub fn send_email_to_provider(self, val: bool) -> Self
pub fn send_email_to_provider(self, val: bool) -> Self
Sets the send_email_to_provider parameter.
Sourcepub fn is_flexible(self, val: bool) -> Self
pub fn is_flexible(self, val: bool) -> Self
Sets the is_flexible 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 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.