{"repo":"galeone/raf","free":true,"listed":false,"github":"https://github.com/galeone/raf","clone":"git clone https://github.com/galeone/raf.git","description":"RaF is a bot for creating referral-based contests for your Telegram channels, groups, and supergroups.","language":"Rust","stars":30,"topics":["rust","telegram-bot"],"license":"Apache-2.0","category":"workflow-automation","readme_excerpt":"Telegram RaF \\Refer a Friend\\) RaF is a bot for creating referral-based contests for your Telegram channels, groups and supergroups. Create contests, let your users share their link to your channel/group, increase your audience, and give prizes to the winners! --- Introduction The software is written in rust. Raf depends on a fork of telexide, a rust library for making telegram bots. The fork makes the original library work and solves some issues. The storage used is SQLite: RaF creates a raf.db file in its run path where it saves all the relationships between: - Who owns the channels - The contests created - The invitations each participant generated - The users who joined the channel through an invitation Setup 1. Install RaF For the development version: For the production version: 2. Create the run path and the environment file 3. Copy the systemd service file 4. Start and enable the service The raf.db (to backup or inspect) is in $HOME/.raf/ . Broadcast Feature The bot supports a broadcast feature that allows the bot owner to send messages to all users and channels. To use this feature: 1. Create a broadcast.md file in the bot's run directory ( $HOME/.raf/ ) with the message you want to broadcast. The message supports Markdown formatting. 2. If the bot is currently running, stop it. It requires a separate instance. Now start the bot with the --broadcast flag: 3. Once the bot is running, use the /broadcast command to send the message from broadcast.md to all users and chan","default_branch":null,"files":null,"tree":[],"storefront":"/r/galeone","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/galeone/raf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}