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

x/grammy_types/mod.ts>TransactionPartnerUser

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

Describes a transaction with a user.

Properties

type: "user"

Type of the transaction partner, always “user”

user: User

Information about the user

optional
invoice_payload: string

Bot-specified invoice payload

optional
subscription_period: number

The duration of the paid subscription

optional
paid_media: PaidMedia[]

Information about the paid media bought by the user

optional
paid_media_payload: string

Bot-specified paid media payload

optional
gift: string

The gift sent to the user by the bot