pyTelegramBotAPI 4.16.0__tar.gz → 4.17.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/PKG-INFO +5 -10
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/README.md +3 -8
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/conf.py +1 -1
- pytelegrambotapi-4.17.0/examples/asynchronous_telebot/message_reaction_example.py +35 -0
- pytelegrambotapi-4.17.0/examples/message_reaction_example.py +33 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/pyproject.toml +1 -1
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/__init__.py +8502 -7966
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/apihelper.py +72 -24
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/async_telebot.py +7637 -7102
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/asyncio_handler_backends.py +1 -1
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/asyncio_helper.py +70 -25
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/custom_filters.py +464 -462
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/handler_backends.py +1 -1
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/types.py +9712 -9331
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/util.py +1 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/version.py +1 -1
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/tests/test_handler_backends.py +2 -2
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/.github/ISSUE_TEMPLATE +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/.github/workflows/setup_python.yml +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/.gitignore +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/.readthedocs.yml +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/.travis.yml +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/LICENSE +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/doc_req.txt +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/Makefile +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/_static/logo.png +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/_static/logo2.png +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/async_version/index.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/calldata.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/formatting.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/index.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/install.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/async_version.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/calldata.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/formatting.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/index.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/install.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/quick_start.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/sync_version.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/types.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/en/LC_MESSAGES/util.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/async_version.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/calldata.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/formatting.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/index.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/install.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/quick_start.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/sync_version.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/types.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/locales/ru/LC_MESSAGES/util.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/quick_start.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/sync_version/index.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/types.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/docs/source/util.rst +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/anonymous_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/filters.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/keyboards.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/main.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/callback_data_examples/simple_products_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/chat_join_request.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/chat_member_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/continue_handling.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/custom_filters/admin_filter_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/custom_filters/advanced_text_filter.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/custom_filters/general_custom_filters.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/custom_filters/id_filter_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/custom_filters/is_filter_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/custom_filters/text_filter_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/custom_states.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/detect_changes.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/download_file_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/exception_handler.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/formatting_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/middleware/flooding_middleware.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/middleware/i18n.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/middleware/i18n_middleware_example/i18n_base_midddleware.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/middleware/i18n_middleware_example/keyboards.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/middleware/i18n_middleware_example/locales/en/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/middleware/i18n_middleware_example/locales/ru/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/middleware/i18n_middleware_example/locales/uz_Latn/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/middleware/i18n_middleware_example/main.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/multibot/README.MD +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/multibot/config.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/multibot/handlers.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/multibot/main.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/multibot/nginx_conf.conf +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/register_handler.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/send_file_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/set_command_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/skip_updates_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/timer_bot_async.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/update_listener.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/webhooks/async_webhook_aiohttp_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/webhooks/run_webhooks.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/asynchronous_telebot/webhooks/webhook_starlette_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/callback_data_examples/advanced_calendar_example/filters.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/callback_data_examples/advanced_calendar_example/keyboards.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/callback_data_examples/advanced_calendar_example/main.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/callback_data_examples/simple_products_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/chat_join_request.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/chat_member_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/continue_handling.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/create_invite_link.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/custom_filters/admin_filter_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/custom_filters/advanced_text_filter.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/custom_filters/general_custom_filters.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/custom_filters/id_filter_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/custom_filters/is_filter_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/custom_filters/text_filter_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/custom_states.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/deep_linking.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/detailed_example/detailed_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/detailed_example/kitten.jpg +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/detailed_example/rooster.jpg +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/detect_changes.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/download_file_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/formatting_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/inline_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/inline_keyboard_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/README.md +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/class_based/antiflood_middleware.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/class_based/basic_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/class_based/i18n_middleware/i18n_base_middleware.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/class_based/i18n_middleware/keyboards.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/class_based/i18n_middleware/locales/en/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/class_based/i18n_middleware/locales/ru/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/class_based/i18n_middleware/locales/uz_Latn/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/class_based/i18n_middleware/main.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/function_based/i18n.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/function_based/i18n_gettext/i18n_class.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/function_based/i18n_gettext/keyboards.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/function_based/i18n_gettext/locales/en/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/function_based/i18n_gettext/locales/ru/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/function_based/i18n_gettext/locales/uz_Latn/LC_MESSAGES/messages.po +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/function_based/i18n_gettext/main.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/middleware/function_based/session.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/multibot/README.MD +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/multibot/config.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/multibot/handlers.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/multibot/main.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/multibot/nginx_conf.conf +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/payments_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/poll_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/register_handler.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/reply_keyboard_markup_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/serverless/aws_lambda_function.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/serverless/azure_functions +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/set_command_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/skip_updates_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/step_example.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/telebot_bot/telebot_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/timer_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/README.md +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/run_webhooks.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/webhook_aiohttp_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/webhook_cherrypy_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/webhook_cpython_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/webhook_fastapi_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/webhook_flask_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/webhook_flask_heroku_echo.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/webhook_tornado_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/examples/webhook_examples/webhook_twisted_echo_bot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/requirements.txt +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/asyncio_filters.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/asyncio_storage/__init__.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/asyncio_storage/base_storage.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/asyncio_storage/memory_storage.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/asyncio_storage/pickle_storage.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/asyncio_storage/redis_storage.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/callback_data.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/ext/__init__.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/ext/aio/__init__.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/ext/aio/webhooks.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/ext/reloader.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/ext/sync/__init__.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/ext/sync/webhooks.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/formatting.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/service_utils.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/storage/__init__.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/storage/base_storage.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/storage/memory_storage.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/storage/pickle_storage.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/telebot/storage/redis_storage.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/tests/__init__.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/tests/test_data/record.mp3 +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/tests/test_data/record.ogg +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/tests/test_data/record.wav +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/tests/test_data/test_video.mp4 +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/tests/test_telebot.py +0 -0
- {pytelegrambotapi-4.16.0 → pytelegrambotapi-4.17.0}/tests/test_types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: pyTelegramBotAPI
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.17.0
|
|
4
4
|
Summary: Python Telegram bot api.
|
|
5
5
|
Project-URL: Homepage, https://github.com/eternnoir/pyTelegramBotAPI
|
|
6
6
|
Project-URL: Documentation, https://pytba.readthedocs.org
|
|
@@ -55,7 +55,7 @@ Description-Content-Type: text/markdown
|
|
|
55
55
|
<p align="center">A simple, but extensible Python implementation for the <a href="https://core.telegram.org/bots/api">Telegram Bot API</a>.</p>
|
|
56
56
|
<p align="center">Both synchronous and asynchronous.</p>
|
|
57
57
|
|
|
58
|
-
## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api#
|
|
58
|
+
## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api#march-31-2024">7.2</a>!
|
|
59
59
|
|
|
60
60
|
<h2><a href='https://pytba.readthedocs.io/en/latest/index.html'>Official documentation</a></h2>
|
|
61
61
|
<h2><a href='https://pytba.readthedocs.io/ru/latest/index.html'>Official ru documentation</a></h2>
|
|
@@ -124,12 +124,6 @@ $ pip install pyTelegramBotAPI
|
|
|
124
124
|
```
|
|
125
125
|
* Installation from source (requires git):
|
|
126
126
|
|
|
127
|
-
```
|
|
128
|
-
$ git clone https://github.com/eternnoir/pyTelegramBotAPI.git
|
|
129
|
-
$ cd pyTelegramBotAPI
|
|
130
|
-
$ python setup.py install
|
|
131
|
-
```
|
|
132
|
-
or:
|
|
133
127
|
```
|
|
134
128
|
$ pip install git+https://github.com/eternnoir/pyTelegramBotAPI.git
|
|
135
129
|
```
|
|
@@ -939,6 +933,7 @@ Here are some examples of template:
|
|
|
939
933
|
* [AwesomeChatGPTBot](https://github.com/Kourva/AwesomeChatGPTBot) - Simple ChatGTP-3.5 bot. It is FREE and can remember chat history for a while With pre-defined roles!
|
|
940
934
|
* [QR-Code For You Bot](https://t.me/qrcode_for_you_bot) ([source](https://github.com/arashnm80/qrcode-for-you-bot)) by [Arashnm80](https://github.com/arashnm80). Telegram qrcode generator bot created with pyhton and telebot.
|
|
941
935
|
* [Best Instagram Downloader Bot](https://t.me/Best_Instagram_Downloader_Bot) ([source](https://github.com/arashnm80/best-instagram-downloader)) by [Arashnm80](https://github.com/arashnm80). Free and open source telegram bot to download posts and reels from Instagram.
|
|
942
|
-
* [
|
|
936
|
+
* [4K YouTube Downloader](https://github.com/hansanaD/TelegramYTDLBot/) - Youtube Downloader with upto 4K resolution support.
|
|
937
|
+
* [DrinkGenius-Bot](https://t.me/cocktail_recommendation_bot) ([source](https://github.com/Povladarchik/DrinkGenius-Bot)) by [Povladarchik](https://github.com/Povladarchik). Your personal assistant in the world of cocktails.
|
|
943
938
|
|
|
944
939
|
**Want to have your bot listed here? Just make a pull request. Only bots with public source code are accepted.**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<p align="center">A simple, but extensible Python implementation for the <a href="https://core.telegram.org/bots/api">Telegram Bot API</a>.</p>
|
|
11
11
|
<p align="center">Both synchronous and asynchronous.</p>
|
|
12
12
|
|
|
13
|
-
## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api#
|
|
13
|
+
## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api#march-31-2024">7.2</a>!
|
|
14
14
|
|
|
15
15
|
<h2><a href='https://pytba.readthedocs.io/en/latest/index.html'>Official documentation</a></h2>
|
|
16
16
|
<h2><a href='https://pytba.readthedocs.io/ru/latest/index.html'>Official ru documentation</a></h2>
|
|
@@ -79,12 +79,6 @@ $ pip install pyTelegramBotAPI
|
|
|
79
79
|
```
|
|
80
80
|
* Installation from source (requires git):
|
|
81
81
|
|
|
82
|
-
```
|
|
83
|
-
$ git clone https://github.com/eternnoir/pyTelegramBotAPI.git
|
|
84
|
-
$ cd pyTelegramBotAPI
|
|
85
|
-
$ python setup.py install
|
|
86
|
-
```
|
|
87
|
-
or:
|
|
88
82
|
```
|
|
89
83
|
$ pip install git+https://github.com/eternnoir/pyTelegramBotAPI.git
|
|
90
84
|
```
|
|
@@ -894,6 +888,7 @@ Here are some examples of template:
|
|
|
894
888
|
* [AwesomeChatGPTBot](https://github.com/Kourva/AwesomeChatGPTBot) - Simple ChatGTP-3.5 bot. It is FREE and can remember chat history for a while With pre-defined roles!
|
|
895
889
|
* [QR-Code For You Bot](https://t.me/qrcode_for_you_bot) ([source](https://github.com/arashnm80/qrcode-for-you-bot)) by [Arashnm80](https://github.com/arashnm80). Telegram qrcode generator bot created with pyhton and telebot.
|
|
896
890
|
* [Best Instagram Downloader Bot](https://t.me/Best_Instagram_Downloader_Bot) ([source](https://github.com/arashnm80/best-instagram-downloader)) by [Arashnm80](https://github.com/arashnm80). Free and open source telegram bot to download posts and reels from Instagram.
|
|
897
|
-
* [
|
|
891
|
+
* [4K YouTube Downloader](https://github.com/hansanaD/TelegramYTDLBot/) - Youtube Downloader with upto 4K resolution support.
|
|
892
|
+
* [DrinkGenius-Bot](https://t.me/cocktail_recommendation_bot) ([source](https://github.com/Povladarchik/DrinkGenius-Bot)) by [Povladarchik](https://github.com/Povladarchik). Your personal assistant in the world of cocktails.
|
|
898
893
|
|
|
899
894
|
**Want to have your bot listed here? Just make a pull request. Only bots with public source code are accepted.**
|
|
@@ -22,7 +22,7 @@ copyright = '2022-2023, coder2020official'
|
|
|
22
22
|
author = 'coder2020official'
|
|
23
23
|
|
|
24
24
|
# The full version, including alpha/beta/rc tags
|
|
25
|
-
release = '4.
|
|
25
|
+
release = '4.17.0'
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
# -- General configuration ---------------------------------------------------
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/python3
|
|
2
|
+
|
|
3
|
+
# This is a simple bot using message reactions (emoji)
|
|
4
|
+
# https://core.telegram.org/bots/api#reactiontype
|
|
5
|
+
# https://core.telegram.org/bots/api#update
|
|
6
|
+
# allowed_updates: Specify an empty list to receive all update types except, chat_member, message_reaction, and message_reaction_count.
|
|
7
|
+
# If you want to receive message_reaction events, you cannot simply leave the allowed_updates=None default value.
|
|
8
|
+
# The default list of events does not include chat_member, message_reaction, and message_reaction_count events.
|
|
9
|
+
# You must explicitly specify all the events you wish to receive and add message_reaction to this list.
|
|
10
|
+
# It’s also important to note that after using allowed_updates=[...], in the future, using allowed_updates=None will mean
|
|
11
|
+
# that the list of events you will receive will consist of the events you last explicitly specified.
|
|
12
|
+
|
|
13
|
+
import random
|
|
14
|
+
from telebot.async_telebot import AsyncTeleBot
|
|
15
|
+
from telebot.types import ReactionTypeEmoji
|
|
16
|
+
|
|
17
|
+
API_TOKEN = '<api_token>'
|
|
18
|
+
bot = AsyncTeleBot(API_TOKEN)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# Send a reactions to all messages with content_type 'text' (content_types defaults to ['text'])
|
|
23
|
+
@bot.message_handler(func=lambda message: True)
|
|
24
|
+
async def send_reaction(message):
|
|
25
|
+
emo = ["\U0001F525", "\U0001F917", "\U0001F60E"] # or use ["🔥", "🤗", "😎"]
|
|
26
|
+
await bot.set_message_reaction(message.chat.id, message.id, [ReactionTypeEmoji(random.choice(emo))], is_big=False)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@bot.message_reaction_handler(func=lambda message: True)
|
|
30
|
+
async def get_reactions(message):
|
|
31
|
+
await bot.reply_to(message, f"You changed the reaction from {[r.emoji for r in message.old_reaction]} to {[r.emoji for r in message.new_reaction]}")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
import asyncio
|
|
35
|
+
asyncio.run(bot.infinity_polling(allowed_updates=['message', 'message_reaction']))
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/python3
|
|
2
|
+
|
|
3
|
+
# This is a simple bot using message reactions (emoji)
|
|
4
|
+
# https://core.telegram.org/bots/api#reactiontype
|
|
5
|
+
# https://core.telegram.org/bots/api#update
|
|
6
|
+
# allowed_updates: Specify an empty list to receive all update types except, chat_member, message_reaction, and message_reaction_count.
|
|
7
|
+
# If you want to receive message_reaction events, you cannot simply leave the allowed_updates=None default value.
|
|
8
|
+
# The default list of events does not include chat_member, message_reaction, and message_reaction_count events.
|
|
9
|
+
# You must explicitly specify all the events you wish to receive and add message_reaction to this list.
|
|
10
|
+
# It’s also important to note that after using allowed_updates=[...], in the future, using allowed_updates=None will mean
|
|
11
|
+
# that the list of events you will receive will consist of the events you last explicitly specified.
|
|
12
|
+
|
|
13
|
+
import random
|
|
14
|
+
import telebot
|
|
15
|
+
from telebot.types import ReactionTypeEmoji
|
|
16
|
+
|
|
17
|
+
API_TOKEN = '<api_token>'
|
|
18
|
+
bot = telebot.TeleBot(API_TOKEN)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# Send a reactions to all messages with content_type 'text' (content_types defaults to ['text'])
|
|
22
|
+
@bot.message_handler(func=lambda message: True)
|
|
23
|
+
def send_reaction(message):
|
|
24
|
+
emo = ["\U0001F525", "\U0001F917", "\U0001F60E"] # or use ["🔥", "🤗", "😎"]
|
|
25
|
+
bot.set_message_reaction(message.chat.id, message.id, [ReactionTypeEmoji(random.choice(emo))], is_big=False)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@bot.message_reaction_handler(func=lambda message: True)
|
|
29
|
+
def get_reactions(message):
|
|
30
|
+
bot.reply_to(message, f"You changed the reaction from {[r.emoji for r in message.old_reaction]} to {[r.emoji for r in message.new_reaction]}")
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
bot.infinity_polling(allowed_updates=['message', 'message_reaction'])
|