implemented auth, added auth tools AcceptNotPreparedAttribute.cs, IAuthorizedTelegramCommand.cs
9 lines
321 B
C#
9 lines
321 B
C#
using JOBot.Proto;
|
|
|
|
namespace JOBot.TClient.Infrastructure.Extensions;
|
|
|
|
public static class GRpcModelsExtensions
|
|
{
|
|
public static bool IsPrepared(this GetUserResponse user) => user is { Eula: true, IsLogged: true } &&
|
|
!string.IsNullOrEmpty(user.CVUrl);
|
|
} |