payments.SendPaymentForm
- class pyrogram.raw.functions.payments.SendPaymentForm
Send compiled payment form
- Details:
Layer:
223ID:
2D03522F
- Parameters:
form_id (
int64-bit) – Form IDinvoice (
InputInvoice) – Invoicecredentials (
InputPaymentCredentials) – Payment credentialsrequested_info_id (
str, optional) – ID of saved and validated order infoshipping_option_id (
str, optional) – Chosen shipping option IDtip_amount (
int64-bit, optional) – Tip, in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
- Returns:
TL Schema
payments.sendPaymentForm#2d03522f
flags:#
form_id:long
invoice:InputInvoice
requested_info_id:flags.0?string
shipping_option_id:flags.1?string
credentials:InputPaymentCredentials
tip_amount:flags.2?long
= payments.PaymentResult
Parameter Tree
SendPaymentForm
├── form_id →
long├── invoice →
InputInvoice│ ├──
InputInvoiceMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ └── msg_id →
int│ ├──
InputInvoiceSlug│ │ └── slug →
string│ │ ├── purpose →
InputStorePaymentPurpose│ │ │ ├──
InputStorePaymentPremiumSubscription│ │ │ │ ├── restore →
true (optional)│ │ │ │ └── upgrade →
true (optional)│ │ │ ├──
InputStorePaymentGiftPremium│ │ │ │ ├── user_id →
InputUser│ │ │ │ │ ├──
InputUserEmpty│ │ │ │ │ ├──
InputUserSelf│ │ │ │ │ ├──
InputUser│ │ │ │ │ └──
InputUserFromMessage│ │ │ │ ├── currency →
string│ │ │ │ └── amount →
long│ │ │ ├──
InputStorePaymentPremiumGiftCode│ │ │ │ ├── users →
Vector < InputUser >│ │ │ │ │ ├──
InputUserEmpty│ │ │ │ │ ├──
InputUserSelf│ │ │ │ │ ├──
InputUser│ │ │ │ │ └──
InputUserFromMessage│ │ │ │ ├── boost_peer →
InputPeer (optional)│ │ │ │ │ ├──
InputPeerEmpty│ │ │ │ │ ├──
InputPeerSelf│ │ │ │ │ ├──
InputPeerChat│ │ │ │ │ ├──
InputPeerUser│ │ │ │ │ ├──
InputPeerChannel│ │ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ │ └──
InputPeerChannelFromMessage│ │ │ │ ├── currency →
string│ │ │ │ ├── amount →
long│ │ │ │ └── message →
TextWithEntities (optional)│ │ │ │ └──
TextWithEntities│ │ │ ├──
InputStorePaymentPremiumGiveaway│ │ │ │ ├── only_new_subscribers →
true (optional)│ │ │ │ ├── winners_are_visible →
true (optional)│ │ │ │ ├── boost_peer →
InputPeer│ │ │ │ │ ├──
InputPeerEmpty│ │ │ │ │ ├──
InputPeerSelf│ │ │ │ │ ├──
InputPeerChat│ │ │ │ │ ├──
InputPeerUser│ │ │ │ │ ├──
InputPeerChannel│ │ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ │ └──
InputPeerChannelFromMessage│ │ │ │ ├── additional_peers →
Vector < InputPeer > (optional)│ │ │ │ │ ├──
InputPeerEmpty│ │ │ │ │ ├──
InputPeerSelf│ │ │ │ │ ├──
InputPeerChat│ │ │ │ │ ├──
InputPeerUser│ │ │ │ │ ├──
InputPeerChannel│ │ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ │ └──
InputPeerChannelFromMessage│ │ │ │ ├── countries_iso2 →
Vector < string > (optional)│ │ │ │ ├── prize_description →
string (optional)│ │ │ │ ├── random_id →
long│ │ │ │ ├── until_date →
int│ │ │ │ ├── currency →
string│ │ │ │ └── amount →
long│ │ │ ├──
InputStorePaymentStarsTopup│ │ │ │ ├── stars →
long│ │ │ │ ├── currency →
string│ │ │ │ ├── amount →
long│ │ │ │ └── spend_purpose_peer →
InputPeer (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├──
InputStorePaymentStarsGift│ │ │ │ ├── user_id →
InputUser│ │ │ │ │ ├──
InputUserEmpty│ │ │ │ │ ├──
InputUserSelf│ │ │ │ │ ├──
InputUser│ │ │ │ │ └──
InputUserFromMessage│ │ │ │ ├── stars →
long│ │ │ │ ├── currency →
string│ │ │ │ └── amount →
long│ │ │ ├──
InputStorePaymentStarsGiveaway│ │ │ │ ├── only_new_subscribers →
true (optional)│ │ │ │ ├── winners_are_visible →
true (optional)│ │ │ │ ├── stars →
long│ │ │ │ ├── boost_peer →
InputPeer│ │ │ │ │ ├──
InputPeerEmpty│ │ │ │ │ ├──
InputPeerSelf│ │ │ │ │ ├──
InputPeerChat│ │ │ │ │ ├──
InputPeerUser│ │ │ │ │ ├──
InputPeerChannel│ │ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ │ └──
InputPeerChannelFromMessage│ │ │ │ ├── additional_peers →
Vector < InputPeer > (optional)│ │ │ │ │ ├──
InputPeerEmpty│ │ │ │ │ ├──
InputPeerSelf│ │ │ │ │ ├──
InputPeerChat│ │ │ │ │ ├──
InputPeerUser│ │ │ │ │ ├──
InputPeerChannel│ │ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ │ └──
InputPeerChannelFromMessage│ │ │ │ ├── countries_iso2 →
Vector < string > (optional)│ │ │ │ ├── prize_description →
string (optional)│ │ │ │ ├── random_id →
long│ │ │ │ ├── until_date →
int│ │ │ │ ├── currency →
string│ │ │ │ ├── amount →
long│ │ │ │ └── users →
int│ │ │ └──
InputStorePaymentAuthCode│ │ │ ├── restore →
true (optional)│ │ │ ├── phone_number →
string│ │ │ ├── phone_code_hash →
string│ │ │ ├── currency →
string│ │ │ └── amount →
long│ │ └── option →
PremiumGiftCodeOption│ │ └──
PremiumGiftCodeOption│ │ ├── users →
int│ │ ├── months →
int│ │ ├── store_product →
string (optional)│ │ ├── store_quantity →
int (optional)│ │ ├── currency →
string│ │ └── amount →
long│ ├──
InputInvoiceStars│ │ └── purpose →
InputStorePaymentPurpose│ │ │ ├── restore →
true (optional)│ │ │ └── upgrade →
true (optional)│ │ ├──
InputStorePaymentGiftPremium│ │ │ ├── user_id →
InputUser│ │ │ │ ├──
InputUserEmpty│ │ │ │ ├──
InputUserSelf│ │ │ │ ├──
InputUser│ │ │ │ └──
InputUserFromMessage│ │ │ ├── currency →
string│ │ │ └── amount →
long│ │ ├──
InputStorePaymentPremiumGiftCode│ │ │ ├── users →
Vector < InputUser >│ │ │ │ ├──
InputUserEmpty│ │ │ │ ├──
InputUserSelf│ │ │ │ ├──
InputUser│ │ │ │ └──
InputUserFromMessage│ │ │ ├── boost_peer →
InputPeer (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── currency →
string│ │ │ ├── amount →
long│ │ │ └── message →
TextWithEntities (optional)│ │ │ └──
TextWithEntities│ │ ├──
InputStorePaymentPremiumGiveaway│ │ │ ├── only_new_subscribers →
true (optional)│ │ │ ├── winners_are_visible →
true (optional)│ │ │ ├── boost_peer →
InputPeer│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── additional_peers →
Vector < InputPeer > (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── countries_iso2 →
Vector < string > (optional)│ │ │ ├── prize_description →
string (optional)│ │ │ ├── random_id →
long│ │ │ ├── until_date →
int│ │ │ ├── currency →
string│ │ │ └── amount →
long│ │ ├──
InputStorePaymentStarsTopup│ │ │ ├── stars →
long│ │ │ ├── currency →
string│ │ │ ├── amount →
long│ │ │ └── spend_purpose_peer →
InputPeer (optional)│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├──
InputStorePaymentStarsGift│ │ │ ├── user_id →
InputUser│ │ │ │ ├──
InputUserEmpty│ │ │ │ ├──
InputUserSelf│ │ │ │ ├──
InputUser│ │ │ │ └──
InputUserFromMessage│ │ │ ├── stars →
long│ │ │ ├── currency →
string│ │ │ └── amount →
long│ │ ├──
InputStorePaymentStarsGiveaway│ │ │ ├── only_new_subscribers →
true (optional)│ │ │ ├── winners_are_visible →
true (optional)│ │ │ ├── stars →
long│ │ │ ├── boost_peer →
InputPeer│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── additional_peers →
Vector < InputPeer > (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── countries_iso2 →
Vector < string > (optional)│ │ │ ├── prize_description →
string (optional)│ │ │ ├── random_id →
long│ │ │ ├── until_date →
int│ │ │ ├── currency →
string│ │ │ ├── amount →
long│ │ │ └── users →
int│ │ └──
InputStorePaymentAuthCode│ │ ├── restore →
true (optional)│ │ ├── phone_number →
string│ │ ├── phone_code_hash →
string│ │ ├── currency →
string│ │ └── amount →
long│ │ └── hash →
string│ ├──
InputInvoiceStarGift│ │ ├── hide_name →
true (optional)│ │ ├── include_upgrade →
true (optional)│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── gift_id →
long│ │ └── message →
TextWithEntities (optional)│ │ └──
TextWithEntities│ │ ├── text →
string│ │ └── entities →
Vector < MessageEntity >│ │ ├──
MessageEntityUnknown│ │ ├──
MessageEntityMention│ │ ├──
MessageEntityHashtag│ │ ├──
MessageEntityBotCommand│ │ ├──
MessageEntityUrl│ │ ├──
MessageEntityEmail│ │ ├──
MessageEntityBold│ │ ├──
MessageEntityItalic│ │ ├──
MessageEntityCode│ │ ├──
MessageEntityPre│ │ ├──
MessageEntityTextUrl│ │ ├──
MessageEntityMentionName│ │ ├──
InputMessageEntityMentionName│ │ ├──
MessageEntityPhone│ │ ├──
MessageEntityCashtag│ │ ├──
MessageEntityUnderline│ │ ├──
MessageEntityStrike│ │ ├──
MessageEntityBankCard│ │ ├──
MessageEntitySpoiler│ │ ├──
MessageEntityCustomEmoji│ │ ├──
MessageEntityBlockquote│ │ └──
MessageEntityFormattedDate│ │ ├── keep_original_details →
true (optional)│ │ └── stargift →
InputSavedStarGift│ │ ├──
InputSavedStarGiftUser│ │ │ └── msg_id →
int│ │ ├──
InputSavedStarGiftChat│ │ │ ├── peer →
InputPeer│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ └── saved_id →
long│ │ └──
InputSavedStarGiftSlug│ │ └── slug →
string│ │ ├── stargift →
InputSavedStarGift│ │ │ ├──
InputSavedStarGiftUser│ │ │ │ └── msg_id →
int│ │ │ ├──
InputSavedStarGiftChat│ │ │ │ ├── peer →
InputPeer│ │ │ │ │ ├──
InputPeerEmpty│ │ │ │ │ ├──
InputPeerSelf│ │ │ │ │ ├──
InputPeerChat│ │ │ │ │ ├──
InputPeerUser│ │ │ │ │ ├──
InputPeerChannel│ │ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ │ └──
InputPeerChannelFromMessage│ │ │ │ └── saved_id →
long│ │ │ └──
InputSavedStarGiftSlug│ │ │ └── slug →
string│ │ └── to_id →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ │ ├── user_id →
InputUser│ │ │ ├──
InputUserEmpty│ │ │ ├──
InputUserSelf│ │ │ ├──
InputUser│ │ │ └──
InputUserFromMessage│ │ ├── months →
int│ │ └── message →
TextWithEntities (optional)│ │ └──
TextWithEntities│ │ ├── text →
string│ │ └── entities →
Vector < MessageEntity >│ │ ├──
MessageEntityUnknown│ │ ├──
MessageEntityMention│ │ ├──
MessageEntityHashtag│ │ ├──
MessageEntityBotCommand│ │ ├──
MessageEntityUrl│ │ ├──
MessageEntityEmail│ │ ├──
MessageEntityBold│ │ ├──
MessageEntityItalic│ │ ├──
MessageEntityCode│ │ ├──
MessageEntityPre│ │ ├──
MessageEntityTextUrl│ │ ├──
MessageEntityMentionName│ │ ├──
InputMessageEntityMentionName│ │ ├──
MessageEntityPhone│ │ ├──
MessageEntityCashtag│ │ ├──
MessageEntityUnderline│ │ ├──
MessageEntityStrike│ │ ├──
MessageEntityBankCard│ │ ├──
MessageEntitySpoiler│ │ ├──
MessageEntityCustomEmoji│ │ ├──
MessageEntityBlockquote│ │ └──
MessageEntityFormattedDate│ │ ├── bot →
InputUser│ │ │ ├──
InputUserEmpty│ │ │ ├──
InputUserSelf│ │ │ ├──
InputUser│ │ │ └──
InputUserFromMessage│ │ └── stars →
long│ │ ├── ton →
true (optional)│ │ ├── slug →
string│ │ └── to_id →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ └── hash →
string│ │ └── purpose →
InputStorePaymentPurpose│ │ │ ├── restore →
true (optional)│ │ │ └── upgrade →
true (optional)│ │ ├──
InputStorePaymentGiftPremium│ │ │ ├── user_id →
InputUser│ │ │ │ ├──
InputUserEmpty│ │ │ │ ├──
InputUserSelf│ │ │ │ ├──
InputUser│ │ │ │ └──
InputUserFromMessage│ │ │ ├── currency →
string│ │ │ └── amount →
long│ │ ├──
InputStorePaymentPremiumGiftCode│ │ │ ├── users →
Vector < InputUser >│ │ │ │ ├──
InputUserEmpty│ │ │ │ ├──
InputUserSelf│ │ │ │ ├──
InputUser│ │ │ │ └──
InputUserFromMessage│ │ │ ├── boost_peer →
InputPeer (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── currency →
string│ │ │ ├── amount →
long│ │ │ └── message →
TextWithEntities (optional)│ │ │ └──
TextWithEntities│ │ ├──
InputStorePaymentPremiumGiveaway│ │ │ ├── only_new_subscribers →
true (optional)│ │ │ ├── winners_are_visible →
true (optional)│ │ │ ├── boost_peer →
InputPeer│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── additional_peers →
Vector < InputPeer > (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── countries_iso2 →
Vector < string > (optional)│ │ │ ├── prize_description →
string (optional)│ │ │ ├── random_id →
long│ │ │ ├── until_date →
int│ │ │ ├── currency →
string│ │ │ └── amount →
long│ │ ├──
InputStorePaymentStarsTopup│ │ │ ├── stars →
long│ │ │ ├── currency →
string│ │ │ ├── amount →
long│ │ │ └── spend_purpose_peer →
InputPeer (optional)│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├──
InputStorePaymentStarsGift│ │ │ ├── user_id →
InputUser│ │ │ │ ├──
InputUserEmpty│ │ │ │ ├──
InputUserSelf│ │ │ │ ├──
InputUser│ │ │ │ └──
InputUserFromMessage│ │ │ ├── stars →
long│ │ │ ├── currency →
string│ │ │ └── amount →
long│ │ ├──
InputStorePaymentStarsGiveaway│ │ │ ├── only_new_subscribers →
true (optional)│ │ │ ├── winners_are_visible →
true (optional)│ │ │ ├── stars →
long│ │ │ ├── boost_peer →
InputPeer│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── additional_peers →
Vector < InputPeer > (optional)│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ ├── countries_iso2 →
Vector < string > (optional)│ │ │ ├── prize_description →
string (optional)│ │ │ ├── random_id →
long│ │ │ ├── until_date →
int│ │ │ ├── currency →
string│ │ │ ├── amount →
long│ │ │ └── users →
int│ │ └──
InputStorePaymentAuthCode│ │ ├── restore →
true (optional)│ │ ├── phone_number →
string│ │ ├── phone_code_hash →
string│ │ ├── currency →
string│ │ └── amount →
long│ │ └── stargift →
InputSavedStarGift│ │ ├──
InputSavedStarGiftUser│ │ │ └── msg_id →
int│ │ ├──
InputSavedStarGiftChat│ │ │ ├── peer →
InputPeer│ │ │ │ ├──
InputPeerEmpty│ │ │ │ ├──
InputPeerSelf│ │ │ │ ├──
InputPeerChat│ │ │ │ ├──
InputPeerUser│ │ │ │ ├──
InputPeerChannel│ │ │ │ ├──
InputPeerUserFromMessage│ │ │ │ └──
InputPeerChannelFromMessage│ │ │ └── saved_id →
long│ │ └──
InputSavedStarGiftSlug│ │ └── slug →
string│ ├── hide_name →
true (optional)│ ├── update_bid →
true (optional)│ ├── peer →
InputPeer (optional)│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── gift_id →
long│ ├── bid_amount →
long│ └── message →
TextWithEntities (optional)│ └──
TextWithEntities│ ├── text →
string│ └── entities →
Vector < MessageEntity >│ ├──
MessageEntityUnknown│ ├──
MessageEntityMention│ ├──
MessageEntityHashtag│ ├──
MessageEntityBotCommand│ ├──
MessageEntityUrl│ ├──
MessageEntityEmail│ ├──
MessageEntityBold│ ├──
MessageEntityItalic│ ├──
MessageEntityCode│ ├──
MessageEntityPre│ ├──
MessageEntityTextUrl│ ├──
MessageEntityMentionName│ ├──
MessageEntityPhone│ ├──
MessageEntityCashtag│ ├──
MessageEntityUnderline│ ├──
MessageEntityStrike│ ├──
MessageEntityBankCard│ ├──
MessageEntitySpoiler│ ├──
MessageEntityCustomEmoji│ ├──
MessageEntityBlockquote├── requested_info_id →
string (optional)├── shipping_option_id →
string (optional)├── credentials →
InputPaymentCredentials│ │ ├── id →
string│ │ └── tmp_password →
bytes│ ├──
InputPaymentCredentials│ │ ├── save →
true (optional)│ │ └── data →
DataJSON│ │ └──
DataJSON│ │ └── data →
string│ │ └── payment_data →
DataJSON│ │ └──
DataJSON│ │ └── data →
string│ └── payment_token →
DataJSON│ └──
DataJSON│ └── data →
string└── tip_amount →
long (optional)Example
await app.invoke(
SendPaymentForm(
form_id=0,
invoice=InputInvoiceMessage(
peer=await app.resolve_peer(chat_id),
msg_id=0
),
requested_info_id="text",
shipping_option_id="text",
credentials=InputPaymentCredentialsSaved(
id="text",
tmp_password=b"data"
),
tip_amount=0,
)
)