Make Client.session attribute public

This commit is contained in:
Mads Marquart
2020-01-09 10:54:07 +01:00
parent a5abb05ab3
commit f968e583e8
3 changed files with 11 additions and 11 deletions

View File

@@ -44,15 +44,10 @@ class Client:
"""
def __init__(self, session):
"""Initialize and log in the client.
"""Initialize the client model.
Args:
email: Facebook ``email``, ``id`` or ``phone number``
password: Facebook account password
session_cookies (dict): Cookies from a previous session (Will default to login if these are invalid)
Raises:
FBchatException: On failed login
session: The session to use when making requests.
"""
self._sticky, self._pool = (None, None)
self._seq = "0"
@@ -61,6 +56,11 @@ class Client:
self._buddylist = dict()
self._session = session
@property
def session(self):
"""The session that's used when making requests."""
return self._session
"""
INTERNAL REQUEST METHODS
"""