rubenlagus / TelegramApi

Java library to create Telegram Clients
MIT License
296 stars 108 forks source link

TLRequestContactsSearch search always return empty. #82

Open kakama89 opened 5 years ago

kakama89 commented 5 years ago

i have a contact with first name Toai i have use the following method to search that contact: TLRequestContactsSearch req = new TLRequestContactsSearch(); req.setQ("Toai") ; // search contact with first name is Toai. TLContactsFound contacts = api.doRpcCallSide(req);

but it always return empty when i call contacts.getResults(); contacts.getUsers();

i have tested the same function in https://web.telegram.org and it's work. after hit f12 i saw it's used same method [31704.282] Api call contacts.search

Can any body tell me why it isn't work for me?

gate-ghb commented 2 years ago

maybe you need too setlimit