mastergroosha / telegram-report-bot Goto Github PK
View Code? Open in Web Editor NEWA simple bot to handle reports from users in your chat
License: MIT License
A simple bot to handle reports from users in your chat
License: MIT License
Currently bot expects /ro
(or /nm
) commands to either don't have any following text (restrict forever) or have restriction time with optional comment. However one case is missing:
/ro {comment}
will not work, since comment will be treated as time, causing an error.
Как с тобой связаться ?)
respected sir ,
i have loved this repo and bot . i copy this codes to my GitHub . (momskidvaava) . but , there is an problem . pls help me to solve that .
i am using my mobile to edit and make the bot . therefore , computer programs are not available on that . pls add a heroku butten for me pls .
pls support me to solve my issue .
Hi! I have settings docker-compose a bit different
I dont use env_file
but use environment
section and i think bot cant see my settings, because it sends me
Incorrect value. Must be one of: en, ru (type=value_error)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/app/bot/__main__.py", line 8, in <module>
from bot.before_start import fetch_admins, check_rights_and_permissions
File "/app/bot/before_start.py", line 6, in <module>
from bot.config_reader import config
File "/app/bot/config_reader.py", line 40, in <module>
config = Settings()
File "pydantic/env_settings.py", line 38, in pydantic.env_settings.BaseSettings.__init__
File "pydantic/main.py", line 331, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Settings
lang
As noted by aiogram maintainer, one can add custom properties which are meant to be constant (like config or lang) directly to Bot instance.
Currently these two properties are pushed to every new update in middleware, which is not performance-wise.
This way, the only middleware can be easily removed, simplifying the code a bit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.