payments.getPaymentReceipt

Get payment receipt

Example

const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');

const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});

(async function run() {
    const result = await client.invoke(new Api.payments.getPaymentReceipt({
        msgId: 7166138,
        }));
    console.log(result); // prints the result
})();

TL schema

payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector<User> = payments.PaymentReceipt;
---functions---
payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt;

Parameters

Result

payments.PaymentReceipt

Possible errors

Can bots use this methd ?

yes

Last updated