pub struct DeleteBusinessMessages { /* private fields */ }Expand description
Deletes messages on behalf of a business account.
Requires the can_delete_outgoing_messages business bot right to delete messages sent by the bot itself,
or the can_delete_all_messages business bot right to delete any message.
Implementations§
Source§impl DeleteBusinessMessages
impl DeleteBusinessMessages
Sourcepub fn new<A, B>(business_connection_id: A, message_ids: B) -> Self
pub fn new<A, B>(business_connection_id: A, message_ids: B) -> Self
Creates a new DeleteBusinessMessages.
§Arguments
business_connection_id- Unique identifier of the business connection on behalf of which to delete the messages.message_ids- A list of 1-100 identifiers of messages to delete; all messages must be from the same chat; see deleteMessage for limitations on which messages can be deleted.
Trait Implementations§
Source§impl Clone for DeleteBusinessMessages
impl Clone for DeleteBusinessMessages
Source§fn clone(&self) -> DeleteBusinessMessages
fn clone(&self) -> DeleteBusinessMessages
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 DeleteBusinessMessages
impl Debug for DeleteBusinessMessages
Source§impl Method for DeleteBusinessMessages
impl Method for DeleteBusinessMessages
Auto Trait Implementations§
impl Freeze for DeleteBusinessMessages
impl RefUnwindSafe for DeleteBusinessMessages
impl Send for DeleteBusinessMessages
impl Sync for DeleteBusinessMessages
impl Unpin for DeleteBusinessMessages
impl UnsafeUnpin for DeleteBusinessMessages
impl UnwindSafe for DeleteBusinessMessages
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