sanderdriesen / WhatsAPINet

A .NET WhatsApp API
32 stars 48 forks source link

SendSync takes to long to result #30

Open sebas0066 opened 8 years ago

sebas0066 commented 8 years ago

Hi, i have a issue ussing SendSync

when i execut this command tankes too long to get the result, like 2 minutes for one number

i use the commando like this, variable contact

    wa.SendSync(contact, ApiBase.SyncMode.Full, ApiBase.SyncContext.Background, 0, True)

    wa.PollMessages()

after i take the result in the OnGetResultSync instance

Public Sub wa_OnGetSyncResult(index As Integer, sid As String, existingUsers As Dictionary(Of String, String), failedNumbers As String())

    If existingUsers.TryGetValue(cont, "") = True Then
        resultSync = existingUsers(cont).ToString
    Else
        resultSync = "False"
    End If

End Sub

this example is for one number and this take too long to get the result, any help?