Update code using get_input_entity

This commit is contained in:
Lonami Exo
2022-03-02 12:54:30 +01:00
parent 5ff8eb8159
commit 6d293b440c
22 changed files with 77 additions and 70 deletions

View File

@@ -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