setChatMenuButton method
Use this method to change the bot's menu button in a private chat, or the default menu button.
Returns True on success.
Implementation
Future<bool> setChatMenuButton(int? chatId, MenuButton? menuButton) async {
var requestUrl = _apiUri('setChatMenuButton');
var body = <String, dynamic>{
'chat_id': chatId,
'menu_button': jsonEncode(menuButton),
};
return await HttpClient.httpPost(requestUrl, body: body);
}