setChatMenuButton method

Future<bool> setChatMenuButton({
  1. ChatID? chatId,
  2. MenuButton? menuButton,
})
inherited

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({
  ChatID? chatId,
  MenuButton? menuButton,
}) {
  return _client.apiCall(_token, 'setChatMenuButton', {
    'chat_id': chatId,
    'menu_button': menuButton,
  });
}