mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Update to Telegram Bot Framework 2.0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user