Upgrading BotCommands to new BotCommandScope format

- adding IsKnownBotCommand method to BotBase
- updated UploadBotCommand method to new format
- adding new Commandformat to BotBaseBuilder
- adding AddChatCommand and ClearChatCommand for custom Chat commands
- integrating new checks into FormBaseMessageLoop
This commit is contained in:
FlorianDahn
2022-05-15 23:20:16 +02:00
parent 2c567419ec
commit 707ffd492f
4 changed files with 67 additions and 13 deletions
@@ -324,7 +324,6 @@ namespace TelegramBotBase.Builder
bb.Sessions.Client = bb.Client;
bb.BotCommandScopes = _BotCommandScopes;
//bb.BotCommands = _botcommands;
bb.StateMachine = _statemachine;