pub struct SendChecklist {
pub business_connection_id: BusinessConnectionId,
pub chat_id: ChatId,
pub checklist: InputChecklist,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub message_effect_id: Option<EffectId>,
pub reply_parameters: Option<ReplyParameters>,
pub reply_markup: Option<ReplyMarkup>,
}Expand description
Use this method to send a checklist on behalf of a connected business account. On success, the sent Message is returned.
Fields§
§business_connection_id: BusinessConnectionIdUnique identifier of the business connection on behalf of which the message will be sent
chat_id: ChatIdUnique identifier for the target chat
checklist: InputChecklistChecklist to send
disable_notification: Option<bool>Sends the message silently. Users will receive a notification with no sound
protect_content: Option<bool>Protects the contents of sent messages from forwarding and saving
message_effect_id: Option<EffectId>Unique identifier of the message effect to be added to the message
reply_parameters: Option<ReplyParameters>Description of the message to reply to
reply_markup: Option<ReplyMarkup>An inline keyboard
Implementations§
Source§impl SendChecklist
impl SendChecklist
pub fn new( business_connection_id: BusinessConnectionId, chat_id: impl Into<ChatId>, checklist: InputChecklist, ) -> Self
Trait Implementations§
Source§impl Clone for SendChecklist
impl Clone for SendChecklist
Source§impl Debug for SendChecklist
impl Debug for SendChecklist
impl Eq for SendChecklist
Source§impl Hash for SendChecklist
impl Hash for SendChecklist
Source§impl PartialEq for SendChecklist
impl PartialEq for SendChecklist
Source§impl Payload for SendChecklist
impl Payload for SendChecklist
Source§const NAME: &'static str = "SendChecklist"
const NAME: &'static str = "SendChecklist"
Name of the Rust payload (for example,
EditMessageTextInline).Source§const TELEGRAM_METHOD: &'static str = Self::NAME
const TELEGRAM_METHOD: &'static str = Self::NAME
Case-insensitive Telegram method called on the wire (for example,
EditMessageText). Defaults to the payload name.Source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates with
big timeout), the minimum timeout that should be used.Source§impl Serialize for SendChecklist
impl Serialize for SendChecklist
impl StructuralPartialEq for SendChecklist
Auto Trait Implementations§
impl Forget for SendChecklist
impl Freeze for SendChecklistwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<MessageEntity>: Freeze,
PhantomData<InputChecklistTask>: Freeze,
PhantomData<RichText>: Freeze,
PhantomData<Vec<InlineKeyboardButton>>: Freeze,
PhantomData<Vec<KeyboardButton>>: Freeze,
impl Move for SendChecklist
impl RefUnwindSafe for SendChecklist
impl Send for SendChecklist
impl Sync for SendChecklist
impl Unpin for SendChecklist
impl UnsafeUnpin for SendChecklistwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MessageEntity>: UnsafeUnpin,
PhantomData<InputChecklistTask>: UnsafeUnpin,
PhantomData<RichText>: UnsafeUnpin,
PhantomData<Vec<InlineKeyboardButton>>: UnsafeUnpin,
PhantomData<Vec<KeyboardButton>>: UnsafeUnpin,
impl UnwindSafe for SendChecklistwhere
RawVecInner: UnwindSafe,
BoxRaw<RichTextKind>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
Source§fn payload_mut(&mut self) -> &mut P
fn payload_mut(&mut self) -> &mut P
Gain mutable access to the underlying payload.
Source§fn payload_ref(&self) -> &P
fn payload_ref(&self) -> &P
Gain immutable access to the underlying payload.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<P> SendChecklistSetters for Pwhere
P: HasPayload<Payload = SendChecklist>,
impl<P> SendChecklistSetters for Pwhere
P: HasPayload<Payload = SendChecklist>,
Source§fn business_connection_id(self, value: BusinessConnectionId) -> Self
fn business_connection_id(self, value: BusinessConnectionId) -> Self
Setter for
business_connection_id field.Source§fn checklist(self, value: InputChecklist) -> Self
fn checklist(self, value: InputChecklist) -> Self
Setter for
checklist field.Source§fn disable_notification(self, value: bool) -> Self
fn disable_notification(self, value: bool) -> Self
Setter for
disable_notification field.Source§fn protect_content(self, value: bool) -> Self
fn protect_content(self, value: bool) -> Self
Setter for
protect_content field.Source§fn message_effect_id(self, value: EffectId) -> Self
fn message_effect_id(self, value: EffectId) -> Self
Setter for
message_effect_id field.Source§fn reply_parameters(self, value: ReplyParameters) -> Self
fn reply_parameters(self, value: ReplyParameters) -> Self
Setter for
reply_parameters field.Source§fn reply_markup<T>(self, value: T) -> Selfwhere
T: Into<ReplyMarkup>,
fn reply_markup<T>(self, value: T) -> Selfwhere
T: Into<ReplyMarkup>,
Setter for
reply_markup field.