implemented auth, added auth tools AcceptNotPreparedAttribute.cs, IAuthorizedTelegramCommand.cs
13 lines
349 B
C#
13 lines
349 B
C#
using JOBot.Proto;
|
|
using JOBot.TClient.Services;
|
|
using Telegram.Bot.Types;
|
|
|
|
namespace JOBot.TClient.Commands;
|
|
|
|
public class MenuCommand(MenuService menuService) : IAuthorizedTelegramCommand
|
|
{
|
|
public async Task ExecuteAsync(Update update, GetUserResponse user, CancellationToken ct)
|
|
{
|
|
await menuService.RenderMenu(update, ct);
|
|
}
|
|
} |