Bot Workflow and User Interactions
The workflow of the Telegram bot is designed to provide a seamless user experience, enabling interaction with the blockchain without leaving the Telegram app.
Wallet Management
Importing a Wallet:
User initiates the import process via
/start
orimport-wallet
.The bot prompts for a private key or mnemonic phrase.
Upon successful import, the wallet is stored securely in the session.
Viewing Wallet Information:
Users can view their wallet address using the
show-wallet
action.The bot retrieves and displays the wallet address stored in the session.
BitcoinL2 Contributions and Withdrawals
Contributing to BitcoinL2:
User triggers the
/contributetobts
command.The bot validates the input and wallet, then processes the transaction.
If successful, the bot confirms the contribution with a transaction hash.
Withdrawing from BitcoinL2:
User initiates the
/withdraw
command.The bot handles the approval and withdrawal processes.
The transaction result is provided to the user.
Real-Time Token Data
Trending Tokens:
The user selects
trending-tokens
to view the top-performing tokens.The bot fetches and displays data from the backend.
Losing Tokens:
The
loosing-tokens
action shows tokens that have lost value.The bot retrieves and formats this data for the user.
Advanced User Interactions
Checking Contributed BitcoinL2:
The bot can display detailed information about the BitcoinL2 the user has contributed to.
This includes performance data, token value, and links to detailed views.
Retrieving User BitcoinL2 Data:
Users can access comprehensive data about their investments.
The bot provides formatted reports, helping users make informed decisions.
Last updated