Try passing it 0 for no flag bits?  (Flags represent bit values, 1 for delivery confirmation, 2 for read confirmation, 4 for deleted confirmation).