delete_chat_photo()¶
- Client.delete_chat_photo()¶
Delete a chat photo.
You must be an administrator in the chat for this to work and must have the appropriate admin rights.
Usable by Users Bots
- Parameters:¶
chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat. You can also use chat public link in form of t.me/<username> (str).- Returns:¶
bool
– True on success.- Raises:¶
ValueError – if a chat_id belongs to user.
Example
await app.delete_chat_photo(chat_id)