pybotx 0.76.4__tar.gz → 0.77.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.
- pybotx-0.77.0/.github/dependabot.yml +8 -0
- pybotx-0.77.0/.github/pull_request_template.md +8 -0
- pybotx-0.77.0/.github/workflows/publish-pypi.yml +35 -0
- pybotx-0.77.0/.github/workflows/python-app.yml +85 -0
- pybotx-0.77.0/.gitignore +10 -0
- pybotx-0.76.4/README.md → pybotx-0.77.0/PKG-INFO +640 -50
- pybotx-0.76.4/PKG-INFO → pybotx-0.77.0/README.md +621 -76
- pybotx-0.77.0/docs/production_presets.md +163 -0
- pybotx-0.77.0/docs/retry_safety.md +355 -0
- pybotx-0.77.0/docs/widgets/WIDGETS.md +1209 -0
- pybotx-0.77.0/docs/widgets/img.png +0 -0
- pybotx-0.77.0/docs/widgets/img_1.png +0 -0
- pybotx-0.77.0/docs/widgets/img_10.png +0 -0
- pybotx-0.77.0/docs/widgets/img_11.png +0 -0
- pybotx-0.77.0/docs/widgets/img_12.png +0 -0
- pybotx-0.77.0/docs/widgets/img_13.png +0 -0
- pybotx-0.77.0/docs/widgets/img_14.png +0 -0
- pybotx-0.77.0/docs/widgets/img_15.png +0 -0
- pybotx-0.77.0/docs/widgets/img_2.png +0 -0
- pybotx-0.77.0/docs/widgets/img_3.png +0 -0
- pybotx-0.77.0/docs/widgets/img_4.png +0 -0
- pybotx-0.77.0/docs/widgets/img_5.png +0 -0
- pybotx-0.77.0/docs/widgets/img_6.png +0 -0
- pybotx-0.77.0/docs/widgets/img_7.png +0 -0
- pybotx-0.77.0/docs/widgets/img_8.png +0 -0
- pybotx-0.77.0/docs/widgets/img_9.png +0 -0
- pybotx-0.77.0/example/main.py +873 -0
- pybotx-0.77.0/mkdocs.yml +30 -0
- pybotx-0.77.0/poetry.lock +502 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/__init__.py +114 -3
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/bot.py +342 -80
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/bot_accounts_storage.py +38 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/callbacks/callback_manager.py +52 -4
- pybotx-0.77.0/pybotx/bot/command_processing.py +62 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/contextvars.py +2 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/exceptions.py +6 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/handler_collector.py +330 -17
- pybotx-0.77.0/pybotx/bot/healthcheck.py +291 -0
- pybotx-0.77.0/pybotx/bot/ingress_observability.py +276 -0
- pybotx-0.77.0/pybotx/cli.py +491 -0
- pybotx-0.77.0/pybotx/client/botx_method.py +518 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/create_chat.py +1 -1
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/files_api/upload_file.py +1 -0
- pybotx-0.77.0/pybotx/client/http_config.py +436 -0
- pybotx-0.77.0/pybotx/client/observability.py +335 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/upload_file.py +1 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_email.py +5 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_emails.py +5 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_huid.py +19 -2
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_login.py +16 -1
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_other_id.py +19 -2
- pybotx-0.77.0/pybotx/client/users_api/trusted_search.py +7 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/user_from_csv.py +18 -6
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/user_from_search.py +14 -1
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/voex_api/get_call.py +2 -2
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/voex_api/get_conference.py +3 -3
- pybotx-0.77.0/pybotx/constants.py +27 -0
- pybotx-0.77.0/pybotx/integrations/__init__.py +11 -0
- pybotx-0.77.0/pybotx/integrations/fastapi.py +287 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/logger.py +38 -1
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/conference.py +1 -1
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/enums.py +3 -1
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/mentions.py +1 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/users.py +21 -1
- pybotx-0.77.0/pybotx/presets.py +217 -0
- pybotx-0.77.0/pybotx/py.typed +0 -0
- pybotx-0.77.0/pybotx/scaffold/__init__.py +75 -0
- pybotx-0.77.0/pybotx/scaffold/_shared.py +75 -0
- pybotx-0.77.0/pybotx/scaffold/command.py +173 -0
- pybotx-0.77.0/pybotx/scaffold/fsm_flow.py +289 -0
- pybotx-0.77.0/pybotx/scaffold/manifest.py +223 -0
- pybotx-0.77.0/pybotx/scaffold/port.py +76 -0
- pybotx-0.77.0/pybotx/scaffold/project.py +323 -0
- pybotx-0.77.0/pybotx/scaffold/repository.py +235 -0
- pybotx-0.77.0/pybotx/scaffold/service.py +134 -0
- pybotx-0.77.0/pybotx/scaffold/templates.py +3245 -0
- pybotx-0.77.0/pybotx/scaffold/widget.py +395 -0
- pybotx-0.77.0/pybotx/scaffold/widget_flow.py +433 -0
- pybotx-0.77.0/pybotx/widgets/__init__.py +94 -0
- pybotx-0.77.0/pybotx/widgets/approval.py +58 -0
- pybotx-0.77.0/pybotx/widgets/async_job.py +93 -0
- pybotx-0.77.0/pybotx/widgets/base.py +241 -0
- pybotx-0.77.0/pybotx/widgets/calendar.py +255 -0
- pybotx-0.77.0/pybotx/widgets/carousel.py +267 -0
- pybotx-0.77.0/pybotx/widgets/checklist.py +76 -0
- pybotx-0.77.0/pybotx/widgets/checktable.py +82 -0
- pybotx-0.77.0/pybotx/widgets/confirm.py +54 -0
- pybotx-0.77.0/pybotx/widgets/date_range.py +137 -0
- pybotx-0.77.0/pybotx/widgets/factory.py +464 -0
- pybotx-0.77.0/pybotx/widgets/file_batch.py +198 -0
- pybotx-0.77.0/pybotx/widgets/form_wizard.py +163 -0
- pybotx-0.77.0/pybotx/widgets/markup.py +102 -0
- pybotx-0.77.0/pybotx/widgets/messages_pager.py +44 -0
- pybotx-0.77.0/pybotx/widgets/multi_select.py +71 -0
- pybotx-0.77.0/pybotx/widgets/observability.py +262 -0
- pybotx-0.77.0/pybotx/widgets/pagination.py +224 -0
- pybotx-0.77.0/pybotx/widgets/presets.py +99 -0
- pybotx-0.77.0/pybotx/widgets/range.py +98 -0
- pybotx-0.77.0/pybotx/widgets/runner.py +473 -0
- pybotx-0.77.0/pybotx/widgets/search_select.py +121 -0
- pybotx-0.77.0/pybotx/widgets/select.py +60 -0
- pybotx-0.77.0/pybotx/widgets/service.py +37 -0
- pybotx-0.77.0/pybotx/widgets/strings.py +41 -0
- pybotx-0.77.0/pybotx/widgets/table.py +176 -0
- pybotx-0.77.0/pybotx/widgets/undefined.py +13 -0
- pybotx-0.77.0/pyproject.toml +91 -0
- pybotx-0.77.0/scripts/docs-lint +27 -0
- pybotx-0.77.0/scripts/format +6 -0
- pybotx-0.77.0/scripts/lint +8 -0
- pybotx-0.77.0/scripts/test +5 -0
- pybotx-0.77.0/scripts/wip-marks +9 -0
- pybotx-0.77.0/setup.cfg +58 -0
- pybotx-0.77.0/tests/__init__.py +0 -0
- pybotx-0.77.0/tests/client/__init__.py +0 -0
- pybotx-0.77.0/tests/client/bots_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/bots_api/test_bots_list.py +84 -0
- pybotx-0.77.0/tests/client/bots_api/test_get_token.py +78 -0
- pybotx-0.77.0/tests/client/chats_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/chats_api/factories.py +72 -0
- pybotx-0.77.0/tests/client/chats_api/test_add_admin.py +142 -0
- pybotx-0.77.0/tests/client/chats_api/test_add_user.py +112 -0
- pybotx-0.77.0/tests/client/chats_api/test_chat_info.py +448 -0
- pybotx-0.77.0/tests/client/chats_api/test_chat_info_validation.py +35 -0
- pybotx-0.77.0/tests/client/chats_api/test_create_chat.py +272 -0
- pybotx-0.77.0/tests/client/chats_api/test_create_chat_link.py +221 -0
- pybotx-0.77.0/tests/client/chats_api/test_create_thread.py +228 -0
- pybotx-0.77.0/tests/client/chats_api/test_disable_stealth.py +101 -0
- pybotx-0.77.0/tests/client/chats_api/test_list_chats.py +155 -0
- pybotx-0.77.0/tests/client/chats_api/test_list_chats_validation.py +41 -0
- pybotx-0.77.0/tests/client/chats_api/test_personal_chat.py +150 -0
- pybotx-0.77.0/tests/client/chats_api/test_personal_chat_additional.py +133 -0
- pybotx-0.77.0/tests/client/chats_api/test_pin_message.py +112 -0
- pybotx-0.77.0/tests/client/chats_api/test_remove_user.py +112 -0
- pybotx-0.77.0/tests/client/chats_api/test_set_stealth.py +117 -0
- pybotx-0.77.0/tests/client/chats_api/test_unpin_message.py +109 -0
- pybotx-0.77.0/tests/client/events_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/events_api/test_delete_event.py +96 -0
- pybotx-0.77.0/tests/client/events_api/test_edit_event.py +306 -0
- pybotx-0.77.0/tests/client/events_api/test_message_status_event.py +123 -0
- pybotx-0.77.0/tests/client/events_api/test_reply_event.py +289 -0
- pybotx-0.77.0/tests/client/events_api/test_stop_typing_event.py +47 -0
- pybotx-0.77.0/tests/client/events_api/test_typing_event.py +47 -0
- pybotx-0.77.0/tests/client/exceptions/test_callbacks.py +26 -0
- pybotx-0.77.0/tests/client/exceptions/test_http.py +25 -0
- pybotx-0.77.0/tests/client/files_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/files_api/test_download_file.py +256 -0
- pybotx-0.77.0/tests/client/files_api/test_upload_file.py +131 -0
- pybotx-0.77.0/tests/client/notifications_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/notifications_api/test_direct_notification.py +839 -0
- pybotx-0.77.0/tests/client/notifications_api/test_direct_notification_sync.py +132 -0
- pybotx-0.77.0/tests/client/notifications_api/test_internal_bot_notification.py +194 -0
- pybotx-0.77.0/tests/client/notifications_api/test_markup.py +495 -0
- pybotx-0.77.0/tests/client/openid_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/openid_api/test_resfesh_access_token.py +52 -0
- pybotx-0.77.0/tests/client/smartapps_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_custom_notification.py +72 -0
- pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_event.py +191 -0
- pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_manifest.py +541 -0
- pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_notification.py +59 -0
- pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_unread_counter.py +66 -0
- pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_upload_file.py +106 -0
- pybotx-0.77.0/tests/client/smartapps_api/test_smartapps_list.py +71 -0
- pybotx-0.77.0/tests/client/stickers_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/stickers_api/test_add_sticker.py +319 -0
- pybotx-0.77.0/tests/client/stickers_api/test_create_sticker_pack.py +75 -0
- pybotx-0.77.0/tests/client/stickers_api/test_delete_sticker.py +99 -0
- pybotx-0.77.0/tests/client/stickers_api/test_delete_sticker_pack.py +92 -0
- pybotx-0.77.0/tests/client/stickers_api/test_edit_sticker_pack.py +161 -0
- pybotx-0.77.0/tests/client/stickers_api/test_get_sticker.py +110 -0
- pybotx-0.77.0/tests/client/stickers_api/test_get_sticker_pack.py +205 -0
- pybotx-0.77.0/tests/client/stickers_api/test_get_sticker_packs.py +228 -0
- pybotx-0.77.0/tests/client/test_authorized_botx_method.py +106 -0
- pybotx-0.77.0/tests/client/test_botx_method.py +838 -0
- pybotx-0.77.0/tests/client/test_botx_method_callback.py +984 -0
- pybotx-0.77.0/tests/client/test_botx_method_stream.py +182 -0
- pybotx-0.77.0/tests/client/test_botx_method_undefined_cleaned.py +113 -0
- pybotx-0.77.0/tests/client/test_http_config.py +186 -0
- pybotx-0.77.0/tests/client/test_metrics_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/test_metrics_api/test_collect_metric.py +54 -0
- pybotx-0.77.0/tests/client/test_open_telemetry_tracing_collector.py +350 -0
- pybotx-0.77.0/tests/client/test_prometheus_metrics_collector.py +218 -0
- pybotx-0.77.0/tests/client/users_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/users_api/conftest.py +6 -0
- pybotx-0.77.0/tests/client/users_api/convert_to_datetime.py +9 -0
- pybotx-0.77.0/tests/client/users_api/test_search_user_by_email_post.py +239 -0
- pybotx-0.77.0/tests/client/users_api/test_search_user_by_emails.py +129 -0
- pybotx-0.77.0/tests/client/users_api/test_search_user_by_huid.py +193 -0
- pybotx-0.77.0/tests/client/users_api/test_search_user_by_login.py +161 -0
- pybotx-0.77.0/tests/client/users_api/test_search_user_by_other_id.py +156 -0
- pybotx-0.77.0/tests/client/users_api/test_trusted_search.py +81 -0
- pybotx-0.77.0/tests/client/users_api/test_update_user_profile.py +216 -0
- pybotx-0.77.0/tests/client/users_api/test_users_as_csv.py +201 -0
- pybotx-0.77.0/tests/client/voex_api/__init__.py +0 -0
- pybotx-0.77.0/tests/client/voex_api/test_call.py +113 -0
- pybotx-0.77.0/tests/client/voex_api/test_conference.py +120 -0
- pybotx-0.77.0/tests/conftest.py +479 -0
- pybotx-0.77.0/tests/deprecated/test_authorized_botx_method_v1.py +210 -0
- pybotx-0.77.0/tests/deprecated/test_lifespan_v1.py +126 -0
- pybotx-0.77.0/tests/deprecated/test_search_user_by_email_get.py +183 -0
- pybotx-0.77.0/tests/deprecated/test_verify_request_v1.py +581 -0
- pybotx-0.77.0/tests/fixtures/users_api.py +145 -0
- pybotx-0.77.0/tests/models/__init__.py +0 -0
- pybotx-0.77.0/tests/models/test_api_base_property.py +59 -0
- pybotx-0.77.0/tests/models/test_bot_account.py +24 -0
- pybotx-0.77.0/tests/models/test_bot_account_with_secret.py +42 -0
- pybotx-0.77.0/tests/models/test_botx_api_markup.py +151 -0
- pybotx-0.77.0/tests/models/test_enums.py +58 -0
- pybotx-0.77.0/tests/models/test_enums_property.py +138 -0
- pybotx-0.77.0/tests/models/test_incoming_message.py +101 -0
- pybotx-0.77.0/tests/models/test_incoming_message_validation.py +52 -0
- pybotx-0.77.0/tests/models/test_markup.py +15 -0
- pybotx-0.77.0/tests/models/test_mentions_list.py +60 -0
- pybotx-0.77.0/tests/models/test_status_recipient.py +24 -0
- pybotx-0.77.0/tests/models/test_sync_smartapp_event.py +49 -0
- pybotx-0.77.0/tests/models/test_users.py +58 -0
- pybotx-0.77.0/tests/system_events/factories.py +89 -0
- pybotx-0.77.0/tests/system_events/test_added_to_chat.py +99 -0
- pybotx-0.77.0/tests/system_events/test_chat_created.py +128 -0
- pybotx-0.77.0/tests/system_events/test_chat_deleted_by_user.py +89 -0
- pybotx-0.77.0/tests/system_events/test_conference_changed.py +92 -0
- pybotx-0.77.0/tests/system_events/test_conference_created.py +67 -0
- pybotx-0.77.0/tests/system_events/test_conference_deleted.py +67 -0
- pybotx-0.77.0/tests/system_events/test_cts_login.py +206 -0
- pybotx-0.77.0/tests/system_events/test_cts_logout.py +88 -0
- pybotx-0.77.0/tests/system_events/test_deleted_from_chat.py +98 -0
- pybotx-0.77.0/tests/system_events/test_event_delete.py +73 -0
- pybotx-0.77.0/tests/system_events/test_event_edit.py +128 -0
- pybotx-0.77.0/tests/system_events/test_internal_bot_notification.py +107 -0
- pybotx-0.77.0/tests/system_events/test_join_to_chat.py +71 -0
- pybotx-0.77.0/tests/system_events/test_left_from_chat.py +98 -0
- pybotx-0.77.0/tests/system_events/test_smartapp_event.py +169 -0
- pybotx-0.77.0/tests/test_async_buffer.py +115 -0
- pybotx-0.77.0/tests/test_attachments.py +398 -0
- pybotx-0.77.0/tests/test_base_command.py +260 -0
- pybotx-0.77.0/tests/test_bot_constructing.py +491 -0
- pybotx-0.77.0/tests/test_bot_edge_cases.py +67 -0
- pybotx-0.77.0/tests/test_command_processing.py +19 -0
- pybotx-0.77.0/tests/test_end_to_end.py +395 -0
- pybotx-0.77.0/tests/test_exception_middleware.py +112 -0
- pybotx-0.77.0/tests/test_fastapi_adapter.py +310 -0
- pybotx-0.77.0/tests/test_files.py +363 -0
- pybotx-0.77.0/tests/test_handler_collector.py +1083 -0
- pybotx-0.77.0/tests/test_healthcheck.py +244 -0
- pybotx-0.77.0/tests/test_incoming_message.py +618 -0
- pybotx-0.77.0/tests/test_ingress_observability.py +178 -0
- pybotx-0.77.0/tests/test_lifespan.py +88 -0
- pybotx-0.77.0/tests/test_logger.py +70 -0
- pybotx-0.77.0/tests/test_logs.py +139 -0
- pybotx-0.77.0/tests/test_middlewares.py +208 -0
- pybotx-0.77.0/tests/test_personal_chat_ensure.py +163 -0
- pybotx-0.77.0/tests/test_presets.py +245 -0
- pybotx-0.77.0/tests/test_scaffold.py +1426 -0
- pybotx-0.77.0/tests/test_scaffold_edge_cases.py +334 -0
- pybotx-0.77.0/tests/test_state.py +93 -0
- pybotx-0.77.0/tests/test_status.py +343 -0
- pybotx-0.77.0/tests/test_stickers.py +79 -0
- pybotx-0.77.0/tests/test_system_events_routing.py +138 -0
- pybotx-0.77.0/tests/test_verify_request.py +549 -0
- pybotx-0.77.0/tests/testkit/__init__.py +15 -0
- pybotx-0.77.0/tests/testkit/botx.py +94 -0
- pybotx-0.77.0/tests/widgets/test_approval.py +57 -0
- pybotx-0.77.0/tests/widgets/test_async_job.py +96 -0
- pybotx-0.77.0/tests/widgets/test_base.py +216 -0
- pybotx-0.77.0/tests/widgets/test_calendar.py +253 -0
- pybotx-0.77.0/tests/widgets/test_carousel.py +355 -0
- pybotx-0.77.0/tests/widgets/test_checklist.py +94 -0
- pybotx-0.77.0/tests/widgets/test_checktable.py +86 -0
- pybotx-0.77.0/tests/widgets/test_confirm.py +56 -0
- pybotx-0.77.0/tests/widgets/test_date_range.py +123 -0
- pybotx-0.77.0/tests/widgets/test_factory.py +681 -0
- pybotx-0.77.0/tests/widgets/test_file_batch.py +132 -0
- pybotx-0.77.0/tests/widgets/test_form_wizard.py +188 -0
- pybotx-0.77.0/tests/widgets/test_markup.py +50 -0
- pybotx-0.77.0/tests/widgets/test_messages_pager.py +70 -0
- pybotx-0.77.0/tests/widgets/test_module.py +95 -0
- pybotx-0.77.0/tests/widgets/test_multi_select.py +108 -0
- pybotx-0.77.0/tests/widgets/test_observability.py +183 -0
- pybotx-0.77.0/tests/widgets/test_pagination.py +317 -0
- pybotx-0.77.0/tests/widgets/test_presets.py +150 -0
- pybotx-0.77.0/tests/widgets/test_range.py +160 -0
- pybotx-0.77.0/tests/widgets/test_runner.py +529 -0
- pybotx-0.77.0/tests/widgets/test_search_select.py +127 -0
- pybotx-0.77.0/tests/widgets/test_select.py +49 -0
- pybotx-0.77.0/tests/widgets/test_service.py +47 -0
- pybotx-0.77.0/tests/widgets/test_table.py +120 -0
- pybotx-0.77.0/uv.lock +1302 -0
- pybotx-0.76.4/pybotx/client/botx_method.py +0 -207
- pybotx-0.76.4/pybotx/constants.py +0 -10
- pybotx-0.76.4/pyproject.toml +0 -83
- {pybotx-0.76.4 → pybotx-0.77.0}/LICENSE +0 -0
- {pybotx-0.76.4/pybotx/bot → pybotx-0.77.0/example}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/async_buffer.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/auth.py +0 -0
- {pybotx-0.76.4/pybotx/bot/api → pybotx-0.77.0/pybotx/bot}/__init__.py +0 -0
- {pybotx-0.76.4/pybotx/bot/api/responses → pybotx-0.77.0/pybotx/bot/api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/api/exceptions.py +0 -0
- {pybotx-0.76.4/pybotx/bot/callbacks → pybotx-0.77.0/pybotx/bot/api/responses}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/api/responses/bot_disabled.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/api/responses/command_accepted.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/api/responses/unverified_request.py +0 -0
- {pybotx-0.76.4/pybotx/bot/middlewares → pybotx-0.77.0/pybotx/bot/callbacks}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/callbacks/callback_memory_repo.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/callbacks/callback_repo_proto.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/handler.py +0 -0
- {pybotx-0.76.4/pybotx/client → pybotx-0.77.0/pybotx/bot/middlewares}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/middlewares/exception_middleware.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/testing.py +0 -0
- {pybotx-0.76.4/pybotx/client/bots_api → pybotx-0.77.0/pybotx/client}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/authorized_botx_method.py +0 -0
- {pybotx-0.76.4/pybotx/client/chats_api → pybotx-0.77.0/pybotx/client/bots_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/bots_api/bot_catalog.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/bots_api/get_token.py +0 -0
- {pybotx-0.76.4/pybotx/client/events_api → pybotx-0.77.0/pybotx/client/chats_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/add_admin.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/add_user.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/chat_info.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/create_chat_link.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/create_thread.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/disable_stealth.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/list_chats.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/personal_chat.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/pin_message.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/remove_user.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/set_stealth.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/unpin_message.py +0 -0
- {pybotx-0.76.4/pybotx/client/exceptions → pybotx-0.77.0/pybotx/client/events_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/delete_event.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/edit_event.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/message_status_event.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/reply_event.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/stop_typing_event.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/typing_event.py +0 -0
- {pybotx-0.76.4/pybotx/client/files_api → pybotx-0.77.0/pybotx/client/exceptions}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/base.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/callbacks.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/chats.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/common.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/event.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/files.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/http.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/message.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/notifications.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/users.py +0 -0
- {pybotx-0.76.4/pybotx/client/mertics_api → pybotx-0.77.0/pybotx/client/files_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/files_api/download_file.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/get_token.py +0 -0
- {pybotx-0.76.4/pybotx/client/notifications_api → pybotx-0.77.0/pybotx/client/mertics_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/mertics_api/collect_bot_function.py +0 -0
- {pybotx-0.76.4/pybotx/client/openid_api → pybotx-0.77.0/pybotx/client/notifications_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/notifications_api/direct_notification.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/notifications_api/internal_bot_notification.py +0 -0
- {pybotx-0.76.4/pybotx/client/smartapps_api → pybotx-0.77.0/pybotx/client/openid_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/openid_api/refresh_access_token.py +0 -0
- {pybotx-0.76.4/pybotx/client/stickers_api → pybotx-0.77.0/pybotx/client/smartapps_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/exceptions.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_custom_notification.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_event.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_manifest.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_notification.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_unread_counter.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapps_list.py +0 -0
- {pybotx-0.76.4/pybotx/client/users_api → pybotx-0.77.0/pybotx/client/stickers_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/add_sticker.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/create_sticker_pack.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/delete_sticker.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/delete_sticker_pack.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/edit_sticker_pack.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/exceptions.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/get_sticker.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/get_sticker_pack.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/get_sticker_packs.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/sticker_pack.py +0 -0
- {pybotx-0.76.4/pybotx/client/voex_api → pybotx-0.77.0/pybotx/client/users_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/update_user_profile.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/users_as_csv.py +0 -0
- {pybotx-0.76.4/pybotx/models → pybotx-0.77.0/pybotx/client/voex_api}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/voex_api/exceptions.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/converters.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/image_validators.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/missing.py +0 -0
- {pybotx-0.76.4/pybotx/models/message → pybotx-0.77.0/pybotx/models}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/api_base.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/async_files.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/attachments.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/base_command.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/bot_account.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/bot_catalog.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/bot_sender.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/call.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/chats.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/commands.py +0 -0
- {pybotx-0.76.4/pybotx/models/system_events → pybotx-0.77.0/pybotx/models/message}/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/edit_message.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/forward.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/incoming_message.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/markup.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/message_status.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/outgoing_message.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/reply.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/reply_message.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/method_callbacks.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/smartapps.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/status.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/stickers.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/sync_smartapp_event.py +0 -0
- /pybotx-0.76.4/pybotx/py.typed → /pybotx-0.77.0/pybotx/models/system_events/__init__.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/added_to_chat.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/chat_created.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/chat_deleted_by_user.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/conference_changed.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/conference_created.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/conference_deleted.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/cts_login.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/cts_logout.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/deleted_from_chat.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/event_delete.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/event_edit.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/internal_bot_notification.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/left_from_chat.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/smartapp_event.py +0 -0
- {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/user_joined_to_chat.py +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## PR checklist
|
|
2
|
+
|
|
3
|
+
- [ ] I've written good commit message for all commits
|
|
4
|
+
- [ ] I've split changes into separate commits where it's appropriate
|
|
5
|
+
- [ ] I've added the description of function to documentation
|
|
6
|
+
- [ ] I've updated project version in `pyproject.toml`
|
|
7
|
+
- [ ] I'll make a release when PR is merged
|
|
8
|
+
- [ ] I'll bump `pybotx` in `bot-template`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Publish python package
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- "*.*.*"
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
runs-on: ubuntu-22.04
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v7
|
|
11
|
+
with:
|
|
12
|
+
fetch-depth: 0
|
|
13
|
+
- name: Assert tag is from master or release-candidate
|
|
14
|
+
run: |
|
|
15
|
+
if ! git merge-base --is-ancestor HEAD origin/master &&
|
|
16
|
+
! git merge-base --is-ancestor HEAD origin/release-candidate; then
|
|
17
|
+
echo "Tag must point to a commit on master or release-candidate" >&2
|
|
18
|
+
exit 1
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
- name: Setup Python
|
|
22
|
+
uses: actions/setup-python@v7
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.13"
|
|
25
|
+
|
|
26
|
+
- name: Install uv
|
|
27
|
+
run: python -m pip install --upgrade pip uv
|
|
28
|
+
|
|
29
|
+
- name: Build package
|
|
30
|
+
run: uv build
|
|
31
|
+
|
|
32
|
+
- name: Publish to PyPI
|
|
33
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
34
|
+
with:
|
|
35
|
+
password: ${{ secrets.PYPI_TOKEN }}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
name: Python application
|
|
2
|
+
on: push
|
|
3
|
+
jobs:
|
|
4
|
+
|
|
5
|
+
test:
|
|
6
|
+
name: Test
|
|
7
|
+
runs-on: ubuntu-22.04
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout repository
|
|
14
|
+
uses: actions/checkout@v7
|
|
15
|
+
|
|
16
|
+
- name: Setup Python
|
|
17
|
+
uses: actions/setup-python@v7
|
|
18
|
+
with:
|
|
19
|
+
python-version: ${{ matrix.python-version }}
|
|
20
|
+
|
|
21
|
+
- name: Install uv
|
|
22
|
+
run: python -m pip install --upgrade pip uv
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: uv sync --dev
|
|
26
|
+
|
|
27
|
+
- name: Run tests
|
|
28
|
+
env:
|
|
29
|
+
BOT_CREDENTIALS: ${{ secrets.END_TO_END_TESTS_BOT_CREDENTIALS }}
|
|
30
|
+
run: |
|
|
31
|
+
uv run ./scripts/test --cov=pybotx --cov-report=xml
|
|
32
|
+
|
|
33
|
+
- name: Upload coverage to Codecov
|
|
34
|
+
uses: codecov/codecov-action@v7
|
|
35
|
+
with:
|
|
36
|
+
fail_ci_if_error: true
|
|
37
|
+
files: ./coverage.xml
|
|
38
|
+
flags: unittests
|
|
39
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
40
|
+
|
|
41
|
+
lint:
|
|
42
|
+
name: Lint
|
|
43
|
+
runs-on: ubuntu-22.04
|
|
44
|
+
|
|
45
|
+
steps:
|
|
46
|
+
- name: Checkout repository
|
|
47
|
+
uses: actions/checkout@v7
|
|
48
|
+
|
|
49
|
+
- name: Setup Python
|
|
50
|
+
uses: actions/setup-python@v7
|
|
51
|
+
with:
|
|
52
|
+
python-version: "3.13"
|
|
53
|
+
|
|
54
|
+
- name: Install uv
|
|
55
|
+
run: python -m pip install --upgrade pip uv
|
|
56
|
+
|
|
57
|
+
- name: Install dependencies
|
|
58
|
+
run: uv sync --dev
|
|
59
|
+
|
|
60
|
+
- name: Run linters
|
|
61
|
+
run: |
|
|
62
|
+
uv run ./scripts/lint
|
|
63
|
+
|
|
64
|
+
docs-lint:
|
|
65
|
+
name: Docs lint
|
|
66
|
+
runs-on: ubuntu-22.04
|
|
67
|
+
|
|
68
|
+
steps:
|
|
69
|
+
- name: Checkout repository
|
|
70
|
+
uses: actions/checkout@v7
|
|
71
|
+
|
|
72
|
+
- name: Setup Python
|
|
73
|
+
uses: actions/setup-python@v7
|
|
74
|
+
with:
|
|
75
|
+
python-version: "3.13"
|
|
76
|
+
|
|
77
|
+
- name: Install uv
|
|
78
|
+
run: python -m pip install --upgrade pip uv
|
|
79
|
+
|
|
80
|
+
- name: Install dependencies
|
|
81
|
+
run: uv sync --dev
|
|
82
|
+
|
|
83
|
+
- name: Run linters
|
|
84
|
+
run: |
|
|
85
|
+
uv run bash ./scripts/docs-lint
|