getForumTopics method
Get Forum Topics.
ID: 0de560d1
.
Implementation
Future<Result<MessagesForumTopicsBase>> getForumTopics({
required InputChannelBase channel,
String? q,
required DateTime offsetDate,
required int offsetId,
required int offsetTopic,
required int limit,
}) async {
// Preparing the request.
final request = ChannelsGetForumTopics(
channel: channel,
q: q,
offsetDate: offsetDate,
offsetId: offsetId,
offsetTopic: offsetTopic,
limit: limit,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<MessagesForumTopicsBase>();
}