telegram.user module¶
This module contains an object that represents a Telegram User.
-
class
telegram.user.User(id, first_name, type='', last_name='', username='', bot=None, **kwargs)¶ Bases:
telegram.base.TelegramObjectThis object represents a Telegram User.
-
id¶ int
-
first_name¶ str
-
last_name¶ str
-
username¶ str
-
type¶ str
Parameters: - id (int) –
- first_name (str) –
- **kwargs – Arbitrary keyword arguments.
Keyword Arguments: - type (Optional[str]) –
- last_name (Optional[str]) –
- username (Optional[str]) –
- bot (Optional[Bot]) – The Bot to use for instance methods
-
static
de_json(data, bot)¶ Parameters: - data (dict) –
- bot (telegram.Bot) –
Returns: Return type:
-
get_profile_photos(*args, **kwargs)¶ Shortcut for
bot.getUserProfilePhotos(update.message.from_user.id, *args, **kwargs)
-
name¶ str
-