Open zaxosx opened 7 years ago
zaxosx, do you know how make that in non automatic way?
Via skype4J no
2016-09-28 7:17 GMT+03:00 KakosZ notifications@github.com:
zaxosx, do you know how make that in non automatic way?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/samczsun/Skype4J/issues/133#issuecomment-250067727, or mute the thread https://github.com/notifications/unsubscribe-auth/AToUMzJtqOqaRbrGi1dBrj2Up0r9aAQSks5queo8gaJpZM4J_UZH .
@EventHandler public void onContact(ContactRequestEvent event) { try { System.out.println("New contact request from " + event.getRequest().getSender().getUsername() + " at " + event.getRequest().getTime() + " with message " + event.getRequest().getMessage()); event.getRequest().accept(); System.out.println("Added " +event.getRequest().getSender().getUsername() +"to contact list");
} catch (ConnectionException e) {
e.printStackTrace();
}
}
Add ing class that implements Listener
Can someone write an example about auto friend accept request?