public TelegramBlobCommand(TelegramCommandType CommandType, long UserId, object Argument) : base(CommandType, UserId, Argument) { if (Argument.GetType() != typeof(byte[])) { throw new InvalidCommandArgumentException("Should be byte[]", Argument.GetType()); } }
public TelegramCommand(TelegramCommandType commandType, long UserId, object Argument) { this.CommandType = commandType; this.UserId = UserId; this.Argument = Argument; }