Skip to content

getUser

Sahri Riza Umami edited this page Sep 11, 2017 · 7 revisions

Returns information about a user by its identifier, offline request if current user is not a bot

getUser(user_id)
Field Type Description
user_id int32 User identifier

Example

  • Returns information about 24904272.

    getUser(24904272)

    Response:

    {
      _ = "user",
      first_name = "Mentari",
      foreign_link = {
        _ = "linkStateKnowsPhoneNumber"
      },
      have_access = true,
      id = 24904272,
      is_verified = false,
      language_code = "",
      last_name = "",
      my_link = {
        _ = "linkStateKnowsPhoneNumber"
      },
      phone_number = "1234567890",
      profile_photo = {
        _ = "profilePhoto",
        big = {
          _ = "file",
          id = 2,
          is_being_downloaded = false,
          is_being_uploaded = false,
          local_size = 0,
          path = "",
          persistent_id = "AQADBQADzacxG1ACfAEACLIXHSwABDkQ5rMLq76zojAAAgI",
          remote_size = 0,
          size = 0
        },
        id = "106963034226927565",
        small = {
          _ = "file",
          id = 1,
          is_being_downloaded = false,
          is_being_uploaded = false,
          local_size = 0,
          path = "",
          persistent_id = "AQADBQADzacxG1ACfAEACLIXHSwABGJb2dSNxephoDAAAgI",
          remote_size = 0,
          size = 0
        }
      },
      restriction_reason = "",
      status = {
        _ = "userStatusOnline",
        expires = 1504141339
      },
      type = {
        _ = "userTypeGeneral"
      },
      username = "kuncen"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally