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:
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Core' " />
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AleXr64.BotFramework" Version="0.7.4-g573fdc8e7e" />
|
||||
<PackageReference Include="AleXr64.BotFramework" Version="2.0.4-g9e14fb7bfc" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
|
||||
@@ -23,7 +23,8 @@ public class SettingsHandler : CommonHandler
|
||||
_options = serviceProvider.GetServices<IOption>();
|
||||
}
|
||||
|
||||
[Command(InChat.Public, "settings", CommandParseMode.WithUsername)]
|
||||
[InChat(InChat.Public)]
|
||||
[Command("settings", CommandParseMode.WithUsername)]
|
||||
public async Task HandleSettings()
|
||||
{
|
||||
if (!await Bot.IsUserAdminAsync(Chat, From))
|
||||
@@ -37,8 +38,9 @@ public class SettingsHandler : CommonHandler
|
||||
replyMarkup: GetSettingsMarkup()
|
||||
);
|
||||
}
|
||||
|
||||
[Update(InChat.Public, UpdateFlag.CallbackQuery)]
|
||||
|
||||
[InChat(InChat.Public)]
|
||||
[Update(UpdateFlag.CallbackQuery)]
|
||||
public async Task HandleCallback()
|
||||
{
|
||||
var query = CallbackQuery;
|
||||
|
||||
Reference in New Issue
Block a user