telebot-against-war


Nametelebot-against-war JSON
Version 0.7.7 PyPI version JSON
download
home_pagehttps://github.com/bots-against-war/telebot
SummaryAsync-first fork of pyTelegramBotApi
upload_time2025-02-23 14:42:18
maintainerNone
docs_urlNone
authorIgor Vaiman
requires_python<4.0,>=3.9
licenseGPL-2.0-only
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <a href="https://pypi.org/project/telebot-against-war/">
    <img src="https://img.shields.io/pypi/v/telebot-against-war.svg" alt="PyPI package version"/>
  </a>
  <a href="https://pypi.org/project/telebot-against-war/">
    <img src="https://img.shields.io/pypi/pyversions/telebot-against-war.svg" alt="Supported Python versions"/>
  </a>
</p>

# <p align="center">telebot

<p align="center">Async-first fork of <a href="https://github.com/eternnoir/pyTelegramBotAPI">pyTelegramBotApi</a>
library wrapping the <a href="https://core.telegram.org/bots/api">Telegram Bot API</a>.</p>

<p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api#april-16-2022">6.0</a>!

<h2 align="center">See upstream project <a href='https://pytba.readthedocs.io/en/latest/index.html'>docs</a> and 
<a href='https://github.com/eternnoir/pyTelegramBotAPI/blob/master/README.md'>README</a></h2>

Manually merged changes up to version `4.10.0`


## Usage

Install with

```bash
pip install telebot-against-war
```

Basic usage

```python
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](https://python-poetry.org/) to manage dependencies, build and publish the package.
Install as described [here](https://python-poetry.org/docs/master/#installation) and make sure to update
to the latest `1.2.x` version:

```bash
poetry self update 1.2.0b1
```

### Installing and configuring locally

```bash
poetry install
poetry run pre-commit install
```

### Running tests and linters

```bash
poetry shell

pytest tests -vv

mypy telebot

black .
isort .
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bots-against-war/telebot",
    "name": "telebot-against-war",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Igor Vaiman",
    "author_email": "gosha.vaiman@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/59/c8/4cd58b9b3628a7806c85c357b4badd9fdf0f121a5c28b4f4220168410c1a/telebot_against_war-0.7.7.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <a href=\"https://pypi.org/project/telebot-against-war/\">\n    <img src=\"https://img.shields.io/pypi/v/telebot-against-war.svg\" alt=\"PyPI package version\"/>\n  </a>\n  <a href=\"https://pypi.org/project/telebot-against-war/\">\n    <img src=\"https://img.shields.io/pypi/pyversions/telebot-against-war.svg\" alt=\"Supported Python versions\"/>\n  </a>\n</p>\n\n# <p align=\"center\">telebot\n\n<p align=\"center\">Async-first fork of <a href=\"https://github.com/eternnoir/pyTelegramBotAPI\">pyTelegramBotApi</a>\nlibrary wrapping the <a href=\"https://core.telegram.org/bots/api\">Telegram Bot API</a>.</p>\n\n<p align=\"center\">Supported Bot API version: <a href=\"https://core.telegram.org/bots/api#april-16-2022\">6.0</a>!\n\n<h2 align=\"center\">See upstream project <a href='https://pytba.readthedocs.io/en/latest/index.html'>docs</a> and \n<a href='https://github.com/eternnoir/pyTelegramBotAPI/blob/master/README.md'>README</a></h2>\n\nManually merged changes up to version `4.10.0`\n\n\n## Usage\n\nInstall with\n\n```bash\npip install telebot-against-war\n```\n\nBasic usage\n\n```python\nimport asyncio\nfrom telebot import AsyncTeleBot, types\n\n\nasync def minimal_example():\n    bot = AsyncTeleBot(\"TOKEN\")\n\n    @bot.message_handler(commands=[\"start\", \"help\"])\n    async def receive_cmd(m: types.Message):\n        await bot.send_message(m.from_user.id, \"Welcome!\")\n\n\n    @bot.message_handler()  # catch-all handler\n    def receive_message(m: types.Message):\n        await bot.reply_to(m, m.text)\n\n    await bot.infinity_polling(interval=1)\n\n\nasyncio.run(minimal_example())\n\n```\n\n\n## Development\n\nThe project uses [Poetry](https://python-poetry.org/) to manage dependencies, build and publish the package.\nInstall as described [here](https://python-poetry.org/docs/master/#installation) and make sure to update\nto the latest `1.2.x` version:\n\n```bash\npoetry self update 1.2.0b1\n```\n\n### Installing and configuring locally\n\n```bash\npoetry install\npoetry run pre-commit install\n```\n\n### Running tests and linters\n\n```bash\npoetry shell\n\npytest tests -vv\n\nmypy telebot\n\nblack .\nisort .\n```\n\n",
    "bugtrack_url": null,
    "license": "GPL-2.0-only",
    "summary": "Async-first fork of pyTelegramBotApi",
    "version": "0.7.7",
    "project_urls": {
        "Homepage": "https://github.com/bots-against-war/telebot",
        "Repository": "https://github.com/bots-against-war/telebot"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "aaec2b13b9cd0fe416d754ca845008c730b0ffebb6ccb37e0b96e83ff287874d",
                "md5": "a6b8f80b77d491cbfeb71b083a8c0116",
                "sha256": "8f095d93c52f9696e0f8f9718c0bf8b582c67bdfca641446bc75d63d8c5b4387"
            },
            "downloads": -1,
            "filename": "telebot_against_war-0.7.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a6b8f80b77d491cbfeb71b083a8c0116",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 102224,
            "upload_time": "2025-02-23T14:42:16",
            "upload_time_iso_8601": "2025-02-23T14:42:16.653881Z",
            "url": "https://files.pythonhosted.org/packages/aa/ec/2b13b9cd0fe416d754ca845008c730b0ffebb6ccb37e0b96e83ff287874d/telebot_against_war-0.7.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "59c84cd58b9b3628a7806c85c357b4badd9fdf0f121a5c28b4f4220168410c1a",
                "md5": "936a76f986744d646f59d46e484a20f4",
                "sha256": "a082237d3ce06e9ec8128d9cfab5a36467ea6b18d5542df33fa6dae7e0619705"
            },
            "downloads": -1,
            "filename": "telebot_against_war-0.7.7.tar.gz",
            "has_sig": false,
            "md5_digest": "936a76f986744d646f59d46e484a20f4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 95525,
            "upload_time": "2025-02-23T14:42:18",
            "upload_time_iso_8601": "2025-02-23T14:42:18.589343Z",
            "url": "https://files.pythonhosted.org/packages/59/c8/4cd58b9b3628a7806c85c357b4badd9fdf0f121a5c28b4f4220168410c1a/telebot_against_war-0.7.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-23 14:42:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bots-against-war",
    "github_project": "telebot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "telebot-against-war"
}
        
Elapsed time: 0.75772s