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.0.0.tar.gz (517.5 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.0.0-py3-none-any.whl (323.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: telegrinder-1.0.0.tar.gz
  • Upload date:
  • Size: 517.5 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.0.0.tar.gz
Algorithm Hash digest
SHA256 2f4efd64397ac34259e34da04c27c4571fd46418611d5a7cb1ee86ce366a97e7
MD5 c6ace070fd88decd8e0144f647a1466b
BLAKE2b-256 69ae40b6fa7501581f3acc520055f44cb90f835918150414d17f7609b121ae29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: telegrinder-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 323.7 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf3b7d4ddfe2c07a9d1be9dac0d2e180aff8b0b1a8d505033c9f1c735f1c26fd
MD5 c86c4d7c1696c0800016b9aac70ab841
BLAKE2b-256 e5c0e4f19652df57325e923f16b23cb3be2d7224b9eb4244ed0780f902635428

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