Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FBchatException solution #653

Open
janmazurekk opened this issue Oct 21, 2021 · 1 comment
Open

FBchatException solution #653

janmazurekk opened this issue Oct 21, 2021 · 1 comment

Comments

@janmazurekk
Copy link

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.

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)
@MohamadOday
Copy link

just use try and except

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants