Modern visionary telegram bot framework.
Project description
telegrinder
— effective and reliable telegram bot building.
- Type hinted
- Customizable and extensible
- Ready to use scenarios and rules
- Fast models built on msgspec
- Both low-level and high-level API
Basic example:
from telegrinder import API, Message, Telegrinder, Token
from telegrinder.modules import logger
from telegrinder.rules import Text
logger.set_level("INFO")
api = API(token=Token("123:token"))
bot = Telegrinder(api)
@bot.on.message(Text("/start"))
async def start(message: Message) -> None:
me = (await api.get_me()).unwrap()
await message.answer(f"Hello, {message.from_user.full_name}! I'm {me.full_name}.")
bot.run_forever()
Getting started
Install using pip, uv or poetry:
uv add telegrinder
poetry add telegrinder
pip install telegrinder
Or install from source (unstable):
uv add "telegrinder @ git+https://github.com/timoniq/telegrinder@dev"
poetry add git+https://github.com/timoniq/telegrinder.git#dev
pip install git+https://github.com/timoniq/telegrinder/archive/dev.zip
Documentation
Community
Join our telegram forum.
License
Telegrinder is MIT licensed
Copyright © 2022 timoniq
Copyright © 2024 luwqz1
Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
telegrinder-0.5.1.tar.gz
(459.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
telegrinder-0.5.1-py3-none-any.whl
(283.1 kB
view details)
File details
Details for the file telegrinder-0.5.1.tar.gz.
File metadata
- Download URL: telegrinder-0.5.1.tar.gz
- Upload date:
- Size: 459.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
711b622598f132ba645aa9c496a066abb2e6d63ce53d3650d52da08e031ec20b
|
|
| MD5 |
ebcbce4a4e9d64e347f4f108777fc3e8
|
|
| BLAKE2b-256 |
1b689066a40c1b6b5aee9289dce4b7bc2a5a41c10b316351a304fbb48d453a82
|
File details
Details for the file telegrinder-0.5.1-py3-none-any.whl.
File metadata
- Download URL: telegrinder-0.5.1-py3-none-any.whl
- Upload date:
- Size: 283.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e16df97936844aa998c0cc75c735026f38164ea453a178667303cae9c8d10a8a
|
|
| MD5 |
2f317879d6c585ec42eb1c01f74c4b48
|
|
| BLAKE2b-256 |
f9ad910cb6de397418d9aeb6a7132956a5452960a391c42ad8e5a1494affa1cf
|