Skip to main content

PyPI package version Supported Python versions

telebot

Async-first fork of pyTelegramBotApi library wrapping the Telegram Bot API.

Supported Bot API version: 6.0!

See upstream project docs and README

Manually merged changes up to version 4.10.0

Usage

Install with

pip install telebot-against-war

Basic usage

import asyncio
from telebot import AsyncTeleBot, types


async def minimal_example():
    bot = AsyncTeleBot("TOKEN")

    @bot.message_handler(commands=["start", "help"])
    async def receive_cmd(m: types.Message):
        await bot.send_message(m.from_user.id, "Welcome!")


    @bot.message_handler()  # catch-all handler
    def receive_message(m: types.Message):
        await bot.reply_to(m, m.text)

    await bot.infinity_polling(interval=1)


asyncio.run(minimal_example())

Development

The project uses Poetry to manage dependencies, build and publish the package. Install as described here and make sure to update to the latest 1.2.x version:

poetry self update 1.2.0b1

Installing and configuring locally

poetry install
poetry run pre-commit install

Running tests and linters

poetry shell

pytest tests -vv

mypy telebot

ruff check --fix
ruff format

Metadata

Release files for telebot-against-war 0.7.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telebot-against-war 0.7.14
File Size Uploaded Provenance
telebot_against_war-0.7.14.tar.gz 97.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for telebot-against-war 0.7.14
File Interpreter ABI Platform
telebot_against_war-0.7.14-py3-none-any.whl Python 3 none any Details

Total release size: 201.6 kB

Release files / telebot_against_war-0.7.14.tar.gz

Download URL telebot_against_war-0.7.14.tar.gz
Size 97.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cc4eea8acadc42dcad0ef661b701e54f7ff1ac7a6a3324d2ce724992f0f8062b
BLAKE2b-256 checksum
How to use checksums
36201973b6e21485480d176d1524f622a698bfb3c2365afa5c113b72a06d2a78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / telebot_against_war-0.7.14-py3-none-any.whl

Download URL telebot_against_war-0.7.14-py3-none-any.whl
Size 104.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
480e8d67a47b6de3b0ea46cfba8fcce3b4c037f08a09bacd070bf2fe1a8f75c1
BLAKE2b-256 checksum
How to use checksums
f07791da60784b5ea63fccf56a896d7272c6e9c4e1fea10cf619ce5cb1a1b17b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for telebot-against-war 0.7.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.14 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page