SwapDude/TelegramBot/Commands/ErrorMessage.cs
Lisoveliy aebe654c38
Some checks are pending
Deploy / update (push) Waiting to run
Build Project .NET / build (push) Waiting to run
chore: init commit from GitHub
2025-05-12 19:44:33 +03:00

12 lines
413 B
C#

using Telegram.Bot;
using Telegram.Bot.Types;
namespace TelegramBot.Commands;
public class ErrorMessage : IMessage
{
public async Task InvokeFromMessage(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken)
{
await botClient.SendTextMessageAsync(update.Message?.Chat!, "Ошибка! Команда не найдена", cancellationToken: cancellationToken);
}
}