stats.getBroadcastRevenueWithdrawalUrl

Withdraw funds from a channel's ad revenue balance ».

 Method schema is available as of layer 192. Switch »

Parameters

Name Type Description
peer InputPeer Get ad revenue withdrawal URL for the specified channel or bot
password InputCheckPasswordSRP 2FA password, see here » for more info.

Result

stats.BroadcastRevenueWithdrawalUrl

Possible errors

Code Type Description
400 PASSWORD_HASH_INVALID The provided password hash is invalid.
400 PASSWORD_MISSING You must enable 2FA before executing this operation.
400 PASSWORD_TOO_FRESH_%d The password was modified less than 24 hours ago, try again in %d seconds.

Related pages

Two-factor authentication

How to login to a user's account if they have enabled 2FA, how to change password.

Channel and bot ad revenue

Telegram has one of the most generous reward systems in the history of social media. Telegram channel and bot owners can now receive 50% of the revenue from ads displayed in their channels and bots. This page describes the methods used to withdraw channel/bot ad revenue, as well as view detailed revenue stats.