{
  "name": "User",
  "anchor": "user",
  "description": [
    "This object represents a Telegram user or bot."
  ],
  "table": {
    "headers": [
      "Field",
      "Type",
      "Description"
    ],
    "rows": [
      {
        "field": "id",
        "type": "Integer",
        "description": "Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier."
      },
      {
        "field": "is_bot",
        "type": "Boolean",
        "description": "True , if this user is a bot"
      },
      {
        "field": "first_name",
        "type": "String",
        "description": "User's or bot's first name"
      },
      {
        "field": "last_name",
        "type": "String",
        "description": "Optional . User's or bot's last name"
      },
      {
        "field": "username",
        "type": "String",
        "description": "Optional . User's or bot's username"
      },
      {
        "field": "language_code",
        "type": "String",
        "description": "Optional . IETF language tag of the user's language"
      },
      {
        "field": "is_premium",
        "type": "True",
        "description": "Optional . True , if this user is a Telegram Premium user"
      },
      {
        "field": "added_to_attachment_menu",
        "type": "True",
        "description": "Optional . True , if this user added the bot to the attachment menu"
      },
      {
        "field": "can_join_groups",
        "type": "Boolean",
        "description": "Optional . True , if the bot can be invited to groups. Returned only in getMe ."
      },
      {
        "field": "can_read_all_group_messages",
        "type": "Boolean",
        "description": "Optional . True , if privacy mode is disabled for the bot. Returned only in getMe ."
      },
      {
        "field": "supports_inline_queries",
        "type": "Boolean",
        "description": "Optional . True , if the bot supports inline queries. Returned only in getMe ."
      },
      {
        "field": "can_connect_to_business",
        "type": "Boolean",
        "description": "Optional . True , if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe ."
      },
      {
        "field": "has_main_web_app",
        "type": "Boolean",
        "description": "Optional . True , if the bot has a main Web App. Returned only in getMe ."
      },
      {
        "field": "has_topics_enabled",
        "type": "Boolean",
        "description": "Optional . True , if the bot has forum topic mode enabled in private chats. Returned only in getMe ."
      },
      {
        "field": "allows_users_to_create_topics",
        "type": "Boolean",
        "description": "Optional . True , if the bot allows users to create and delete topics in private chats. Returned only in getMe ."
      }
    ]
  },
  "notes": []
}