Exemplo n.º 1
0
 public TextCallBackHandler(ICallBackButtonProvider callBackButtonProvider, IMessageSender messageSender)
 {
     _callBackButtonProvider = callBackButtonProvider ?? throw new ArgumentNullException(nameof(callBackButtonProvider));
     _messageSender          = messageSender ?? throw new ArgumentNullException(nameof(messageSender));
 }
Exemplo n.º 2
0
 public MessageSender(ITelegramBotClient client, ICallBackButtonProvider callBackButtonProvider, ILogger <MessageSender> logger)
 {
     _client = client ?? throw new ArgumentNullException(nameof(client));
     _callBackButtonProvider = callBackButtonProvider ?? throw new ArgumentNullException(nameof(callBackButtonProvider));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 3
0
 public CallBackInvalidatorHostedService(ICallBackButtonProvider callBackButtonProvider, ILogger <CallBackInvalidatorHostedService> logger)
 {
     _callBackButtonProvider = callBackButtonProvider ?? throw new ArgumentNullException(nameof(callBackButtonProvider));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }