Skip to main content

Modern visionary telegram bot framework.

Project description

Telegrinder

telegrinder

— effective and reliable telegram bot building.

Still in development GitHub License Code Style Type Checker Python versions Telegram Bot API Version

  • 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:

PyPI Version

uv add telegrinder
poetry add telegrinder
pip install telegrinder

Or install from source (unstable):

GitHub CI

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

Tutorial

Community

Join our telegram forum.

License

Telegrinder is MIT licensed
Copyright © 2022 timoniq
Copyright © 2024 luwqz1

Contributors

How to contribute

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telegrinder-0.5.1-py3-none-any.whl (283.1 kB view details)

Uploaded Python 3

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

Hashes for telegrinder-0.5.1.tar.gz
Algorithm Hash digest
SHA256 711b622598f132ba645aa9c496a066abb2e6d63ce53d3650d52da08e031ec20b
MD5 ebcbce4a4e9d64e347f4f108777fc3e8
BLAKE2b-256 1b689066a40c1b6b5aee9289dce4b7bc2a5a41c10b316351a304fbb48d453a82

See more details on using hashes here.

File details

Details for the file telegrinder-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for telegrinder-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e16df97936844aa998c0cc75c735026f38164ea453a178667303cae9c8d10a8a
MD5 2f317879d6c585ec42eb1c01f74c4b48
BLAKE2b-256 f9ad910cb6de397418d9aeb6a7132956a5452960a391c42ad8e5a1494affa1cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page