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:
@@ -35,7 +35,8 @@ public class Guess : CommonHandler
|
||||
_requests = requests;
|
||||
}
|
||||
|
||||
[Command(InChat.Public, "guess", CommandParseMode.Both)]
|
||||
[InChat(InChat.Public)]
|
||||
[Command("guess", CommandParseMode.Both)]
|
||||
public async Task HandleGuess()
|
||||
{
|
||||
// Drop user message.
|
||||
@@ -91,7 +92,8 @@ public class Guess : CommonHandler
|
||||
_guessCache.SetValue(Chat.Id, guessDict, -1);
|
||||
}
|
||||
|
||||
[Update(InChat.Public, UpdateFlag.CallbackQuery)]
|
||||
[InChat(InChat.Public)]
|
||||
[Update(UpdateFlag.CallbackQuery)]
|
||||
public async Task HandleGuessResponse()
|
||||
{
|
||||
var messageId = CallbackQuery.Message?.MessageId;
|
||||
|
||||
Reference in New Issue
Block a user