messageActionStarGift
messageActionStarGift
Section titled “messageActionStarGift”No description provided by the pinned schema.
Signature
Section titled “Signature”messageActionStarGift#ea2c31d3 flags:# name_hidden:flags.0?true saved:flags.2?true converted:flags.3?true upgraded:flags.5?true refunded:flags.9?true can_upgrade:flags.10?true prepaid_upgrade:flags.13?true upgrade_separate:flags.16?true auction_acquired:flags.17?true gift:StarGift message:flags.1?TextWithEntities convert_stars:flags.4?long upgrade_msg_id:flags.5?int upgrade_stars:flags.8?long from_id:flags.11?Peer peer:flags.12?Peer saved_id:flags.12?long prepaid_upgrade_hash:flags.14?string gift_msg_id:flags.15?int to_id:flags.18?Peer gift_num:flags.19?int = MessageAction;Result type
Section titled “Result type”MessageAction
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | No description provided by the pinned schema. |
| name_hidden | flags.0?true | flags.0 | — | No description provided by the pinned schema. |
| saved | flags.2?true | flags.2 | — | No description provided by the pinned schema. |
| converted | flags.3?true | flags.3 | — | No description provided by the pinned schema. |
| upgraded | flags.5?true | flags.5 | — | No description provided by the pinned schema. |
| refunded | flags.9?true | flags.9 | — | No description provided by the pinned schema. |
| can_upgrade | flags.10?true | flags.10 | — | No description provided by the pinned schema. |
| prepaid_upgrade | flags.13?true | flags.13 | — | No description provided by the pinned schema. |
| upgrade_separate | flags.16?true | flags.16 | — | No description provided by the pinned schema. |
| auction_acquired | flags.17?true | flags.17 | — | No description provided by the pinned schema. |
| gift | StarGift | — | — | No description provided by the pinned schema. |
| message | flags.1?TextWithEntities | flags.1 | — | No description provided by the pinned schema. |
| convert_stars | flags.4?long | flags.4 | — | No description provided by the pinned schema. |
| upgrade_msg_id | flags.5?int | flags.5 | — | No description provided by the pinned schema. |
| upgrade_stars | flags.8?long | flags.8 | — | No description provided by the pinned schema. |
| from_id | flags.11?Peer | flags.11 | — | No description provided by the pinned schema. |
| peer | flags.12?Peer | flags.12 | — | No description provided by the pinned schema. |
| saved_id | flags.12?long | flags.12 | — | No description provided by the pinned schema. |
| prepaid_upgrade_hash | flags.14?string | flags.14 | — | No description provided by the pinned schema. |
| gift_msg_id | flags.15?int | flags.15 | — | No description provided by the pinned schema. |
| to_id | flags.18?Peer | flags.18 | — | No description provided by the pinned schema. |
| gift_num | flags.19?int | flags.19 | — | No description provided by the pinned schema. |
| Parameter | Bit | Meaning |
|---|---|---|
| name_hidden | 0 | Controlled by flags; present when this bit is set. |
| saved | 2 | Controlled by flags; present when this bit is set. |
| converted | 3 | Controlled by flags; present when this bit is set. |
| upgraded | 5 | Controlled by flags; present when this bit is set. |
| refunded | 9 | Controlled by flags; present when this bit is set. |
| can_upgrade | 10 | Controlled by flags; present when this bit is set. |
| prepaid_upgrade | 13 | Controlled by flags; present when this bit is set. |
| upgrade_separate | 16 | Controlled by flags; present when this bit is set. |
| auction_acquired | 17 | Controlled by flags; present when this bit is set. |
| message | 1 | Controlled by flags; present when this bit is set. |
| convert_stars | 4 | Controlled by flags; present when this bit is set. |
| upgrade_msg_id | 5 | Controlled by flags; present when this bit is set. |
| upgrade_stars | 8 | Controlled by flags; present when this bit is set. |
| from_id | 11 | Controlled by flags; present when this bit is set. |
| peer | 12 | Controlled by flags; present when this bit is set. |
| saved_id | 12 | Controlled by flags; present when this bit is set. |
| prepaid_upgrade_hash | 14 | Controlled by flags; present when this bit is set. |
| gift_msg_id | 15 | Controlled by flags; present when this bit is set. |
| to_id | 18 | Controlled by flags; present when this bit is set. |
| gift_num | 19 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.types import MessageActionStarGiftPublic access: miniproto.raw.types.MessageActionStarGift.
Safe usage shape
Section titled “Safe usage shape”from miniproto.raw.types import MessageActionStarGift
# Naming the raw constructor class is local only; it performs no I/O or network request.constructor_type = MessageActionStarGiftResult family
Section titled “Result family”Relationships
Section titled “Relationships”- Result family:
MessageAction - Related constructors:
messageActionBoostApply,messageActionBotAllowed,messageActionChangeCommunity,messageActionChangeCreator,messageActionChannelCreate,messageActionChannelMigrateFrom,messageActionChatAddUser,messageActionChatCreate,messageActionChatDeletePhoto,messageActionChatDeleteUser,messageActionChatEditPhoto,messageActionChatEditTitle,messageActionChatJoinedByLink,messageActionChatJoinedByRequest,messageActionChatMigrateTo,messageActionConferenceCall,messageActionContactSignUp,messageActionCustomAction,messageActionEmpty,messageActionGameScore,messageActionGeoProximityReached,messageActionGiftCode,messageActionGiftPremium,messageActionGiftStars,messageActionGiftTon,messageActionGiveawayLaunch,messageActionGiveawayResults,messageActionGroupCall,messageActionGroupCallScheduled,messageActionHistoryClear,messageActionInviteToGroupCall,messageActionManagedBotCreated,messageActionNewCreatorPending,messageActionNoForwardsRequest,messageActionNoForwardsToggle,messageActionPaidMessagesPrice,messageActionPaidMessagesRefunded,messageActionPaymentRefunded,messageActionPaymentSent,messageActionPaymentSentMe,messageActionPhoneCall,messageActionPinMessage,messageActionPollAppendAnswer,messageActionPollDeleteAnswer,messageActionPrizeStars,messageActionRequestedPeer,messageActionRequestedPeerSentMe,messageActionScreenshotTaken,messageActionSecureValuesSent,messageActionSecureValuesSentMe,messageActionSetChatTheme,messageActionSetChatWallPaper,messageActionSetMessagesTTL,messageActionStarGiftPurchaseOffer,messageActionStarGiftPurchaseOfferDeclined,messageActionStarGiftUnique,messageActionSuggestBirthday,messageActionSuggestProfilePhoto,messageActionSuggestedPostApproval,messageActionSuggestedPostRefund,messageActionSuggestedPostSuccess,messageActionTodoAppendTasks,messageActionTodoCompletions,messageActionTopicCreate,messageActionTopicEdit,messageActionWebViewDataSent,messageActionWebViewDataSentMe - Accepted by:
messageService
Provenance
Section titled “Provenance”- layer: 228
- structural source:
tdlib - canonical schema: https://raw.githubusercontent.com/tdlib/td/refs/heads/master/td/generate/scheme/telegram_api.tl
- prose merge precedence: TDLib → Telegram Desktop → Core JSON
- source note: Canonical structure is the pinned TDLib telegram_api.tl; Layer 228 comes only from the matching Telegram Desktop end-of-file marker; core.telegram.org inputs enrich documentation and RPC error metadata without overriding structure.
Source-diff notes
Section titled “Source-diff notes”- tdlib_vs_core: changed_count=68; core_only_count=1; overlap_count=2302; tdlib_only_count=158
- tdlib_vs_tdesktop: changed_count=0; overlap_count=2448; tdesktop_only=null; tdlib_only=accessPointRule, ephemeral.editMessage, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret, updateEphemeralBotCallbackQuery