Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

coredump-ch/telegram-groups-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Groups Bot

Build Status

NOTE: This bot is currently unmaintained, since I'm not using it myself anymore. If someone would be interested in taking over the development, let me know in #25.

This bot can be used to manage multiple Telegram topic group chats. In other chat tools, topic groups are known as "channels", but we tried to avoid that terminology because of the Telegram Channels that are something like public groups.

Note that you need a Redis instance on your server.

Docs: https://coredump-ch.github.io/rust-docs/telegram-groups-bot/telegram_groups_bot/

API

The bot provides the following commands:

  • /help Show help
  • /list Show list of available groups
  • /add <name> <url> Register a new topic group

Development

Export env variables that control the logging and specify the bot token:

export RUST_LOG=telegram_groups_bot=debug
export TELEGRAM_BOT_TOKEN=<your-token>
export TELEGRAM_BOT_OWNER=<@your-telegram-username>

Other env vars:

  • REDIS_HOST
  • REDIS_PORT
  • REDIS_DB

Then run the code:

cargo run

License

MIT License

About

Manage topic groups on Telegram.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published