Update to Telegram Bot Framework 2.0

This commit is contained in:
Andriy
2023-07-29 01:50:28 +03:00
parent 5d06529c92
commit 0677060429
24 changed files with 86 additions and 47 deletions
+4 -2
View File
@@ -27,7 +27,8 @@ public class Store : CommonHandler
_store = store;
}
[Command(InChat.Public, "store", CommandParseMode.Both)]
[InChat(InChat.Public)]
[Command("store", CommandParseMode.Both)]
public async Task HandleStore()
{
if (From.IsBot)
@@ -58,7 +59,8 @@ public class Store : CommonHandler
);
}
[Update(InChat.Public, UpdateFlag.CallbackQuery)]
[InChat(InChat.Public)]
[Update(UpdateFlag.CallbackQuery)]
public async Task HandleStoreCallback()
{
var query = CallbackQuery;