WIP: implemented registration and EULA accept, WIP on auth issue
This commit is contained in:
15
JOBot.TClient/Commands/IAuthorizedTelegramCommand.cs
Normal file
15
JOBot.TClient/Commands/IAuthorizedTelegramCommand.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using JOBot.Proto;
|
||||
using Telegram.Bot;
|
||||
using Telegram.Bot.Types;
|
||||
|
||||
namespace JOBot.TClient.Commands;
|
||||
|
||||
public interface IAuthorizedTelegramCommand : ITelegramCommand
|
||||
{
|
||||
public Task ExecuteAsync(Update update, GetUserResponse user, CancellationToken ct);
|
||||
|
||||
Task ITelegramCommand.ExecuteAsync(Update update, CancellationToken ct)
|
||||
{
|
||||
throw new UnauthorizedAccessException("You do not have permission to access this command.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user