telebot-against-war


Nametelebot-against-war JSON
Version 0.6.12 PyPI version JSON
download
home_pagehttps://github.com/bots-against-war/telebot
SummaryAsync-first fork of pyTelegramBotApi
upload_time2023-10-11 14:26:40
maintainer
docs_urlNone
authorIgor Vaiman
requires_python>=3.9,<4.0
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": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Igor Vaiman",
    "author_email": "gosha.vaiman@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5d/e4/d82eb275016485596c91511497579ed10a64df4c42cea29cb1af7336da84/telebot_against_war-0.6.12.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.6.12",
    "project_urls": {
        "Homepage": "https://github.com/bots-against-war/telebot",
        "Repository": "https://github.com/bots-against-war/telebot"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1daeab70fea81668e92849351b69c64428e56933092f6759556ad5beb829097",
                "md5": "7b4d3bea9aa098ccd23d4a9c5fbe4908",
                "sha256": "1fc4f736d520e47624ec497cfcbdcf60dd4c3a01f97e7abf13040f9aa2ea357b"
            },
            "downloads": -1,
            "filename": "telebot_against_war-0.6.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7b4d3bea9aa098ccd23d4a9c5fbe4908",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 100069,
            "upload_time": "2023-10-11T14:26:38",
            "upload_time_iso_8601": "2023-10-11T14:26:38.339459Z",
            "url": "https://files.pythonhosted.org/packages/a1/da/eab70fea81668e92849351b69c64428e56933092f6759556ad5beb829097/telebot_against_war-0.6.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5de4d82eb275016485596c91511497579ed10a64df4c42cea29cb1af7336da84",
                "md5": "56d293c5ddc20335c6b7c3b33d29ee0c",
                "sha256": "def513435085cfa9e8c49467a0ae4afdfeaadaf924664355b590a92fb449de30"
            },
            "downloads": -1,
            "filename": "telebot_against_war-0.6.12.tar.gz",
            "has_sig": false,
            "md5_digest": "56d293c5ddc20335c6b7c3b33d29ee0c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 93633,
            "upload_time": "2023-10-11T14:26:40",
            "upload_time_iso_8601": "2023-10-11T14:26:40.035468Z",
            "url": "https://files.pythonhosted.org/packages/5d/e4/d82eb275016485596c91511497579ed10a64df4c42cea29cb1af7336da84/telebot_against_war-0.6.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-11 14:26:40",
    "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.12879s