get_stars_revenue_withdrawal_url()¶
- async Client.get_stars_revenue_withdrawal_url()¶
Get the Fragment withdrawal URL for Telegram Stars revenue.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Target chat ID (bot or channel) or “me”.password (
str|InputCheckPasswordSRP) – Two-step verification 2FA password.ton (
bool, optional) – Whether to withdraw in TON.amount (
int, optional) – Amount of Stars to withdraw.
- Returns:
StarsRevenueWithdrawalUrl– On success, withdrawal URL is returned.
Example
url = await app.get_stars_revenue_withdrawal_url(chat_id, "2fa_password")