Korone - Telegram Bot
!DANGER!
This version is still in development!
PyKorone is a modern and fully asynchronous Telegram bot to improve you Telegram experience, written in Python3 using Pyrogram.
How to contribute
Every open source project lives from the generous help by contributors that sacrifices their time and PyKorone is no different.
Translations
Translations should be done in our Crowdin Project, as Crowdin checks for grammatical issues, provides improved context about the string to be translated and so on, thus possibly providing better quality translations. But you can also submit a pull request if you prefer to translate that way.
Bot setup
Below you can learn how to set up the PyKorone project.
Requirements
- Python 3.9+.
- An Unix-like operating system (Windows isn't supported).
Instructions
- Create a virtualenv (This step is optional, but highly recommended to avoid dependency conflicts)
python3 -m venv .venv
(You don't need to run it again). .venv/bin/activate
(You must run this every time you open the project in a new shell)
- Install dependencies from the pyproject.toml with
python3 -m pip install . -U
.- Use
python3 -m pip install .[fast] -U
to install optional dependencies.
- Use
- Go to https://my.telegram.org/apps and create a new app.
- Create a new
config.toml
file from theconfig.toml.sample
file (cp config.toml.sample config.toml
). - Place your token, IDs and api keys to your
config.toml
file.
Tools and tips
- Use black and isort
- Use flake8 to lint your code.
- Use mypy to type-check your code.
- Don't forget to add the SPDX-License-Identifier header.
- Try to resolve any problems identified by our CI.