Layer 220
PaymentsPaymentFormStars
Represents a payment form, for payments to be using Telegram Stars, see here for more info.
constructor
payments.paymentFormStars#7bf6b15c flags:# form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice users:Vector<User> = payments.PaymentForm;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| FormId | long | Form ID. |
| BotId | long | Bot ID. |
| Title | string | Form title |
| Description | string | Description |
| Photo | flags.5?WebDocument | Product photo |
| Invoice | Invoice | Invoice |
| Users | Vector<User> | Info about users mentioned in the other fields. |
Returns
payments.PaymentFormGogram Example
// Creating PaymentsPaymentFormStars constructor obj := &tg.PaymentsPaymentFormStars{ FormId: int64(0), BotId: int64(0), Title: "...", Description: "...", Invoice: &tg.Invoice{}, Users: []tg.User{&tg.User{}}, // Optional fields: // Photo: &tg.WebDocument{}, }