Struct tgbot::types::DeleteChatPhoto
source · pub struct DeleteChatPhoto { /* private fields */ }
Expand description
Deletes a chat photo.
Photos can’t be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
§Notes
In regular groups (non-supergroups), this method will only work if the ‘All Members Are Admins’ setting is off in the target group.
Implementations§
Trait Implementations§
source§impl Clone for DeleteChatPhoto
impl Clone for DeleteChatPhoto
source§fn clone(&self) -> DeleteChatPhoto
fn clone(&self) -> DeleteChatPhoto
Returns a copy 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 DeleteChatPhoto
impl Debug for DeleteChatPhoto
source§impl Method for DeleteChatPhoto
impl Method for DeleteChatPhoto
Auto Trait Implementations§
impl Freeze for DeleteChatPhoto
impl RefUnwindSafe for DeleteChatPhoto
impl Send for DeleteChatPhoto
impl Sync for DeleteChatPhoto
impl Unpin for DeleteChatPhoto
impl UnwindSafe for DeleteChatPhoto
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