User

class aiogram.types.user.User(conf: Optional[Dict[str, Any]] = None, **kwargs: Any)[source]

Bases: aiogram.types.base.TelegramObject

This object represents a Telegram user or bot.

https://core.telegram.org/bots/api#user

Deserialize object

Parameters
  • conf

  • kwargs

property full_name

You can get full name of user.

Returns

str

property mention

You can get user’s username to mention him Full name will be returned if user has no username

Returns

str

property locale

Get user’s locale

Returns

babel.core.Locale