setChatPhoto method

Future<bool> setChatPhoto(
  1. ChatID chatId,
  2. HttpFile photo
)
inherited

Use this method to set a new profile photo for the chat.

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> setChatPhoto(ChatID chatId, HttpFile photo) {
  return _client.apiCall(_token, 'setChatPhoto', {
    'chat_id': chatId,
    'photo': photo,
  });
}