reopenForumTopic method
Use this method to reopen a closed topic in a forum supergroup chat.
The bot must be an administrator in the chat for this to work and must have the canManageTopics
administrator rights, unless it is the creator of the topic.
Returns True on success.
Implementation
Future<bool> reopenForumTopic(dynamic chatId, String messageThreadId) async {
if (chatId is! String && chatId is! int) {
return Future.error(TelegramException(
'Attribute \'chatId\' can only be either type of String or int'));
}
var requestUrl = _apiUri('reopenForumTopic');
var body = <String, dynamic>{
'chat_id': chatId,
'message_threadId': messageThreadId,
};
return await HttpClient.httpPost(requestUrl, body: body);
}