User

Description

This object represents a Telegram user or bot.

Attributes

Name Type Description
id int Unique identifier for this user or bot
is_bot bool True, if this user is a bot
first_name str User‘s or bot’s first name
last_name Optional[str] Optional. User‘s or bot’s last name
username Optional[str] Optional. User‘s or bot’s username
language_code Optional[str] Optional. IETF language tag of the user's language
can_join_groups Optional[bool] Optional. True, if the bot can be invited to groups. Returned only in getMe.
can_read_all_group_messages Optional[bool] Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
supports_inline_queries Optional[bool] Optional. True, if the bot supports inline queries. Returned only in getMe.

Location

  • from aiogram.types import User
  • from aiogram.api.types import User
  • from aiogram.api.types.user import User