Use chat.id instead of get_peer_id(chat) for Dialog. Fixes #450
This commit is contained in:
@@ -315,7 +315,7 @@ class ProvisioningAPI(AuthAPI):
|
||||
|
||||
if not user.is_bot:
|
||||
return web.json_response([{
|
||||
"id": get_peer_id(chat),
|
||||
"id": chat.id,
|
||||
"title": chat.title,
|
||||
} async for chat in user.client.iter_dialogs(ignore_migrated=True, archived=False)])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user