get_users()
- Client.get_users()
Get information about a user. You can retrieve up to 200 users at once.
Usable by Users Bots
- Parameters:
user_ids (
int
|str
| Iterable ofint
orstr
) – A list of User identifiers (id or username) or a single user id/username. For a contact that exists in your Telegram address book you can use his phone number (str). You can also use user profile link in form of t.me/<username> (str).- Returns:
User
| List ofUser
– In case user_ids was not a list, a single user is returned, otherwise a list of users is returned.
Example
# Get information about one user await app.get_users("me") # Get information about multiple users at once await app.get_users([user_id1, user_id2, user_id3])