create_user_wallet()¶
- async Client.create_user_wallet()¶
Create a TON wallet for a regular user.
Usable by Users Bots- Parameters:
user_id (
int|str) – Unique identifier (int) or username (str) of the target user. For a contact that exists in your Telegram address book you can use his phone number (str).- Returns:
UserTonWalletAddress– On success, the address of the created wallet is returned. None if no address was returned.
Example
address = await app.create_user_wallet("username")