Module

x/grammy/types.deno.ts>User

The Telegram Bot Framework.
Very Popular
Go to Latest
interface User
import { type User } from "https://dotland.deno.dev/x/grammy@v1.12.4/types.deno.ts";

This object represents a Telegram user or bot.

Properties

id: number

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.

is_bot: boolean

True, if this user is a bot

first_name: string

User's or bot's first name

optional
last_name: string

User's or bot's last name

optional
username: string

User's or bot's username

optional
language_code: string

IETF language tag of the user's language

optional
is_premium: true

True, if this user is a Telegram Premium user

optional
added_to_attachment_menu: true

True, if this user added the bot to the attachment menu

import User
import { User } from "https://dotland.deno.dev/x/grammy@v1.12.4/types.deno.ts";