WIP: implemented registration and EULA accept, WIP on auth issue

This commit is contained in:
2025-07-12 01:24:39 +03:00
parent ac39117cf4
commit 67a3457f2d
17 changed files with 569 additions and 87 deletions

View File

@@ -0,0 +1,17 @@
using JOBot.Proto;
using JOBot.TClient.Services;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace JOBot.TClient.Commands.Buttons;
public class EulaAgreementButtonCommand(PrepareUserService prepareUserService) : IAuthorizedTelegramCommand
{
public async Task ExecuteAsync(Update update, GetUserResponse user, CancellationToken ct)
{
if (update.Type != UpdateType.Message || update.Message?.From == null)
return;
await prepareUserService.AcceptEula(update, ct);
}
}