TelegramBots icon indicating copy to clipboard operation
TelegramBots copied to clipboard

Since 'abilities' is of type 'ImmutableMap', it cannot be added dynamically

Open Aiden-777 opened this issue 1 year ago • 1 comments

https://github.com/rubenlagus/TelegramBots/blob/f343d17ae4d3b793cb70ed51bd2cc2e05c2a6e4a/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/bot/BaseAbilityBot.java#L364-L373

Aiden-777 avatar Dec 21 '23 17:12 Aiden-777

I guess it's on purpose. But the bigger question I have is why is this collected via reflection at all rather than implementing a method like Set<Ability> getAbilities in the BaseAbilityBot interface.

Haarolean avatar Jan 10 '24 14:01 Haarolean