2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 04:48:06 +00:00

Cast is_bot value to bool

This commit is contained in:
Dan 2019-06-01 13:15:41 +02:00
parent 341c41e7ef
commit e7f6e9ec66

View File

@ -94,7 +94,7 @@ class Syncer:
auth_key=auth_key,
user_id=client.user_id,
date=int(time.time()),
is_bot=client.is_bot,
is_bot=bool(client.is_bot),
peers_by_id={
k: getattr(v, "access_hash", None)
for k, v in client.peers_by_id.copy().items()