pub struct DeclineSuggestedPost { /* private fields */ }Expand description
Declines a suggested post in a direct messages chat.
The bot must have the ‘can_manage_direct_messages’ administrator right in the corresponding channel chat.
Implementations§
Source§impl DeclineSuggestedPost
impl DeclineSuggestedPost
Sourcepub fn new(chat_id: Integer, message_id: Integer) -> Self
pub fn new(chat_id: Integer, message_id: Integer) -> Self
Creates a new DeclineSuggestedPost.
§Arguments
chat_id- Unique identifier for the target direct messages chatmessage_id- Identifier of a suggested post message to decline
Sourcepub fn with_comment<T>(self, value: T) -> Self
pub fn with_comment<T>(self, value: T) -> Self
Sets a new comment.
§Arguments
value- Comment for the creator of the suggested post; 0-128 characters.
Trait Implementations§
Source§impl Clone for DeclineSuggestedPost
impl Clone for DeclineSuggestedPost
Source§fn clone(&self) -> DeclineSuggestedPost
fn clone(&self) -> DeclineSuggestedPost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeclineSuggestedPost
impl Debug for DeclineSuggestedPost
Source§impl Method for DeclineSuggestedPost
impl Method for DeclineSuggestedPost
Auto Trait Implementations§
impl Freeze for DeclineSuggestedPost
impl RefUnwindSafe for DeclineSuggestedPost
impl Send for DeclineSuggestedPost
impl Sync for DeclineSuggestedPost
impl Unpin for DeclineSuggestedPost
impl UnsafeUnpin for DeclineSuggestedPost
impl UnwindSafe for DeclineSuggestedPost
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