Python Telegram bot api.
This report summarizes scanner evidence for eternnoir/pyTelegramBotAPI, a Python project with 8,794 GitHub stars. SynthScan examined 65,024 lines of code across 166 source files, recording 980 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 13.5 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 867 finding(s).
Are imports declared and package/API names verified? 48 finding(s).
Are wrappers, guards, and repeated structures necessary? 870 finding(s).
Which changes need focused human review? 980 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 980 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_rich_message_uploads.py | 36 | def test_rich_message_without_uploads_has_no_files(): | CODE |
| LOW | tests/test_rich_message_uploads.py | 41 | def test_rich_message_methods_upload_media_files(monkeypatch): | CODE |
| LOW | tests/test_rich_message_uploads.py | 59 | def test_async_rich_message_methods_upload_media_files(monkeypatch): | CODE |
| LOW | tests/test_apihelper_95.py | 39 | def test_make_request_patches_selected_multipart_header_formatter(monkeypatch): | CODE |
| LOW | tests/test_apihelper_95.py | 58 | def test_promote_chat_member_can_manage_tags(monkeypatch): | CODE |
| LOW | tests/test_apihelper_95.py | 113 | def test_send_and_edit_checklist_send_checklist_as_json(monkeypatch): | CODE |
| LOW | tests/test_apihelper_95.py | 124 | def test_replace_sticker_in_set_uploads_the_sticker_file(monkeypatch): | CODE |
| LOW | tests/test_apihelper_95.py | 138 | def test_async_checklist_and_replace_sticker(monkeypatch): | CODE |
| LOW | tests/test_async_telebot.py | 35 | def test_infinity_polling_honors_logger_level( | CODE |
| LOW | tests/test_async_telebot.py | 66 | def test_process_polling_retains_update_processing_tasks(): | CODE |
| LOW | tests/test_async_telebot.py | 139 | def test_async_antiflood_returns_result_without_retrying_when_ok(): | CODE |
| LOW | tests/test_async_telebot.py | 154 | def test_async_antiflood_sleeps_retry_after_then_succeeds(): | CODE |
| LOW | tests/test_async_telebot.py | 212 | def test_async_antiflood_final_attempt_propagates_after_budget_exhausted(): | CODE |
| LOW⚡ | tests/test_util.py | 4 | def test_smart_split_exact_multiple_has_no_trailing_empty_part(): | CODE |
| LOW⚡ | tests/test_util.py | 12 | def test_smart_split_short_text(): | CODE |
| LOW⚡ | tests/test_util.py | 18 | def test_smart_split_prefers_newline_then_space(): | CODE |
| LOW⚡ | tests/test_util.py | 23 | def test_smart_split_caps_at_max_message_length(): | CODE |
| LOW⚡ | tests/test_util.py | 28 | def test_extract_arguments_accepts_none(): | CODE |
| LOW⚡ | tests/test_util.py | 34 | def test_extract_arguments_values(): | CODE |
| LOW | tests/test_pickle_storage.py | 8 | def test_state_pickle_storage_accepts_filename_without_directory(tmp_path, monkeypatch): | CODE |
| LOW | tests/test_pickle_storage.py | 15 | def test_async_state_pickle_storage_accepts_filename_without_directory(tmp_path, monkeypatch): | CODE |
| LOW | tests/test_handler_backends.py | 79 | def reply_to_message_update_type(reply_to_message): | CODE |
| LOW | tests/test_handler_backends.py | 107 | def test_memory_handler_backend_default_backend(telegram_bot): | CODE |
| LOW | tests/test_handler_backends.py | 112 | def test_memory_handler_backend_register_next_step_handler(telegram_bot, private_chat, update_type): | CODE |
| LOW | tests/test_handler_backends.py | 129 | def test_memory_handler_backend_clear_next_step_handler(telegram_bot, private_chat, update_type): | CODE |
| LOW | tests/test_handler_backends.py | 148 | def test_memory_handler_backend_register_reply_handler(telegram_bot, private_chat, update_type, | CODE |
| LOW | tests/test_handler_backends.py | 166 | def test_memory_handler_backend_clear_reply_handler(telegram_bot, private_chat, update_type, | CODE |
| LOW | tests/test_handler_backends.py | 186 | def test_file_handler_backend_register_next_step_handler(telegram_bot, private_chat, update_type): | CODE |
| LOW | tests/test_handler_backends.py | 219 | def test_file_handler_backend_clear_next_step_handler(telegram_bot, private_chat, update_type): | CODE |
| LOW | tests/test_handler_backends.py | 252 | def test_redis_handler_backend_register_next_step_handler(telegram_bot, private_chat, update_type): | CODE |
| LOW | tests/test_handler_backends.py | 270 | def test_redis_handler_backend_clear_next_step_handler(telegram_bot, private_chat, update_type): | CODE |
| LOW | tests/test_handler_backends.py | 290 | def test_dump_handlers_without_directory(tmp_path, monkeypatch): | CODE |
| LOW⚡ | tests/test_formatting.py | 20 | def test_hpre_keeps_plain_language(): | CODE |
| LOW⚡ | tests/test_formatting.py | 24 | def test_hpre_escapes_quotes_in_language(): | CODE |
| LOW⚡ | tests/test_formatting.py | 28 | def test_hpre_language_cannot_add_attributes(): | CODE |
| LOW⚡ | tests/test_formatting.py | 37 | def test_hpre_still_escapes_content(): | CODE |
| LOW⚡ | tests/test_formatting.py | 41 | def test_apply_html_entities_date_time(): | CODE |
| LOW | tests/test_formatting.py | 53 | def test_apply_html_entities_date_time_keeps_unix_placeholder(): | CODE |
| LOW | tests/test_formatting.py | 66 | def test_apply_html_entities_escapes_link_url(): | CODE |
| LOW | tests/test_formatting.py | 75 | def test_apply_html_entities_escapes_pre_language(): | CODE |
| LOW | tests/test_formatting.py | 87 | def test_apply_html_entities_still_escapes_content(): | CODE |
| LOW⚡ | tests/test_custom_filters.py | 37 | def test_text_contains_filter_skips_message_without_text(photo_message): | CODE |
| LOW⚡ | tests/test_custom_filters.py | 42 | def test_text_startswith_filter_skips_message_without_text(photo_message): | CODE |
| LOW⚡ | tests/test_custom_filters.py | 46 | def test_is_digit_filter_skips_message_without_text(photo_message): | CODE |
| LOW⚡ | tests/test_custom_filters.py | 50 | def test_text_filters_still_match_text_messages(text_message): | CODE |
| LOW⚡ | tests/test_custom_filters.py | 56 | def test_async_text_filters_skip_message_without_text(photo_message): | CODE |
| LOW⚡ | tests/test_custom_filters.py | 64 | def test_async_text_filters_still_match_text_messages(text_message): | CODE |
| LOW | tests/test_telebot.py | 48 | def test_infinity_polling_honors_logger_level( | CODE |
| LOW | tests/test_telebot.py | 114 | def test_message_handler_lambda(self): | CODE |
| LOW | tests/test_telebot.py | 127 | def test_message_handler_lambda_fail(self): | CODE |
| LOW | tests/test_telebot.py | 140 | def test_message_handler_reg_fail(self): | CODE |
| LOW | tests/test_telebot.py | 153 | def test_send_message_with_markdown(self): | CODE |
| LOW⚡ | tests/test_telebot.py | 319 | def test_send_message_dis_noti(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 325 | def test_send_message_with_markup(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 334 | def test_send_message_with_markup_use_string(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 465 | def test_get_chat_administrators(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 470 | def test_get_chat_members_count(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 475 | def test_export_chat_invite_link(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 480 | def test_create_revoke_detailed_chat_invite_link(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 641 | def test_send_photo_formating_caption(self): | STRING |
| 552 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | telebot/async_telebot.py | 128 | CODE | |
| LOW | telebot/async_telebot.py | 274 | CODE | |
| LOW | telebot/async_telebot.py | 3029 | CODE | |
| LOW | telebot/async_telebot.py | 3086 | CODE | |
| LOW | telebot/async_telebot.py | 3185 | CODE | |
| LOW | telebot/async_telebot.py | 3227 | CODE | |
| LOW | telebot/async_telebot.py | 3291 | CODE | |
| LOW | telebot/async_telebot.py | 3321 | CODE | |
| LOW | telebot/async_telebot.py | 3364 | CODE | |
| LOW | telebot/async_telebot.py | 3379 | CODE | |
| LOW | telebot/async_telebot.py | 3418 | CODE | |
| LOW | telebot/async_telebot.py | 3435 | CODE | |
| LOW | telebot/async_telebot.py | 3523 | CODE | |
| LOW | telebot/async_telebot.py | 3690 | CODE | |
| LOW | telebot/async_telebot.py | 3755 | CODE | |
| LOW | telebot/async_telebot.py | 4199 | CODE | |
| LOW | telebot/async_telebot.py | 4306 | CODE | |
| LOW | telebot/async_telebot.py | 4453 | CODE | |
| LOW | telebot/async_telebot.py | 4556 | CODE | |
| LOW | telebot/async_telebot.py | 4723 | CODE | |
| LOW | telebot/async_telebot.py | 4864 | CODE | |
| LOW | telebot/async_telebot.py | 5038 | CODE | |
| LOW | telebot/async_telebot.py | 5178 | CODE | |
| LOW | telebot/async_telebot.py | 5368 | CODE | |
| LOW | telebot/async_telebot.py | 5543 | CODE | |
| LOW | telebot/async_telebot.py | 5691 | CODE | |
| LOW | telebot/async_telebot.py | 5771 | CODE | |
| LOW | telebot/async_telebot.py | 5872 | CODE | |
| LOW | telebot/async_telebot.py | 6016 | CODE | |
| LOW | telebot/async_telebot.py | 6122 | CODE | |
| LOW | telebot/async_telebot.py | 6275 | CODE | |
| LOW | telebot/async_telebot.py | 6412 | CODE | |
| LOW | telebot/async_telebot.py | 6682 | CODE | |
| LOW | telebot/async_telebot.py | 6769 | CODE | |
| LOW | telebot/async_telebot.py | 7767 | CODE | |
| LOW | telebot/async_telebot.py | 7943 | CODE | |
| LOW | telebot/async_telebot.py | 8108 | CODE | |
| LOW | telebot/async_telebot.py | 8407 | CODE | |
| LOW | telebot/async_telebot.py | 8295 | CODE | |
| LOW | telebot/async_telebot.py | 8411 | CODE | |
| LOW | telebot/async_telebot.py | 8966 | CODE | |
| LOW | telebot/async_telebot.py | 9649 | CODE | |
| LOW | telebot/async_telebot.py | 9733 | CODE | |
| LOW | telebot/async_telebot.py | 9793 | CODE | |
| LOW | telebot/async_telebot.py | 10221 | CODE | |
| LOW | telebot/async_telebot.py | 10241 | CODE | |
| LOW | telebot/asyncio_helper.py | 209 | CODE | |
| LOW | telebot/asyncio_helper.py | 293 | CODE | |
| LOW | telebot/asyncio_helper.py | 335 | CODE | |
| LOW | telebot/asyncio_helper.py | 511 | CODE | |
| LOW | telebot/asyncio_helper.py | 537 | CODE | |
| LOW | telebot/asyncio_helper.py | 606 | CODE | |
| LOW | telebot/asyncio_helper.py | 641 | CODE | |
| LOW | telebot/asyncio_helper.py | 694 | CODE | |
| LOW | telebot/asyncio_helper.py | 751 | CODE | |
| LOW | telebot/asyncio_helper.py | 794 | CODE | |
| LOW | telebot/asyncio_helper.py | 826 | CODE | |
| LOW | telebot/asyncio_helper.py | 871 | CODE | |
| LOW | telebot/asyncio_helper.py | 919 | CODE | |
| LOW | telebot/asyncio_helper.py | 964 | CODE | |
| 133 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 0 | \ hi there, i am echobot. i am here to echo your kind words back to you. just say anything nice and i'll say the exact s | STRING |
| HIGH | examples/echo_bot.py | 0 | \ hi there, i am echobot. i am here to echo your kind words back to you. just say anything nice and i'll say the exact s | STRING |
| HIGH | examples/detect_changes.py | 0 | \ hi there, i am echobot. i am here to echo your kind words back to you. just say anything nice and i'll say the exact s | STRING |
| HIGH | examples/webhook_examples/run_webhooks.py | 0 | \ hi there, i am echobot. i am here to echo your kind words back to you. just say anything nice and i'll say the exact s | STRING |
| HIGH | examples/asynchronous_telebot/detect_changes.py | 0 | \ hi there, i am echobot. i am here to echo your kind words back to you. just say anything nice and i'll say the exact s | STRING |
| HIGH | examples/asynchronous_telebot/webhooks/run_webhooks.py | 0 | \ hi there, i am echobot. i am here to echo your kind words back to you. just say anything nice and i'll say the exact s | STRING |
| HIGH | examples/middleware/function_based/i18n_gettext/main.py | 0 | in this example you will learn how to adapt your bot to different languages using built-in middleware i18n. you need to | STRING |
| HIGH | examples/middleware/class_based/i18n_middleware/main.py | 0 | in this example you will learn how to adapt your bot to different languages using built-in middleware i18n. you need to | STRING |
| HIGH | …ous_telebot/middleware/i18n_middleware_example/main.py | 0 | in this example you will learn how to adapt your bot to different languages using built-in middleware i18n. you need to | STRING |
| HIGH | …s/middleware/function_based/i18n_gettext/i18n_class.py | 0 | this middleware provides high-level tool for internationalization it is based on gettext util. | STRING |
| HIGH | …re/class_based/i18n_middleware/i18n_base_middleware.py | 0 | this middleware provides high-level tool for internationalization it is based on gettext util. | STRING |
| HIGH | …eware/i18n_middleware_example/i18n_base_midddleware.py | 0 | this middleware provides high-level tool for internationalization it is based on gettext util. | STRING |
| HIGH | …s/middleware/function_based/i18n_gettext/i18n_class.py | 0 | looks for translations with passed 'domain' in passed 'path' | STRING |
| HIGH | …re/class_based/i18n_middleware/i18n_base_middleware.py | 0 | looks for translations with passed 'domain' in passed 'path' | STRING |
| HIGH | …eware/i18n_middleware_example/i18n_base_midddleware.py | 0 | looks for translations with passed 'domain' in passed 'path' | STRING |
| HIGH | telebot/async_telebot.py | 0 | once the user has confirmed their payment and shipping details, the bot api sends the final confirmation in the form of | STRING |
| HIGH | telebot/__init__.py | 0 | once the user has confirmed their payment and shipping details, the bot api sends the final confirmation in the form of | STRING |
| HIGH | telebot/asyncio_helper.py | 0 | once the user has confirmed their payment and shipping details, the bot api sends the final confirmation in the form of | STRING |
| HIGH | telebot/apihelper.py | 0 | once the user has confirmed their payment and shipping details, the bot api sends the final confirmation in the form of | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 326 | except Exception as e: | CODE |
| MEDIUM | README.md | 321 | def query_text(inline_query): | CODE |
| LOW | tests/test_telebot.py | 240 | except Exception as e: | STRING |
| LOW | examples/inline_example.py | 21 | except Exception as e: | CODE |
| LOW | examples/inline_example.py | 36 | except Exception as e: | CODE |
| LOW | examples/inline_example.py | 50 | except Exception as e: | CODE |
| LOW | examples/inline_example.py | 59 | except Exception as e: | CODE |
| MEDIUM | examples/inline_example.py | 16 | def query_text(inline_query): | CODE |
| MEDIUM | examples/inline_example.py | 26 | def query_photo(inline_query): | CODE |
| MEDIUM | examples/inline_example.py | 41 | def query_video(inline_query): | CODE |
| MEDIUM | examples/inline_example.py | 55 | def default_query(inline_query): | CODE |
| LOW | examples/step_example.py | 41 | except Exception as e: | STRING |
| LOW | examples/step_example.py | 59 | except Exception as e: | STRING |
| LOW | examples/step_example.py | 73 | except Exception as e: | STRING |
| MEDIUM | examples/step_example.py | 33 | def process_name_step(message): | CODE |
| MEDIUM | examples/step_example.py | 45 | def process_age_step(message): | CODE |
| MEDIUM | examples/step_example.py | 63 | def process_sex_step(message): | CODE |
| LOW | examples/custom_filters/advanced_text_filter.py | 117 | except Exception as err: | CODE |
| LOW | …hronous_telebot/custom_filters/advanced_text_filter.py | 119 | except Exception as err: | CODE |
| LOW | telebot/async_telebot.py | 388 | except Exception as e: | CODE |
| LOW | telebot/async_telebot.py | 503 | except Exception as e: | CODE |
| LOW | telebot/async_telebot.py | 601 | except Exception as e: | CODE |
| LOW | telebot/util.py | 104 | except Exception as e: | CODE |
| LOW | telebot/util.py | 186 | except Exception as e: | CODE |
| LOW | telebot/util.py | 596 | except Exception as e: | STRING |
| MEDIUM | telebot/util.py | 183 | def _run(self): | CODE |
| LOW | telebot/__init__.py | 746 | except Exception as e: | CODE |
| LOW | telebot/__init__.py | 1072 | except Exception as e: | CODE |
| LOW | telebot/__init__.py | 1080 | except Exception as e: | CODE |
| LOW | telebot/__init__.py | 1173 | except Exception as e: | CODE |
| LOW | telebot/__init__.py | 1327 | except Exception as e: | CODE |
| LOW | telebot/__init__.py | 1384 | except Exception as e: | CODE |
| LOW | telebot/__init__.py | 1400 | except Exception as e: | CODE |
| LOW | telebot/__init__.py | 11644 | except Exception as e: | CODE |
| LOW | telebot/ext/reloader.py | 23 | except Exception as e: | CODE |
| MEDIUM | telebot/ext/reloader.py | 16 | def restart_file(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/create_invite_link.py | 2 | CODE | |
| LOW | examples/serverless/flask_google_cloud_bot/main.py | 30 | CODE | |
| LOW | telebot/async_telebot.py | 12 | CODE | |
| LOW | telebot/async_telebot.py | 13 | CODE | |
| LOW | telebot/util.py | 15 | CODE | |
| LOW | telebot/util.py | 15 | CODE | |
| LOW | telebot/util.py | 15 | CODE | |
| LOW | telebot/util.py | 15 | CODE | |
| LOW | telebot/util.py | 15 | CODE | |
| LOW | telebot/util.py | 15 | CODE | |
| LOW | telebot/util.py | 15 | CODE | |
| LOW | telebot/__init__.py | 13 | CODE | |
| LOW | telebot/__init__.py | 14 | CODE | |
| LOW | telebot/__init__.py | 15 | CODE | |
| LOW | telebot/handler_backends.py | 13 | CODE | |
| LOW | telebot/handler_backends.py | 13 | CODE | |
| LOW | telebot/types.py | 2 | CODE | |
| LOW | telebot/asyncio_handler_backends.py | 4 | CODE | |
| LOW | telebot/asyncio_handler_backends.py | 4 | CODE | |
| LOW | telebot/ext/aio/__init__.py | 5 | CODE | |
| LOW | telebot/ext/sync/__init__.py | 5 | CODE | |
| LOW | telebot/storage/__init__.py | 1 | CODE | |
| LOW | telebot/storage/__init__.py | 2 | CODE | |
| LOW | telebot/storage/__init__.py | 3 | CODE | |
| LOW | telebot/storage/__init__.py | 4 | CODE | |
| LOW | telebot/storage/__init__.py | 4 | CODE | |
| LOW | telebot/states/sync/__init__.py | 1 | CODE | |
| LOW | telebot/states/sync/__init__.py | 2 | CODE | |
| LOW | telebot/states/sync/context.py | 1 | CODE | |
| LOW | telebot/states/sync/context.py | 3 | CODE | |
| LOW | telebot/states/sync/middleware.py | 5 | CODE | |
| LOW | telebot/states/asyncio/__init__.py | 1 | CODE | |
| LOW | telebot/states/asyncio/__init__.py | 2 | CODE | |
| LOW | telebot/states/asyncio/middleware.py | 5 | CODE | |
| LOW | telebot/asyncio_storage/pickle_storage.py | 10 | CODE | |
| LOW | telebot/asyncio_storage/__init__.py | 1 | CODE | |
| LOW | telebot/asyncio_storage/__init__.py | 2 | CODE | |
| LOW | telebot/asyncio_storage/__init__.py | 3 | CODE | |
| LOW | telebot/asyncio_storage/__init__.py | 4 | CODE | |
| LOW | telebot/asyncio_storage/__init__.py | 4 | CODE | |
| LOW | telebot/asyncio_storage/redis_storage.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/reply_keyboard_markup_example.py | 48 | CODE | |
| LOW | …k_data_examples/advanced_calendar_example/keyboards.py | 12 | CODE | |
| LOW | …k_data_examples/advanced_calendar_example/keyboards.py | 12 | CODE | |
| LOW | telebot/custom_filters.py | 131 | CODE | |
| LOW | telebot/custom_filters.py | 142 | CODE | |
| LOW | telebot/async_telebot.py | 426 | CODE | |
| LOW | telebot/async_telebot.py | 539 | CODE | |
| LOW | telebot/async_telebot.py | 1040 | CODE | |
| LOW | telebot/asyncio_filters.py | 131 | CODE | |
| LOW | telebot/asyncio_filters.py | 142 | CODE | |
| LOW | telebot/util.py | 286 | CODE | |
| LOW | telebot/util.py | 337 | CODE | |
| LOW | telebot/asyncio_helper.py | 127 | CODE | |
| LOW | telebot/__init__.py | 701 | CODE | |
| LOW | telebot/__init__.py | 1062 | CODE | |
| LOW | telebot/__init__.py | 1271 | CODE | |
| LOW | telebot/__init__.py | 1346 | CODE | |
| LOW | telebot/__init__.py | 9111 | CODE | |
| LOW | telebot/__init__.py | 11517 | CODE | |
| LOW | telebot/__init__.py | 11569 | CODE | |
| LOW | telebot/types.py | 2835 | CODE | |
| LOW | telebot/types.py | 3602 | CODE | |
| LOW | telebot/types.py | 9499 | CODE | |
| LOW | telebot/types.py | 10825 | CODE | |
| LOW | telebot/types.py | 11145 | CODE | |
| LOW | telebot/types.py | 11430 | CODE | |
| LOW | telebot/types.py | 14716 | CODE | |
| LOW | telebot/types.py | 15847 | CODE | |
| LOW | telebot/types.py | 16653 | CODE | |
| LOW | telebot/types.py | 16661 | CODE | |
| LOW | telebot/formatting.py | 376 | CODE | |
| LOW | telebot/formatting.py | 415 | CODE | |
| LOW | telebot/apihelper.py | 84 | CODE | |
| LOW | telebot/states/__init__.py | 55 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/deep_linking.py | 7 | # In this example we are connecting a user account on a website with a Telegram bot. | COMMENT |
| HIGH | examples/middleware/function_based/session.py | 9 | # In this example let's imagine we want to create a session for each user who communicates with the bot to store | COMMENT |
| HIGH | examples/middleware/function_based/i18n.py | 10 | # In this example let's imagine we want to introduce localization or internationalization into our project and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_async_telebot.py | 231 | except ApiTelegramException: | CODE |
| HIGH | telebot/util.py | 102 | except Queue.Empty: | CODE |
| HIGH | telebot/ext/reloader.py | 21 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/custom_filters/text_filter_example.py | 7 | # Check if message starts with @admin tag | COMMENT |
| LOW | examples/custom_filters/text_filter_example.py | 12 | # Check if text is hi or hello | COMMENT |
| LOW | examples/custom_filters/general_custom_filters.py | 21 | @bot.message_handler(is_admin=True, commands=['admin']) # Check if user is admin | CODE |
| LOW | examples/custom_filters/is_filter_example.py | 7 | # Check if message is a reply | COMMENT |
| LOW | examples/custom_filters/is_filter_example.py | 12 | # Check if message was forwarded | COMMENT |
| LOW | …chronous_telebot/custom_filters/text_filter_example.py | 6 | # Check if message starts with @admin tag | COMMENT |
| LOW | …chronous_telebot/custom_filters/text_filter_example.py | 11 | # Check if text is hi or hello | COMMENT |
| LOW | …onous_telebot/custom_filters/general_custom_filters.py | 22 | @bot.message_handler(is_admin=True, commands=['admin']) # Check if user is admin | CODE |
| LOW | …ynchronous_telebot/custom_filters/is_filter_example.py | 8 | # Check if message is a reply | COMMENT |
| LOW | …ynchronous_telebot/custom_filters/is_filter_example.py | 13 | # Check if message was forwarded | COMMENT |
| LOW | telebot/apihelper.py | 129 | params = params or None # Set params to None if empty | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | telebot/apihelper.py | 163 | retry_strategy = requests.packages.urllib3.util.retry.Retry( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/source/conf.py | 1 | # Configuration file for the Sphinx documentation builder. | COMMENT |
| LOW | docs/source/conf.py | 41 | COMMENT | |
| LOW | examples/anonymous_bot.py | 1 | # This bot is needed to connect two people and their subsequent anonymous communication | COMMENT |
| LOW | examples/anonymous_bot.py | 21 | # | COMMENT |
| LOW | examples/anonymous_bot.py | 61 | COMMENT | |
| LOW | examples/deep_linking.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | examples/deep_linking.py | 21 | # your bot will receive a text message containing '/start unique_code', | COMMENT |
| LOW | examples/middleware/function_based/session.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | examples/middleware/function_based/i18n.py | 1 | #!/usr/bin/python | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/stars_payment.py | 1 | # Import required libraries | COMMENT |
| MEDIUM | examples/stars_payment.py | 18 | # Create a custom keyboard with 2 buttons per row | COMMENT |
| MEDIUM | examples/create_invite_link.py | 18 | #Create an invite link class that contains info about the created invite link using create_chat_invite_link() with p | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/test_types.py | 750 | json_str = r'{"label": "label text", "blocks": [{"text": "item block"}], "has_checkbox": true, "is_checked": true, " | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | telebot/async_telebot.py | 255 | def _setup_change_detector(self, path_to_watch: str) -> None: | CODE |
| LOW | telebot/ext/aio/__init__.py | 8 | __all__ = [ | CODE |
| LOW | telebot/ext/sync/__init__.py | 8 | __all__ = [ | CODE |
| LOW | telebot/storage/__init__.py | 7 | __all__ = [ | CODE |
| LOW | telebot/states/sync/__init__.py | 4 | __all__ = [ | CODE |
| LOW | telebot/states/asyncio/__init__.py | 4 | __all__ = [ | CODE |
| LOW | telebot/asyncio_storage/__init__.py | 7 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/asynchronous_telebot/continue_handling.py | 26 | # but you can use any of them because neither of them stops if you | COMMENT |
| LOW | telebot/util.py | 396 | Attention: Don't forget to set parse_mode to 'HTML'! | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_types.py | 2222 | json_str = r'{"id": 1, "from": {"id": 1, "is_bot": false, "first_name": "Test"}, "currency": "USD", "total_amount": | CODE |
| LOW⚡ | tests/test_types.py | 2437 | json_str = r'{"country_code": "US", "state": "CA", "city": "San Jose", "street_line1": "123 Main St", "street_line2" | CODE |
| LOW⚡ | tests/test_types.py | 2443 | assert result.street_line1 == '123 Main St' | CODE |
| LOW | tests/test_types.py | 1130 | json_str = {'name': 'John', 'phone_number': '+1234567890', 'email': 'john@example.com', 'shipping_address': {'countr | CODE |
| LOW | tests/test_types.py | 2500 | json_str = r'{"currency": "USD", "total_amount": 1234, "invoice_payload": "test_payload", "shipping_option_id": "opt | CODE |