deleteChatPhoto method

Future<bool> deleteChatPhoto(
  1. ChatID chatId
)
inherited

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.

Implementation

Future<bool> deleteChatPhoto(ChatID chatId) {
  return _client.apiCall(_token, 'deleteChatPhoto', {
    'chat_id': chatId,
  });
}