import_no_paid_messages_token()

async Client.import_no_paid_messages_token()

Use a link that lets the current user message another user without paying Telegram Stars.

Usable by Users Bots
Parameters:
  • user_id (int | str) – Unique identifier (int) or username (str) of the user who made the link.

  • token (str) – The token, or the whole link (https://t.me/username?free=...).

Returns:

User – The user who made the link.

Example

await app.import_no_paid_messages_token("username", "https://t.me/username?free=abc")