searchPosts method
Future<Result<StoriesFoundStoriesBase> >
searchPosts({
- String? hashtag,
- MediaAreaBase? area,
- InputPeerBase? peer,
- required String offset,
- 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>();
}