Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Latest
interface TransactionPartnerUser
import { type TransactionPartnerUser } from "https://deno.land/x/grammy@v1.32.0/types.deno.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