A functional, generic telegram bot template that includes a sqlite database and the general bot setup
A functional, generic telegram bot template that includes a sqlite database and the general bot setup
pip install -r requirements.txt
export API_KEY="your-key"
python3 main.py
This bot does ‘nothing’ but is completely functional!
What is does:
send_message
get_user_by_chat_id
for quick db accessThe only thing you need is to fill this structure with life!
This repository contains code that was written by me across various bot-projects, like:
I collected the most useful and generic functions to save me some time when starting the next bot-project.
This project requires python-telegram-bot
and SQLAlchemy