Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grammy/types.ts>StarTransaction

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

Describes a Telegram Star transaction.

Properties

id: string

Unique identifier of the transaction. Coincides with the identifer of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegram_payment_charge_id for successful incoming payments from users.

amount: number

Number of Telegram Stars transferred by the transaction

date: number

Date the transaction was created in Unix time

optional
source: TransactionPartner

Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions

optional
receiver: TransactionPartner

Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions