getChannelRecommendations method

Future<Result<MessagesChatsBase>> getChannelRecommendations({
  1. required InputChannelBase channel,
})

Get Channel Recommendations.

ID: 83b70d97.

Implementation

Future<Result<MessagesChatsBase>> getChannelRecommendations({
  required InputChannelBase channel,
}) async {
  // Preparing the request.
  final request = ChannelsGetChannelRecommendations(
    channel: channel,
  );

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

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