searchPosts method

Future<Result<StoriesFoundStoriesBase>> searchPosts({
  1. String? hashtag,
  2. MediaAreaBase? area,
  3. InputPeerBase? peer,
  4. required String offset,
  5. required int limit,
})

Search Posts.

ID: d1810907.

Implementation

Future<Result<StoriesFoundStoriesBase>> searchPosts({
  String? hashtag,
  MediaAreaBase? area,
  InputPeerBase? peer,
  required String offset,
  required int limit,
}) async {
  // Preparing the request.
  final request = StoriesSearchPosts(
    hashtag: hashtag,
    area: area,
    peer: peer,
    offset: offset,
    limit: limit,
  );

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

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