Share Themes, Message Passes and More
TgScheme
Layer 232 · Telegram for Android 13.1.0 (7236) · Stable
Users and channels can now personalize their shared appearance with custom themes and backdrops, manage digital collectibles more flexibly, and bypass paid message requirements with dedicated access tokens.
Share Themes and Backdrops
Profiles and channels can now define a dedicated share theme that styles how they appear when shared across Telegram. Owners can choose between default palettes, custom emoji backdrops with curated reaction icons, or display an exclusive collectible gift directly on their theme.
Clients can fetch available backdrop options to preview colors and patterns before applying them to any peer profile.
Advanced Gift Management
Collectible star gifts can now be deposited, withdrawn, or hidden from profiles with fine-grained controls. Users can generate deposit payloads targeting specific peers or withdraw saved gifts directly while choosing whether to retain them on their public profile.
Unwanted star gifts can also be permanently deleted from a user's collection when no longer needed.
Tokens for Paid Messages
Accounts that require Telegram Stars for incoming direct messages can now generate special access tokens. Sharing these links allows trusted contacts to start a conversation without paying any fee.
Tokens can be set as temporary or revoked at any time, and using a token leaves a service notification directly in the chat history.
Wallet Card Personalization
Telegram Wallet cards can now be customized with collectible NFT stickers placed at precise coordinates across the card surface.
Users can also assign an NFT item as the background artwork for their card and track on-chain transactions linked directly to channels and gifts.
New in this build
Telegram for Android 13.1.0 (7236), compared with the previous build of Layer 232
Changed Methods
- Added flags, additional parameters in bots.checkUsername
All changes in Layer 232
Compared with Layer 231
New Methods
- Added contacts.exportNoPaidMessagesToken — Generate an access token allowing other users to bypass the star requirement when sending messages.
- Added contacts.importNoPaidMessagesToken — Redeem an access token to send messages to a user without paying stars.
- Added messages.setShareTheme — Set the appearance theme applied when sharing a peer profile.
- Added messages.getShareThemeBackdrops — Fetch available backdrop color schemes for share themes.
- Added payments.withdrawStarGift — Withdraw a collectible star gift to an external address.
- Added payments.depositStarGift — Obtain deposit instructions and payload to transfer a collectible star gift to a peer.
- Added payments.displayStarGift — Toggle the display of a specific star gift on a profile.
- Added payments.deleteStarGift — Permanently delete a saved star gift from the user's profile.
- Added wallet.setCardStickers — Update the NFT stickers and background applied to a wallet card.
- Added messages.getShareTheme — Get the current share theme configured for a peer.
Changed Methods
- Added additional, flags parameters in bots.checkUsername
- Added tmp_password, flags parameters, removed password parameter in payments.getStarGiftWithdrawalUrl
New Constructors
- Added messageActionNoPaidMessagesTokenUsed — Indicates that an access token was consumed to send a message without paying stars.
- Added walletTransactionPeerChannel — Represents a channel involved in a wallet transaction.
- Added walletTransactionPeerTelegramGift — Represents a collectible gift involved in a wallet transaction.
- Added exportedNoPaidMessagesToken — Contains details about an exported access token that bypasses paid message requirements.
- Added shareThemeDefault — Represents the standard default share theme.
- Added shareThemeEmojiBackdrop — Represents a share theme with custom background colors and floating emoji reactions.
- Added shareThemeGift — Represents a share theme centered around a collectible star gift.
- Added inputShareThemeGift — Defines a saved star gift to use when configuring a share theme.
- Added shareThemeBackdropOption — Describes color and style parameters for a share theme backdrop.
- Added shareThemeBackdropsNotModified — Indicates that the available share theme backdrops have not changed.
- Added shareThemeBackdrops — Contains the list of available backdrop options for share themes.
- Added inputWalletCardSticker — Defines an NFT sticker and its coordinates to be placed on a wallet card.
- Added wallet.cardSticker — Represents an NFT sticker positioned on a wallet card.
- Added wallet.card — Represents a customized wallet card with stickers, background artwork, and balance.
- Added payments.starGiftDepositPayload — Contains the payload and smart contract address required to deposit a collectible gift.
Changed Constructors
- Added in_news, pinned_msg_id parameters in channel
- Added share_theme parameter in channelFull
- Added wallet_card, share_theme parameters, removed gram_address parameter in userFull
- Added is_app parameter, removed app parameter in urlAuthResultRequest
- Added quote_rich parameter in messageReplyHeader
- Added quote_rich parameter in inputReplyToMessage
- Added gift parameter in wallet.nftItem
Schema
---types--- channel#7ad15240 flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true signature_profiles:flags2.12?true autotranslation:flags2.15?true broadcast_messages_allowed:flags2.16?true monoforum:flags2.17?true forum_tabs:flags2.19?true in_news:flags2.21?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector<Username> stories_max_id:flags2.4?RecentStory color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int subscription_until_date:flags2.11?int bot_verification_icon:flags2.13?long send_paid_messages_stars:flags2.14?long linked_monoforum_id:flags2.18?long linked_community_id:flags2.20?long pinned_msg_id:flags2.22?int = Chat; channelFull#c4c4dd40 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true paid_media_allowed:flags2.14?true can_view_stars_revenue:flags2.15?true paid_reactions_available:flags2.16?true stargifts_available:flags2.19?true paid_messages_available:flags2.20?true has_welcome_messages:flags2.24?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions reactions_limit:flags2.13?int stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet bot_verification:flags2.17?BotVerification stargifts_count:flags2.18?int send_paid_messages_stars:flags2.21?long main_tab:flags2.22?ProfileTab guard_bot_id:flags2.23?long share_theme:flags2.25?ShareTheme = ChatFull; messageActionNoPaidMessagesTokenUsed#c1d2f1c6 = MessageAction; userFull#b90c2afd flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true noforwards_my_enabled:flags2.23?true noforwards_peer_enabled:flags2.24?true unofficial_security_risk:flags2.26?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document note:flags2.22?TextWithEntities bot_manager_id:flags2.25?long wallet_card:flags2.19?wallet.Card share_theme:flags2.27?ShareTheme = UserFull; urlAuthResultRequest#bdca6167 flags:# request_write_access:flags.0?true request_phone_number:flags.1?true match_codes_first:flags.5?true is_app:flags.6?true request_wallet:flags.8?true bot:User domain:string browser:flags.2?string platform:flags.2?string ip:flags.2?string region:flags.2?string match_codes:flags.3?Vector<string> user_id_hint:flags.4?long verified_app_name:flags.7?string tc_session_id:flags.9?long tc_client_id:flags.10?string = UrlAuthResult; messageReplyHeader#ddb5ab75 flags:# reply_to_scheduled:flags.2?true forum_topic:flags.3?true quote:flags.9?true reply_to_ephemeral:flags.13?true reply_to_msg_id:flags.4?int reply_to_peer_id:flags.0?Peer reply_from:flags.5?MessageFwdHeader reply_media:flags.8?MessageMedia reply_to_top_id:flags.1?int quote_text:flags.6?string quote_entities:flags.7?Vector<MessageEntity> quote_offset:flags.10?int todo_item_id:flags.11?int poll_option:flags.12?bytes quote_rich:flags.14?Vector<RichText> = MessageReplyHeader; inputReplyToMessage#75c1ad70 flags:# reply_to_msg_id:int top_msg_id:flags.0?int reply_to_peer_id:flags.1?InputPeer quote_text:flags.2?string quote_entities:flags.3?Vector<MessageEntity> quote_offset:flags.4?int monoforum_peer_id:flags.5?InputPeer todo_item_id:flags.6?int poll_option:flags.7?bytes quote_rich:flags.8?Vector<RichText> = InputReplyTo; walletTransactionPeerChannel#54e70c31 flags:# channel_id:long address:string domain:flags.0?string = WalletTransactionPeer; walletTransactionPeerTelegramGift#f4729499 flags:# own_profile:flags.0?true = WalletTransactionPeer; wallet.nftItem#173dfaf3 flags:# collection_address:flags.0?string address:string owner_address:string index:string name:flags.1?string description:flags.2?string image:flags.3?WebDocument image_small:flags.4?WebDocument content_url:flags.5?WebDocument lottie:flags.6?WebDocument attributes:flags.7?Vector<wallet.NftAttribute> extra:flags.8?DataJSON gift:flags.9?StarGift = wallet.NftItem; exportedNoPaidMessagesToken#695dd042 flags:# token:string url:string expires:flags.0?int = ExportedNoPaidMessagesToken; shareThemeDefault#95ace84f = ShareTheme; shareThemeEmojiBackdrop#64b334e1 flags:# backdrop_id:flags.0?int emojis:flags.1?Vector<Reaction> = ShareTheme; shareThemeGift#ebece66d stargift:StarGift = ShareTheme; inputShareThemeGift#3fb92b5b stargift:InputSavedStarGift = ShareTheme; shareThemeBackdropOption#45c1d652 backdrop_id:int name:string center_color:int edge_color:int pattern_color:int text_color:int = ShareThemeBackdropOption; shareThemeBackdropsNotModified#7a3f6dff = ShareThemeBackdrops; shareThemeBackdrops#aaeadce0 hash:int backdrops:Vector<ShareThemeBackdropOption> = ShareThemeBackdrops; inputWalletCardSticker#57df45a7 coordinates:MediaAreaCoordinates nft_address:string = InputWalletCardSticker; wallet.cardSticker#f3010cba coordinates:MediaAreaCoordinates nft:wallet.NftItem = wallet.CardSticker; wallet.card#8ed043b1 flags:# stickers:flags.0?Vector<wallet.CardSticker> bg_nft_item:flags.1?wallet.NftItem address:string balance:long = wallet.Card; payments.starGiftDepositPayload#725bb4eb nft_address:string payload:bytes amount:long = payments.StarGiftDepositPayload; ---functions--- contacts.exportNoPaidMessagesToken#83c586ae flags:# revoke:flags.0?true temporary:flags.1?true = ExportedNoPaidMessagesToken; contacts.importNoPaidMessagesToken#35a7c6ca user_id:InputUser token:string = User; messages.setShareTheme#698a9b1a peer:InputPeer theme:ShareTheme = Bool; messages.getShareThemeBackdrops#f4599ef2 hash:int = ShareThemeBackdrops; messages.getShareTheme#761b1c73 peer:InputPeer = ShareTheme; bots.checkUsername#e3ac4c61 flags:# additional:flags.0?true username:string = Bool; payments.getStarGiftWithdrawalUrl#c8ca817b flags:# stargift:InputSavedStarGift tmp_password:bytes = payments.StarGiftWithdrawalUrl; payments.withdrawStarGift#ec2030ae flags:# keep_on_profile:flags.0?true stargift:InputSavedStarGift tmp_password:bytes = Bool; payments.depositStarGift#c0a2ea9f flags:# hide_sender:flags.0?true peer:InputPeer slug:string = payments.StarGiftDepositPayload; payments.displayStarGift#4aa5f0fe flags:# peer:flags.0?InputPeer slug:string = Bool; payments.deleteStarGift#3cdaf8aa stargift:InputSavedStarGift = Bool; wallet.setCardStickers#68509ac flags:# stickers:Vector<InputWalletCardSticker> bg_nft_address:flags.0?string = wallet.Card;