TgKit library and website are still in early development!

User Class

extends Base

Represents a Telegram user or bot.

Properties

addedToAttachmentMenu boolean

*true*, if this user added the bot to the attachment menu

See the code

client Client

See the code

firstName string

User's or bot's first name

See the code

id number

Unique identifier for this user or bot

See the code

isBot boolean

*true*, if this user is a bot

See the code

isPremium boolean

*true*, if this user is a Telegram Premium user

See the code

languageCode string

IETF language tag of the user's language

See the code

lastName string

User's or bot's last name

See the code

username string

User's or bot's username

See the code

Methods

toJSON():

See the code

toString(): string

See the code