'Problem with importing users using library WTelegramClient

  1. Follow this link: https://github.com/wiz0u/WTelegramClient , downloaded the project: wtelgramclienttestwf.
  2. On the main form, I added a ordinary button with a description: import users
  3. For the "import users" button - added an event on a click.
  4. Then I added a method for importing users.
  5. In this method, I pass the phone number of the desired client
  6. Accordingly, when I turn to the method: Contacts_ImportContacts - the studio just freezes and does not respond.
  7. There are no mistakes.
  8. For understanding, also see the uploaded photos.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

image DC TEST

I apologize in advance for my English



Solution 1:[1]

Sorry but we don't have enough elements to answer you.

Surround the API call with try..catch, maybe you have an exception.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Wizou