Skip to content

fr0staman/fr0staman_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

fr0staman_bot

Multifunctional funny Telegram bot with pigs 🐷

MSRV

User manual:

Overview

❗️ This repository is rather not an example for beginners, as it combines several technologies, which can complicate the initial learning path.

@fr0staman_bot is a multifunctional game-like bot written in Rust, using teloxide. Bot uses much from Telegram Bot API and solves many (non) classic tasks, so in the code you can see:

  • Multilingualism (with user or chat settings!)
  • Message/Inline/Callback/Chosen filter and handling
  • Optional new/left user reaction
  • Handling chat_migration from chat to supergroup
  • Other Telegram events (video_chat, chat_migration)
  • Telegram channel subscription check
  • Receive from user, moderating gif and voice bot inline content
  • Storing and updating basic information about users and chats
  • Decode inline_message_id and join inline chats with supergroups
  • Callback chained locking per user
  • Increase voice message volume with libopus
  • Quite detailed logging
  • Sending bot errors directly to Telegram log group
  • Metrics with Prometheus

Deployment

  1. Install diesel_cli (--no-default-features --features=mysql)
  2. Install and create mysql database
  3. Copy and fill .env from .env.example
  4. Setup diesel migrations by diesel migration run
  5. Build and start bot (cargo build --release && target/release/fr0staman_bot, cargo run --release)
  6. Enjoy 🐽

About

Telegram bot with pigs πŸ½πŸ·πŸ–

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages