reorderPinnedForumTopics method

Future<Result<UpdatesBase>> reorderPinnedForumTopics({
  1. required bool force,
  2. required InputChannelBase channel,
  3. required List<int> order,
})

Reorder Pinned Forum Topics.

ID: 2950a18f.

Implementation

Future<Result<UpdatesBase>> reorderPinnedForumTopics({
  required bool force,
  required InputChannelBase channel,
  required List<int> order,
}) async {
  // Preparing the request.
  final request = ChannelsReorderPinnedForumTopics(
    force: force,
    channel: channel,
    order: order,
  );

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

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