getChannelRecommendations method

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

Get Channel Recommendations.

ID: 25a71742.

Implementation

Future<Result<MessagesChatsBase>> getChannelRecommendations({
  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>();
}