id
associated from the sender to verifiably identify the user. This value comes directly from Telegram’s servers and is only sent from verified users.
/start
)Create Telegram bot command
Create a wallet
createWallet
function. Learn more about the createWallet
function here.Save wallet to database
(optional) Block users from creating multiple wallets
/getwallet
)Create a /getwallet command
/getwallet
command. Learn more here.Get balance
getJupiterUltraBalances
function. Learn more here./swap
)Create a swap command
/swap <token_address> <amount>
. We will validate the token address and amount before proceeding.Create order
getJupiterUltraOrder
to create an order with the Jupiter Ultra API.Call this helper function in the /swap
command.Sign transaction
signTransaction
function. Learn more about the signTransaction
function here.