LIVE PORTAL Telegram v11.8 API Synchronized Free Animated Stickers
shield_person ADMIN LOGGED IN + Write Guide
admin_panel_settings ADMIN CONTROLS Guide #10944 • tips
How to Share Mini App Content to Telegram Stories: Custom Story Canvases, Deep Link Attribution & Viral Loops
play_circle Official Video Tip #464
Mini Apps & Viral Growth Loops

How to Share Mini App Content to Telegram Stories: Custom Story Canvases, Deep Link Attribution & Viral Loops

Supercharge your mini app's organic acquisition. Discover how the Telegram Web Apps API enables games and tools to generate bespoke visual media and post it directly to user stories—attaching deep-linked referral buttons that convert viewers into active players with a single tap.

auto_awesome Official demonstration: Completing an achievement inside a mini app, tapping 'Share to Story', and previewing an auto-generated visual canvas with embedded deep link widget ready for immediate publishing.
share
One-Tap Story Publishing
Users publish milestones, game clips, or transaction receipts directly to their Telegram story feed without leaving the mini app.
link
Embedded Deep Link Widget
Telegram automatically binds an interactive link widget to the story, pre-configured with the creator's referral tracking tag.
rocket_launch
Exponential Organic Growth
Every story becomes a viral entry portal, bringing new users directly into the specific game room or reward challenge.
terminal DEVELOPER API SPECIFICATION

How WebApp.shareToStory Operates

A technical breakdown of the Telegram Web Apps JS SDK method that coordinates story canvas generation.

Telegram Web Apps SDK 7.8+ shareToStory Implementation
// Triggering story share from inside a WebApp / Mini App
Telegram.WebApp.shareToStory(
  "https://cdn.yourapp.com/stories/user_achievement_9281.jpg", 
  {
    text: "I just reached Level 50 in Cyber Quest! Can you beat my score?",
    widget_link: {
      url: "https://t.me/CyberQuestBot?startapp=ref_user9281",
      name: "Play Cyber Quest"
    }
  }
);

// Under the hood: Client native bridge event
window.TelegramWebviewProxy.postEvent("web_app_share_to_story", JSON.stringify({
  media_url: "https://cdn.yourapp.com/stories/user_achievement_9281.jpg",
  text: "I just reached Level 50...",
  widget_link: { ... }
}));

When invoking Telegram.WebApp.shareToStory, the mini app supplies a media asset URL (JPEG/PNG or MP4 video) alongside caption copy and a widget_link descriptor. The Telegram client pre-downloads the media into its native story editor, positions the custom link widget, and opens the preview dialog. The user retains complete creative control to add stickers or text before finalizing the broadcast.

preview
Mini App Story Canvas & Referral Simulator

Simulate generating a story achievement card inside a game and previewing how friends interact with the viral deep link.

STORY CANVAS PREVIEW
military_tech
Level 50 Master
Alex reached top 1% global rank
play_arrow Play with Alex (alex_vip)
GENERATED DEEP LINK URL:
https://t.me/CyberQuestBot?startapp=ref_alex_vip
checklist STEP-BY-STEP GUIDE

How to Share Mini App Achievements to Stories

A simple user journey for sharing game moments with your friends.

1
Trigger Share Button in Mini App
After completing a game round, reaching a high score, or minting a badge, tap the in-game Share to Story button.
2
Review the Story Editor Canvas
Telegram automatically loads the game's custom achievement graphic and attaches an interactive link widget pointing to the game.
3
Personalize & Post
Add your own text commentary, stickers, or emoji reactions, choose your story audience (Everyone or Contacts), and tap Share Story.
help_center FREQUENTLY ASKED QUESTIONS

Mini App Story Sharing FAQ

Answers regarding developer asset constraints, video support, and user security.

Can mini apps post stories automatically without user confirmation?
Never. Telegram requires explicit user confirmation. The mini app can only open the story editing preview; the user must tap the final "Share Story" button to publish.
Can mini apps share video clips as well as static images?
Yes! Developers can provide high-resolution MP4 video URLs (up to 50 MB), allowing dynamic gameplay highlights, animations, and sound effects.
Do users earn rewards when their friends join through story links?
Because the widget link supports custom referral query parameters (startapp=ref123), the bot can credit referral bonuses, Telegram Stars, or in-game gold directly to the inviter's account upon sign-up.
admin_panel_settings ADMIN Guide #10944 Actions
Enlarged Preview
Click anywhere outside or press ESC to close viewer
smart_display Telegram Video Short
1080p HD
Official Source: @TelegramTips Post #44 Press ESC or click outside to close