TelegramBots icon indicating copy to clipboard operation
TelegramBots copied to clipboard

[AbilityBot] DEFAULT constant is protected in AbilityBot class

Open LukasPrediger opened this issue 4 years ago • 0 comments

In order to declare a "default" Ability, the name has to be set to the string "default". According to the docs theres a handy Constant for this called DEFAULT. This constant is protected and therefore not useable in AbilityExtensions

See: https://github.com/rubenlagus/TelegramBots/blob/b03fe98798192840402168e6e422d1b4cee48279/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/bot/BaseAbilityBot.java#L88

LukasPrediger avatar Nov 23 '20 12:11 LukasPrediger