telegram-s / telegram

Telegram S Edition Android App
MIT License
226 stars 108 forks source link

Send Broadcast Message Error #69

Closed sauditore closed 8 years ago

sauditore commented 9 years ago

Hi i want to send broadcast message but every time i call api.doRpcCallSide or api.doRpcCall, i get NO_CONTACT error! contacts contains at least 4 numbers.

This is the code :

TLVector vector = new TLVector(); for(TContact c:contacts){ TLInputUserContact vvv = new TLInputUserContact(c.get_uid()); vector.add(vvv); } TLAbsInputMedia media = new TLInputMediaEmpty(); TLRequestMessagesSendBroadcast broadcast = new TLRequestMessagesSendBroadcast(vector, msg, media); api.doRpcCallSide(broadcast, 10000);

sauditore commented 8 years ago

Telegram will not add the newly added contacts(for example you added them 1 hour ago) to this list! This method is OK and works with old contacts.