A Telegram assistant bot for SayaGram communities.
This repository contains the source code and setup instructions for running your own SayaGram assistant bot. It supports group helper commands, inline search responses, welcome messages, and moderation helpers.
- Python 3.6 or higher.
- A Telegram API key.
- A Telegram bot token.
git clone https://github.com/SayaGram/assistant, to download the source code.cd assistant, to enter the directory.python3 -m venv venv && . venv/bin/activateto create and activate a virtual environment.pip install -U -r requirements.txt, to install the requirements.- Create a new
assistant.inifile, copy-paste the following and replace the values with your own:[assistant] api_id = 12345 api_hash = 0123456789abcdef0123456789abcdef bot_token = 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 chats = -1001234567890 -1009876543210
- Run with
python -m assistant. - Stop with CTRL+C and
deactivatethe virtual environment.
MIT (c) 2019-present Dan and SayaGram contributors.