Skip to content

GramIO API Reference / gramio/dist / TelegramUser

Interface: TelegramUser

Defined in: @gramio/types/out/objects.d.ts:173

This object represents a Telegram user or bot.

Documentation

Properties

PropertyTypeDescriptionDefined in
added_to_attachment_menu?trueOptional. True, if this user added the bot to the attachment menu@gramio/types/out/objects.d.ts:205
allows_users_to_create_topics?booleanOptional. True, if the bot allows users to create and delete topics in private chats. Returned only in getMe.@gramio/types/out/objects.d.ts:233
can_connect_to_business?booleanOptional. True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.@gramio/types/out/objects.d.ts:221
can_join_groups?booleanOptional. True, if the bot can be invited to groups. Returned only in getMe.@gramio/types/out/objects.d.ts:209
can_read_all_group_messages?booleanOptional. True, if privacy mode is disabled for the bot. Returned only in getMe.@gramio/types/out/objects.d.ts:213
first_namestringUser's or bot's first name@gramio/types/out/objects.d.ts:185
has_main_web_app?booleanOptional. True, if the bot has a main Web App. Returned only in getMe.@gramio/types/out/objects.d.ts:225
has_topics_enabled?booleanOptional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.@gramio/types/out/objects.d.ts:229
idnumberUnique 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.@gramio/types/out/objects.d.ts:177
is_botbooleanTrue, if this user is a bot@gramio/types/out/objects.d.ts:181
is_premium?trueOptional. True, if this user is a Telegram Premium user@gramio/types/out/objects.d.ts:201
language_code?stringOptional. IETF language tag of the user's language@gramio/types/out/objects.d.ts:197
last_name?stringOptional. User's or bot's last name@gramio/types/out/objects.d.ts:189
supports_inline_queries?booleanOptional. True, if the bot supports inline queries. Returned only in getMe.@gramio/types/out/objects.d.ts:217
username?stringOptional. User's or bot's username@gramio/types/out/objects.d.ts:193