chore: cleanup

This commit is contained in:
2025-07-12 02:02:03 +03:00
parent a526dbf6c6
commit 6e16c5831e
7 changed files with 19 additions and 16 deletions

View File

@@ -8,6 +8,8 @@ public interface IAuthorizedTelegramCommand : ITelegramCommand
{
public Task ExecuteAsync(Update update, GetUserResponse user, CancellationToken ct);
/// <exception cref="UnauthorizedAccessException">Throws if you try to use ITelegramCommand.ExecuteAsync
/// instead of IAuthorizedTelegramCommand.ExecuteAsync</exception>
Task ITelegramCommand.ExecuteAsync(Update update, CancellationToken ct)
{
throw new UnauthorizedAccessException("You do not have permission to access this command.");