Skip to content

Framework for effective and reliable telegram bot building

License

Notifications You must be signed in to change notification settings

kesha1225/telegrinder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegrinder

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

Getting started

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()

Community

Join our telegram chat.

License

Telegrinder is MIT licensed
Copyright © 2022 timoniq

About

Framework for effective and reliable telegram bot building

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%