pub struct UpdatePendingTextMessage {
pub chat_id: i64,
pub forum_topic_id: i32,
pub draft_id: i64,
pub text: FormattedText,
}Expand description
A new pending text message was received in a chat with a bot. The message must be shown in the chat for at most getOption(“pending_text_message_period”) seconds, replace any other pending message with the same draft_id, and be deleted whenever any incoming message from the bot in the message thread is received
Fields§
§chat_id: i64Chat identifier
forum_topic_id: i32The forum topic identifier in which the message will be sent; 0 if none
draft_id: i64Unique identifier of the message draft within the message thread
text: FormattedTextText of the pending message
Trait Implementations§
Source§impl Clone for UpdatePendingTextMessage
impl Clone for UpdatePendingTextMessage
Source§fn clone(&self) -> UpdatePendingTextMessage
fn clone(&self) -> UpdatePendingTextMessage
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 UpdatePendingTextMessage
impl Debug for UpdatePendingTextMessage
Source§impl Default for UpdatePendingTextMessage
impl Default for UpdatePendingTextMessage
Source§fn default() -> UpdatePendingTextMessage
fn default() -> UpdatePendingTextMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdatePendingTextMessage
impl<'de> Deserialize<'de> for UpdatePendingTextMessage
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 UpdatePendingTextMessage
impl PartialEq for UpdatePendingTextMessage
Source§impl Serialize for UpdatePendingTextMessage
impl Serialize for UpdatePendingTextMessage
impl StructuralPartialEq for UpdatePendingTextMessage
Auto Trait Implementations§
impl Freeze for UpdatePendingTextMessage
impl RefUnwindSafe for UpdatePendingTextMessage
impl Send for UpdatePendingTextMessage
impl Sync for UpdatePendingTextMessage
impl Unpin for UpdatePendingTextMessage
impl UnsafeUnpin for UpdatePendingTextMessage
impl UnwindSafe for UpdatePendingTextMessage
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