GetFullUserRequest

Both users and bots can use this request. See code examples.

---functions---
users.getFullUser#b60f5918 id:InputUser = users.UserFull

Returns

users.UserFull

This type can only be an instance of:

UserFull

Parameters

idInputUserAnything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.).

Known RPC errors

This request can cause 2 known errors:

TimeoutErrorA timeout occurred while fetching data from the worker.
UserIdInvalidErrorInvalid object ID for a user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited.

You can import these from telethon.errors.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.users.GetFullUserRequest(
        id='username'
    ))
    print(result.stringify())