Skip to content

convertGiftToStars

Returns boolean

Converts a given regular gift to Telegram Stars. Requires the can_convert_gifts_to_stars business bot right.

Required: business_connection_id, owned_gift_id

Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("convert_gift_to_stars", {
business_connection_id: "...",
owned_gift_id: "..."
})

Parameters

business_connection_id string Required
Unique identifier of the business connection.

owned_gift_id string Required
Unique identifier of the regular gift that should be converted to Telegram Stars.