Skip to content
  1. MTKruto/
  2. Walkthrough/
  3. Paid Media
  1. Sending Paid Media
Guides

Paid Media

Main Walkthrough · 21 of 25

Users and bots can require users to pay Telegram Stars before viewing a photo or video.

Sending Paid Media

The starCount option on sendPhoto and sendVideo sets the number of Stars required to unlock the media.

await client.sendPhoto(chatId, "./photo.jpg", {
  starCount: 25,
});
PreviousChannel Direct MessagesNextStar & TON Balance and Transactions
© 2023-2026 MTKruto
TelegramGitHub
Appearance