InputInvoiceStarGift

class pyrogram.raw.types.InputInvoiceStarGift

Used to buy a Telegram Star Gift, see here » for more info.

Constructor of InputInvoice.

Details:
  • Layer: 223

  • ID: E8625E92

Parameters:
  • peer (InputPeer) – Receiver of the gift.

  • gift_id (int 64-bit) – Identifier of the gift, from starGift.id

  • hide_name (bool, optional) – If set, your name will be hidden if the destination user decides to display the gift on their profile (they will still see that you sent the gift)

  • include_upgrade (bool, optional) – Also pay for an eventual upgrade of the gift to a collectible gift ».

  • message (TextWithEntities, optional) – Optional message, attached with the gift. The maximum length for this field is specified in the stargifts_message_length_max client configuration value ».

TL Schema

inputInvoiceStarGift#e8625e92
flags:#
hide_name:flags.0?true
include_upgrade:flags.2?true
peer:InputPeer
gift_id:long
message:flags.1?TextWithEntities

= InputInvoice

Parameter Tree

InputInvoiceStarGift
├── hide_nametrue (optional)
├── include_upgradetrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── gift_idlong
└── messageTextWithEntities (optional)
├── textstring
└── entitiesVector < MessageEntity >
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── languagestring
│ ├── offsetint
│ ├── lengthint
│ └── urlstring
│ ├── offsetint
│ ├── lengthint
│ └── user_idlong
│ ├── offsetint
│ ├── lengthint
│ └── user_idInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── document_idlong
│ ├── collapsedtrue (optional)
│ ├── offsetint
│ └── lengthint
├── relativetrue (optional)
├── short_timetrue (optional)
├── long_timetrue (optional)
├── short_datetrue (optional)
├── long_datetrue (optional)
├── day_of_weektrue (optional)
├── offsetint
├── lengthint
└── dateint

Example

InputInvoiceStarGift(
    peer=await app.resolve_peer(chat_id),
    gift_id=0,
)