cofob / botka

Telegram bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

F0RTHSP4CE Telegram Bot

Telegram Bot Internal Discussion Topic Wiki HTTP API Grafana Dashboard

Build

This project uses Nix flakes to manage dependencies, ensuring a reliable and reproducible build environment. To get started:

  1. Install Nix or NixOS by following instructions at nixos.org/download.
  2. Enable Nix flakes as per the guide on NixOS Wiki.

Alternatively, install Cargo and Rust using the instructions found at Rust's official site.

To build the project:

  • For a release build, run nix build. The resulting binary can be found at ./result/bin/f0bot.
  • For setting up a development environment with necessary dependencies, run nix develop. Inside this environment, you can compile the project with cargo build.

Running the Bot Locally

  1. Use @BotFather to create a new Telegram bot, create a test chat with topics, and add the bot as an administrator.
  2. Copy config.example.yaml and adjust it as needed, particularly the telegram.token.
  3. Start the bot with cargo run bot my-config.yaml.

Development Conventions

This project follows these conventions:

About

Telegram bot

License:The Unlicense


Languages

Language:Rust 90.6%Language:JavaScript 3.8%Language:Python 2.9%Language:Nix 2.2%Language:Just 0.4%