feat: added auth hook using RabbitMQ on client for login continue
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user