Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_types/mod.ts>User

Type declarations of the Telegram Bot API.
Latest
interface User
Re-export
import { type User } from "https://deno.land/x/grammy_types@v3.16.0/mod.ts";

This object represents a Telegram user or bot.

Properties

id: number

Unique identifier for this user or bot.

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