feat: added auth hook using RabbitMQ on client for login continue

This commit is contained in:
2025-07-25 17:12:10 +03:00
parent d2280cdc5b
commit f115760713
10 changed files with 101 additions and 5 deletions

View File

@@ -99,11 +99,22 @@ public class PrepareUserService(ITelegramBotClient bot, User.UserClient userClie
cancellationToken: ct);
}
public async Task AuthHookReceived(long userId, CancellationToken ct = default)
{
await _bot.SendMessage(userId, "Авторизация завершена успешно!", cancellationToken: ct);
await SelectCv(userId, ct);
}
public async Task SelectCv(Update update, CancellationToken ct = default)
{
ArgumentNullException.ThrowIfNull(update.Message?.From);
await SelectCv(update.Message.From.Id, ct);
}
await _bot.SendMessage(update.Message.From.Id, "Давайте выберем одно из доступных резюме:",
public async Task SelectCv(long userId, CancellationToken ct = default)
{
await _bot.SendMessage(userId, "Давайте выберем одно из доступных резюме:",
cancellationToken: ct); //TODO: https://git.lisoveliy.su/Lisoveliy/JOBot/issues/9
}
}