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());
     }
 }
示例#2
0
 public TelegramCommand(TelegramCommandType commandType, long UserId, object Argument)
 {
     this.CommandType = commandType;
     this.UserId      = UserId;
     this.Argument    = Argument;
 }