Alex Kvak

Results 69 comments of Alex Kvak

can you wrap your code as source code? See markdown documentation

My app does so: ``` Java TLConfig config = api.doRpcCallNonAuth(new TLRequestHelpGetConfig()); state.updateSettings(config); ``` then ``` Java switchToNearestDc(); ``` then ``` Java // TLRequestAuthSendCode ```

so the problem is in you nearest dc. What is it address? By the way, did you debug the updateSettings method? It should update api's connections

show me the updateSetting method code

Did you see, how it's implemented in Telegram for Android? Maybe here is some mistake

see this solution for linux [#9](https://github.com/ex3ndr/telegram-api/issues/9#issuecomment-38175765)

I have the same question

you need first add recipient to sender's contact list. Then you can create peer with contact and send there a message

``` Scala val contact = new TLInputContact(1, "087643264", "Alex", "K") val contacts = new TLVector[TLInputContact] contacts.add(contact) val importContacts = new TLRequestContactsImportContacts(contacts, true) val importedContacts = api.doRpcCall(importContacts) val recipient = importedContacts.getUsers.get(0)...

you need to serialize/unserialize the whole ApiState object when you start/close your app