From 09627b71ae088c9bf109d0fd40bf896c64cbae15 Mon Sep 17 00:00:00 2001 From: smilexs4 Date: Fri, 8 May 2020 17:08:01 +0300 Subject: [PATCH] Update fetch.py Solved the exception: TypeError: __init__() takes 1 positional argument but 2 were given --- examples/fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fetch.py b/examples/fetch.py index f4675b5..dd7302b 100644 --- a/examples/fetch.py +++ b/examples/fetch.py @@ -2,7 +2,7 @@ import fbchat session = fbchat.Session.login("", "") -client = fbchat.Client(session) +client = fbchat.Client(session=session) # Fetches a list of all users you're currently chatting with, as `User` objects users = client.fetch_all_users()