pub struct MessageSendOptions {
pub disable_notification: bool,
pub from_background: bool,
pub protect_content: bool,
pub update_order_of_installed_sticker_sets: bool,
pub scheduling_state: Option<MessageSchedulingState>,
pub sending_id: i32,
pub only_preview: bool,
}
Expand description
Options to be used when a message is sent
Fields§
§disable_notification: bool
Pass true to disable notification for the message
from_background: bool
Pass true if the message is sent from the background
protect_content: bool
Pass true if the content of the message must be protected from forwarding and saving; for bots only
update_order_of_installed_sticker_sets: bool
Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum
scheduling_state: Option<MessageSchedulingState>
Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can’t be scheduled
sending_id: i32
Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
only_preview: bool
Pass true to get a fake message instead of actually sending them
Trait Implementations§
Source§impl Clone for MessageSendOptions
impl Clone for MessageSendOptions
Source§fn clone(&self) -> MessageSendOptions
fn clone(&self) -> MessageSendOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more