searchPosts method
Search Posts.
ID: f2c4f24d.
Implementation
Future<Result<MessagesMessagesBase>> searchPosts({
String? hashtag,
String? query,
required int offsetRate,
required InputPeerBase offsetPeer,
required int offsetId,
required int limit,
int? allowPaidStars,
}) async {
// Preparing the request.
final request = ChannelsSearchPosts(
hashtag: hashtag,
query: query,
offsetRate: offsetRate,
offsetPeer: offsetPeer,
offsetId: offsetId,
limit: limit,
allowPaidStars: allowPaidStars,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<MessagesMessagesBase>();
}