chore: init commit from GitHub
This commit is contained in:
12
TelegramBot/Commands/ErrorMessage.cs
Normal file
12
TelegramBot/Commands/ErrorMessage.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user