mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Update code using get_input_entity
This commit is contained in:
@@ -3326,7 +3326,7 @@ class TelegramClient:
|
||||
...
|
||||
|
||||
# Note that for this to work the phone number must be in your contacts
|
||||
some_id = await client.get_peer_id('+34123456789')
|
||||
some_id = (await client.get_profile('+34123456789')).id
|
||||
"""
|
||||
|
||||
# endregion Users
|
||||
@@ -3395,4 +3395,12 @@ class TelegramClient:
|
||||
progress_callback: 'hints.ProgressCallback' = None) -> '_tl.TypeInputFile':
|
||||
pass
|
||||
|
||||
@forward_call(users._get_input_peer)
|
||||
async def _get_input_peer(self, *, save=True, **changes):
|
||||
pass
|
||||
|
||||
@forward_call(users._get_peer_id)
|
||||
async def _get_peer_id(self, *, save=True, **changes):
|
||||
pass
|
||||
|
||||
# endregion Private
|
||||
|
Reference in New Issue
Block a user