send_ton_transfer()

async Client.send_ton_transfer()

Submit a TON transfer to a user from the wallet, optionally using gasless relaying.

Usable by Users Bots
Parameters:
  • user_id (int | str) – Target user identifier (ID or username).

  • data_normal (bytes) – Normal transfer payload bytes.

  • data_gasless (bytes, optional) – Gasless transfer payload bytes.

  • random_id (int, optional) – Unique 64-bit random ID. Defaults to auto-generated.

Returns:

Updates – On success, updates confirming the transfer are returned.

Example

updates = await app.send_ton_transfer(
    user_id=123456,
    data_normal=b"...",
)
print(updates)