Struct teloxide_core::payloads::DeleteChatPhoto
source · pub struct DeleteChatPhoto {
pub chat_id: Recipient,
}
Expand description
Use this method to delete 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. Returns True on success.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
Implementations§
Trait Implementations§
source§impl Clone for DeleteChatPhoto
impl Clone for DeleteChatPhoto
source§impl Debug for DeleteChatPhoto
impl Debug for DeleteChatPhoto
source§impl Hash for DeleteChatPhoto
impl Hash for DeleteChatPhoto
source§impl PartialEq<DeleteChatPhoto> for DeleteChatPhoto
impl PartialEq<DeleteChatPhoto> for DeleteChatPhoto
source§fn eq(&self, other: &DeleteChatPhoto) -> bool
fn eq(&self, other: &DeleteChatPhoto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for DeleteChatPhoto
impl Payload for DeleteChatPhoto
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for DeleteChatPhoto
impl Serialize for DeleteChatPhoto
impl Eq for DeleteChatPhoto
impl StructuralEq for DeleteChatPhoto
impl StructuralPartialEq for DeleteChatPhoto
Auto Trait Implementations§
impl RefUnwindSafe for DeleteChatPhoto
impl Send for DeleteChatPhoto
impl Sync for DeleteChatPhoto
impl Unpin for DeleteChatPhoto
impl UnwindSafe for DeleteChatPhoto
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.