Skip to content

Release 1.0.13

Choose a tag to compare

@bvdcode bvdcode released this 03 Aug 10:27
· 62 commits to main since this release
Add authorization mechanism for Telegram bot messages

Introduce a new authorization mechanism to enhance bot security.
- Add `TelegramBot.Attributes` namespace in `BotApp.cs`.
- Implement `AuthorizeAttribute` to mark methods/controllers.
- Retrieve `IBotAuthorizationHandler` for authorization logic.
- Handle unauthorized access without executing the method.
- Update parameter count check to handle null `args`.