Framework for effective and reliable telegram bot building.
Still in development.
- Type hinted
- Customizable and extensible
- Ready to use scenarios and rules
- Fast models built on msgspec
- Both low-level and high-level API
Install using PyPI:
pip install telegrinder
Basic example:
from telegrinder import Telegrinder, API, Token, Message
from telegrinder.rules import Text
import logging
api = API(token=Token("123:token"))
bot = Telegrinder(api)
logging.basicConfig(level=logging.INFO)
@bot.on.message(Text("/start"))
async def start(message: Message):
me = (await api.get_me()).unwrap()
await message.answer(f"Hello, {me.first_name}")
bot.run_forever()
Join our telegram chat.
Telegrinder is MIT licensed
Copyright © 2022 timoniq