feat: created auth hook on TClient
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using JOBot.TClient.Infrastructure.Extensions;
|
||||
using Telegram.Bot;
|
||||
using Telegram.Bot.Types;
|
||||
|
||||
@@ -11,7 +12,7 @@ public class FallbackException : Exception
|
||||
{
|
||||
public FallbackException(string message, Message botMessage, ITelegramBotClient botClient) : base(message)
|
||||
{
|
||||
botClient.SendMessage(botMessage.Chat.Id,
|
||||
botClient.SendMessageRemK(botMessage.Chat.Id,
|
||||
TextResource.FallbackMessage);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user