Telegram Integration
MakaPay offers a full-featured Telegram integration with both a Telegram Bot for quick commands and a Telegram Mini App for the complete dashboard experience, all within the Telegram app.
Overview
The Telegram integration allows users to:
Create and manage crypto payments via bot commands
Generate vault deposit addresses for players
Receive real-time payment and deposit notifications
Access the full MakaPay dashboard as a Mini App inside Telegram
Link their Telegram account to their MakaPay account
Features
Telegram Bot
Interact with MakaPay using simple commands:
/start
Start using the bot and check account status
/newpayment
Create a new payment link (step-by-step wizard)
/payments
View your recent payments
/status [id]
Check the status of a specific payment
/deposit
Generate a vault deposit address for a player
/mydeposit
Look up an existing deposit address
/settings
Open the Mini App settings
/help
Show all available commands
/cancel
Cancel the current operation
Telegram Mini App
The Mini App provides the full MakaPay experience inside Telegram:
Dashboard: View all payments, vault deposits, and account stats
Create Payments: Full payment creation form with all options
Vault Management: Manage vault deposits and player addresses
Settings: Configure preferences and default values
Notifications: Customize which events trigger Telegram messages
Getting Started
1. Find the Bot
Search for @maka_pay_bot in Telegram and click Start.
2. Connect Your Account
The first time you use the bot, you'll need to link it to your MakaPay account:
Click the Connect Account button
Sign in with your MakaPay account credentials
Authorize the Telegram connection
You'll be redirected back to Telegram
Once connected, your Telegram account is linked to your MakaPay account permanently.
3. Set Default Preferences (Optional)
To speed up payment creation, you can set default values:
Default merchant wallet address
Preferred blockchain network
Preferred token (USDT, USDC, etc.)
Default vault ID (if you use vault deposits)
Use /settings to configure these in the Mini App.
Creating Payments
Via Bot Commands
Send
/newpaymentto start the payment creation wizardFollow the step-by-step prompts:
Merchant Address: Select saved address or enter new one
Network: Choose blockchain (Ethereum, BSC, Polygon, etc.)
Token: Select payment token (USDT, USDC, ETH, etc.)
Amount: Enter payment amount (e.g.,
25.50)Description: Optional description (or
/skip)
Review the payment link and share it with your customer
Example flow:
Via Mini App
Use
/settingsor click the Mini App buttonNavigate to the Payments tab
Click Create Payment
Fill in the form with all payment details
Click Create to generate the payment link
The Mini App offers more options like:
Expiration time
Custom QR code
Gasless payment toggle
Fee configuration
Vault Deposits
If you use MakaPay's Vault system for game or app deposits:
Generate Deposit Address
Send
/depositto start the deposit wizardIf you have multiple vaults, select which vault
Enter the player ID or account identifier
Select the deposit token
Receive the unique deposit address for that player
Example:
Look Up Existing Address
Use /mydeposit to retrieve a previously generated deposit address:
Notifications
Enable real-time notifications for:
Payment Received: When funds arrive in a payment wallet
Payment Completed: When settlement to merchant completes
Vault Deposit: When a vault deposit is confirmed
Configure notifications in /settings → Notifications tab.
Example notification:
Networks and Tokens
The bot supports all networks and tokens available in MakaPay:
Networks:
Ethereum Mainnet
BNB Smart Chain (BSC)
Polygon
Arbitrum
Optimism
Base
Plus testnets (Sepolia, BSC Testnet) in sandbox mode
Tokens:
USDT (Tether)
USDC (USD Coin)
Native tokens (ETH, BNB, MATIC, etc.)
Custom tokens configured in your account
The available options depend on your MAKA_NETWORK configuration (testnet vs mainnet).
Tips & Shortcuts
Quick Payment Creation
If you frequently create payments with the same settings, set your defaults in /settings:
Open Mini App
Go to Settings tab
Set default merchant, network, and token
Now
/newpaymentwill pre-select these values
Cancel Anytime
If you start a command flow and want to cancel:
Send
/cancelto abort the current operationOr start a new command (automatically cancels the previous one)
Skip Optional Fields
When the bot asks for optional information (like description):
Send
/skipto use the default or leave it empty
Mini App vs Bot
Use the Bot for:
Quick payment creation on the go
Checking payment status
Generating deposit addresses
Getting notifications
Use the Mini App for:
Viewing detailed payment history
Advanced payment options
Account settings and preferences
Detailed analytics and stats
Troubleshooting
"Please connect your account first"
Solution: Click the Connect Account button and link your MakaPay account. You only need to do this once.
Conversation state expired
If you wait too long between bot responses (>30 minutes), the conversation state resets.
Solution: Start the command again from the beginning (e.g., /newpayment).
OAuth linking failed
If the account linking process fails:
Solution:
Try again from
/startMake sure you're signed into the correct MakaPay account
Check that you authorized the Telegram connection
Mini App not loading
Solution:
Make sure you're using a recent version of Telegram
Try closing and reopening the Mini App
Check your internet connection
Security & Privacy
Your Telegram account is securely linked to your MakaPay account via OAuth
Bot commands require authentication - only you can access your payments
Payment links are public but unique - only share them with intended recipients
All wallet operations are performed server-side with proper security
Telegram user IDs are stored securely and never exposed
API Integration
For developers integrating MakaPay with their own Telegram bots:
Webhook Endpoint
Set this as your webhook URL in Telegram:
Environment Variables Required
Server-side (Convex):
Client-side (Next.js):
Support
Need help with the Telegram integration?
Use
/helpin the bot for quick command referenceVisit docs.makapay.io for full documentation
Contact [email protected] for assistance
Last updated
