Skip to main content

Modern visionary telegram bot framework.

Project description

Logo

telegrinder

— effective and reliable telegram bot building.

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

Basic example:

from telegrinder import API, Message, Telegrinder, Token
from telegrinder.modules import setup_logger
from telegrinder.rules import Text

setup_logger(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@dev
pip install git+https://github.com/timoniq/telegrinder@dev

Documentation

Tutorial 📖

Community

Join one of our forums.

License

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

Contributors


We welcome your pull requests (contrubution notes). Telegrinder is built by the community

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-1.1.1.tar.gz (550.6 kB view details)

Uploaded Source

Built Distribution

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

telegrinder-1.1.1-py3-none-any.whl (333.4 kB view details)

Uploaded Python 3

File details

Details for the file telegrinder-1.1.1.tar.gz.

File metadata

  • Download URL: telegrinder-1.1.1.tar.gz
  • Upload date:
  • Size: 550.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for telegrinder-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9b962deca519a75634a2295bb1beeacd7b6a48784e8ecedd78e275f6c013feb0
MD5 b2db288a233d78c985e51ef8f85cf9ae
BLAKE2b-256 00be818285f9104b947c914ca91738ee26e3376660208aab267afdd310833571

See more details on using hashes here.

File details

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

File metadata

  • Download URL: telegrinder-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 333.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for telegrinder-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de3091a6968849c35c36364462dd790cbd31c7fa931e1b009f87546c42cb6df5
MD5 2dd26a3e87f7f035f1a37aa79ef2885c
BLAKE2b-256 4094dc869ecb96a4d399ffe8648f7fb87266118bf7a350ca5088f72ebe53f150

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