Esempio n. 1
0
  /*
  	public byte[] GEN_nonce_hash(int id) {
  		byte[] nonce_data = Common.ASUM(Common.ASUM(new_nonce, new byte[]{(byte) id}), auth_key_aux_hash);
  		return Common.ASUB(Common.getSHA1(nonce_data), 4, 16);
  	}
  */
  private void send_accept() {
    if (msg_ack.size() == 0) return;
    /*
    	Common.logInfo("send accept:");
    	for (int i = 0; i < msg_ack.size(); i++)
    		Common.logInfo(" - " + getMessageTime(msg_ack.get(i))  + " " + msg_ack.get(i));
    */
    TL.Object msgs_ack = TL.newObject("msgs_ack", TL.newVector(msg_ack.toArray()));

    send(msgs_ack, true, false);
    msg_ack.clear();
  }
Esempio n. 2
0
 public void api_contacts_importContacts(ArrayList<TL.Object> contacts, boolean replace) {
   api(null, null, "contacts.importContacts", TL.newVector(contacts.toArray()), replace);
 }