pub struct OutgoingMessage {
pub chat_id: i64,
pub text: String,
pub buttons: Vec<Vec<InlineButton>>,
pub disable_link_preview: bool,
}Expand description
A message to send: text, optionally an inline keyboard, optionally with the link preview suppressed.
Fields§
§chat_id: i64Where the message goes: a user or chat id, negative for groups and channels.
text: StringThe message text, 1..=4096 characters. Sent verbatim; formatting is out of scope for this adapter.
The inline keyboard, row by row.
disable_link_preview: boolWhether the link preview is suppressed. Sent as
link_preview_options.is_disabled only when true.
Implementations§
Trait Implementations§
Source§impl Clone for OutgoingMessage
impl Clone for OutgoingMessage
Source§impl Debug for OutgoingMessage
impl Debug for OutgoingMessage
Source§impl Default for OutgoingMessage
impl Default for OutgoingMessage
impl Eq for OutgoingMessage
Source§impl PartialEq for OutgoingMessage
impl PartialEq for OutgoingMessage
impl StructuralPartialEq for OutgoingMessage
Auto Trait Implementations§
impl Freeze for OutgoingMessage
impl RefUnwindSafe for OutgoingMessage
impl Send for OutgoingMessage
impl Sync for OutgoingMessage
impl Unpin for OutgoingMessage
impl UnsafeUnpin for OutgoingMessage
impl UnwindSafe for OutgoingMessage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.