Skip to content

getUser

Sahri Riza Umami edited this page Jun 9, 2017 · 3 revisions

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

getUser(user_id)
Option Description
user_id User identifier.

Example

getUser(194211431)

Response:

{
  ID = "User",
  first_name_ = "Abon",
  foreign_link_ = {
    ID = "LinkStateKnowsPhoneNumber"
  },
  have_access_ = true,
  id_ = 194211431,
  is_verified_ = false,
  last_name_ = "Ketimus",
  my_link_ = {
    ID = "LinkStateKnowsPhoneNumber"
  },
  phone_number_ = "REDACTED",
  profile_photo_ = {
    ID = "ProfilePhoto",
    big_ = {
      ID = "File",
      id_ = 2,
      path_ = false,
      persistent_id_ = "AQADBQADW6gxG2dukwsACBVQyjIABC8HS8ezO2hr1XkDAAEC",
      size_ = 0
    },
    id_ = "834131745110599771",
    small_ = {
      ID = "File",
      id_ = 1,
      path_ = false,
      persistent_id_ = "AQADBQADW6gxG2dukwsACBVQyjIABAt-RZr5h2xE03kDAAEC",
      size_ = 0
    }
  },
  restriction_reason_ = false,
  status_ = {
    ID = "UserStatusOnline",
    expires_ = 1496992365
  },
  type_ = {
    ID = "UserTypeGeneral"
  },
  username_ = false
}

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally