faf777022002fe165bb72ef008b2ca83040439a0
Salvium Tip Bot
A PHP-based Telegram tip bot for the Salvium (Monero fork) cryptocurrency.
Features
- Telegram tipping via subaddresses
- Wallet interaction via JSON-RPC
- Secure MySQL backend using PDO
- Deposit, withdraw, balance, and tipping commands
- Per-user balances for SAL1 and token assets such as
salCULT - Cron-compatible monitoring of deposits and withdrawals
Installation
- Clone the repo
- Copy
config.sample.phptoconfig.phpand fill in your credentials - Update
config.phpwith your RPC, DB, and Telegram Bot credentials - Set
WITHDRAWALS_ENABLEDtotrueonly when wallet RPC withdrawals should be active - Run the SQL migrations in
migrations/ - Run
salvium_tipbot.phpas a Telegram webhook listener - Schedule
salvium_tipbot_monitor.phpusingcronfor periodic checks
Requirements
- PHP 8.1+
- MySQL 5.7+/MariaDB
- Telegram Bot Token
- Salvium RPC Wallet node
Commands
/withdraw <address> <amount>withdrawsSAL1/withdraw <asset> <address> <amount>withdrawsSAL1or a token asset, for exampleCULT/salCULT/unsweep <asset> <outputs>admin-only command that self-transfers unlocked wallet funds into multiple smaller outputs
Withdrawal fees
WITHDRAWAL_FEEis charged inSAL1forSAL1withdrawals.TOKEN_WITHDRAWALS_CHARGE_SAL1_FEE=falselets token withdrawals use wallet-paidSAL1network fees.- Set
TOKEN_WITHDRAWALS_CHARGE_SAL1_FEE=trueto require and reserveWITHDRAWAL_FEESAL1from the user when withdrawing token assets. MAX_UNSWEEP_OUTPUTSdefaults to 4 because larger single-run SAL1 fan-outs fail in wallet RPC.MAX_TOKEN_UNSWEEP_OUTPUTSlimits token unsweep fan-out per run because token self-transfers also need SAL1 fee transactions.
License
MIT
Description
Languages
PHP
100%