
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
This is my own Telegram bot framework for faster development and updating my bots.
Based on Python Telegram Bot.
easy-tg-bot run
The command will create .env
in your working directory if the file does not exist, and in this case you would have to fill it and try again.
Other necessary files are created if they do not exist, and finally main.py
in your working directory is launched.
from easy_tg_bot import command
@command()
async def help(update, context):
pass
By default, in the bot:
Through /admin
-> "⚙️ ...", admins regulate the settings of the bot via .xlsx file manipulation.
All the bot text is stored in an exel file text.xlsx
with "string_text_key":"value" structure, and the columns are the languages.
To add a text, simply add a unique text index and the corresponding value in at least one language (the first column) in the text.xlsx
.
All the text info is preserved in the bot persistance.
from easytgbot import send_message
<- this async function accepts update
, context
, and "string_text_key" from the .xlsx file, as well as regular text = text, parse mode = ... etc.
See __init__.py
for more features.
Logs are rotating automatically.
See main.py
generated by easy-tg-bot run
command for more examples of usage.
This is an installable Python package.
poetry add easy-tg-bot
/ pip install easy-tg-bot
/ any other manager command
Make sure poetry is installed. From this folder,
poetry shell
; poetry update
;
poetry build
; poetry install
;
! Fill the .env
file in your working directory before or after this command
easy-tg-bot run
- run the bot (polling);
easy-tg-bot run --docker
- deploy using .env file
In the bot if run is successful, try /admin
.
Ctrl+C to exit.
easy-tg-bot run
command runs "main.py" file, so one can as well run the file directly after it's created.
/admin
- admin panel
/start
-> makes user pick a language, agree to data_policy and share a phone number.
See main.py
for more details on how to configure the start coveration and explore /admin
README
from __init__.py
FAQs
My Telegram Framework
We found that easy-tg-bot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.