Skip to content

FBchatException solution #653

Open
Open

Description

@janmazurekk

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)

Activity

  1. MohamadOday commented on Oct 26, 2021

    @MohamadOday

    just use try and except

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions