export_no_paid_messages_token()

async Client.export_no_paid_messages_token()

Get a link that lets other users message the current user without paying Telegram Stars.

Usable by Users Bots
Parameters:
  • revoke (bool, optional) – Pass True to revoke the old link and make a new one.

  • temporary (bool, optional) – Pass True to get a link that expires.

Returns:

NoPaidMessagesToken – The link.

Example

token = await app.export_no_paid_messages_token()
print(token.link)