pub struct QuickReplyMessage {
pub id: i64,
pub sending_state: Option<MessageSendingState>,
pub can_be_edited: bool,
pub reply_to_message_id: i64,
pub via_bot_user_id: i64,
pub media_album_id: i64,
pub content: MessageContent,
pub reply_markup: Option<ReplyMarkup>,
}
Expand description
Describes a message that can be used for quick reply
Fields§
§id: i64
Unique message identifier among all quick replies
sending_state: Option<MessageSendingState>
The sending state of the message; may be null if the message isn’t being sent and didn’t fail to be sent
can_be_edited: bool
True, if the message can be edited
reply_to_message_id: i64
The identifier of the quick reply message to which the message replies; 0 if none
via_bot_user_id: i64
If non-zero, the user identifier of the bot through which this message was sent
media_album_id: i64
Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums
content: MessageContent
Content of the message
reply_markup: Option<ReplyMarkup>
Inline keyboard reply markup for the message; may be null if none
Trait Implementations§
Source§impl Clone for QuickReplyMessage
impl Clone for QuickReplyMessage
Source§fn clone(&self) -> QuickReplyMessage
fn clone(&self) -> QuickReplyMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QuickReplyMessage
impl Debug for QuickReplyMessage
Source§impl<'de> Deserialize<'de> for QuickReplyMessage
impl<'de> Deserialize<'de> for QuickReplyMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for QuickReplyMessage
impl PartialEq for QuickReplyMessage
Source§impl Serialize for QuickReplyMessage
impl Serialize for QuickReplyMessage
impl StructuralPartialEq for QuickReplyMessage
Auto Trait Implementations§
impl Freeze for QuickReplyMessage
impl RefUnwindSafe for QuickReplyMessage
impl Send for QuickReplyMessage
impl Sync for QuickReplyMessage
impl Unpin for QuickReplyMessage
impl UnwindSafe for QuickReplyMessage
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