editTitle method

Future<Result<UpdatesBase>> editTitle({
  1. required InputChannelBase channel,
  2. required String title,
})

Edit Title.

ID: 566decd0.

Implementation

Future<Result<UpdatesBase>> editTitle({
  required InputChannelBase channel,
  required String title,
}) async {
  // Preparing the request.
  final request = ChannelsEditTitle(channel: channel, title: title);

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

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