Ejemplo n.º 1
0
        public override Task Handle(StartCommand command, IBotHandlerContext context)
        {
            this._logger.Information(
                "{CommandType} command has been received from chat {ChatId}",
                command.GetType().Name,
                context.ChatId
                );

            var response = "Hi";

            return(context.SendMessage(response));
        }
Ejemplo n.º 2
0
 public abstract Task Handle(TCommand command, IBotHandlerContext context);