fbchat-dev / fbchat-dev/fbchat
FBchatException solution
Open
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 403
- PR merge metrics
- No merged PRs in 30d
Description
I use fbchat to send a message, it works fine but when it doesn't find the person we get a FBchatException. I do not know how to make it possible for him to omit such a person.
```py
for i in range(liczba_pozycji):
klienci = client.searchForUsers(tab_imie_naziwsko[i])
klient = klienci[0]
client.send(Message(text=tab_produkt[i]),
thread_id=format(klient.uid), thread_type=ThreadType.USER)
```
Contributor guide
Assessment
This issue has not been assessed yet.