editPhoto method

Future<Result<UpdatesBase>> editPhoto({
  1. required InputChannelBase channel,
  2. required InputChatPhotoBase photo,
})

Edit Photo.

ID: f12e57c9.

Implementation

Future<Result<UpdatesBase>> editPhoto({
  required InputChannelBase channel,
  required InputChatPhotoBase photo,
}) async {
  // Preparing the request.
  final request = ChannelsEditPhoto(
    channel: channel,
    photo: photo,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<UpdatesBase>();
}