From d0e76f862bb8a6328c425ee68c06760086590460 Mon Sep 17 00:00:00 2001 From: antigraviton Date: Wed, 4 Oct 2017 17:58:59 +0200 Subject: [PATCH] Updated Retrieving an entity (markdown) --- Retrieving-an-entity.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Retrieving-an-entity.md b/Retrieving-an-entity.md index 2119a21..d6d61cc 100644 --- a/Retrieving-an-entity.md +++ b/Retrieving-an-entity.md @@ -32,11 +32,7 @@ If the user you want to talk to is a contact, you can use [`GetContactsRequest`] from telethon.tl.functions.contacts import GetContactsRequest from telethon.tl.types.contacts import Contacts -# `.sign_in()ยด returns your User, otherwise use: -self_user = client.get_me() - -# Even an empty hash for GetContactsRequest seems to work -contacts = client(GetContactsRequest(self_user.access_hash)) +contacts = client(GetContactsRequest(0)) if isinstance(contacts, Contacts): users = contacts.users contacts = contacts.contacts