Python Telegram bot api.
This report summarizes scanner evidence for eternnoir/pyTelegramBotAPI, a Python project with 8,787 GitHub stars. SynthScan examined 64,555 lines of code across 161 source files, recording 945 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 12.9 (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.
Can maintainers explain intent, assumptions, and trade-offs? 832 finding(s).
Are imports declared and package/API names verified? 48 finding(s).
Are wrappers, guards, and repeated structures necessary? 836 finding(s).
Which changes need focused human review? 945 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 945 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_apihelper_95.py | 36 | def test_make_request_patches_selected_multipart_header_formatter(monkeypatch): | CODE |
| LOW | tests/test_apihelper_95.py | 55 | def test_promote_chat_member_can_manage_tags(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_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_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 |
| LOW⚡ | tests/test_telebot.py | 647 | def test_send_video_formatting_caption(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 653 | def test_send_audio_formatting_caption(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 659 | def test_send_voice_formatting_caprion(self): | STRING |
| LOW⚡ | tests/test_telebot.py | 666 | def test_send_media_group_formatting_caption(self): | STRING |
| LOW | tests/test_telebot.py | 163 | def test_send_message_with_disable_notification(self): | STRING |
| LOW | tests/test_telebot.py | 182 | def test_send_file_with_filename(self): | STRING |
| LOW | tests/test_telebot.py | 223 | def test_send_video_more_params(self): | STRING |
| LOW | tests/test_telebot.py | 229 | def test_send_video_more_params_dis_noti(self): | STRING |
| LOW | tests/test_telebot.py | 345 | def test_send_message_with_inlinemarkup(self): | STRING |
| LOW | tests/test_telebot.py | 368 | def test_forward_message_dis_noti(self): | STRING |
| LOW | tests/test_telebot.py | 403 | def test_send_location_dis_noti(self): | STRING |
| LOW | tests/test_telebot.py | 439 | def test_edit_message_caption(self): | STRING |
| LOW | tests/test_telebot.py | 630 | def test_send_media_group_local_files(self): | STRING |
| LOW | tests/test_telebot.py | 678 | def test_send_document_formating_caption(self): | STRING |
| LOW | tests/test_telebot.py | 702 | def test_typed_middleware_handler(self): | STRING |
| LOW | tests/test_telebot.py | 723 | def test_default_middleware_handler(self): | STRING |
| LOW⚡ | tests/test_types.py | 557 | def test_json_richtextunderline(): | CODE |
| LOW⚡ | tests/test_types.py | 564 | def test_json_richtextstrikethrough(): | CODE |
| LOW⚡ | tests/test_types.py | 571 | def test_json_richtextspoiler(): | CODE |
| LOW⚡ | tests/test_types.py | 578 | def test_json_richtextsubscript(): | CODE |
| LOW⚡ | tests/test_types.py | 585 | def test_json_richtextsuperscript(): | CODE |
| LOW⚡ | tests/test_types.py | 613 | def test_json_richtextdatetime(): | CODE |
| LOW⚡ | tests/test_types.py | 622 | def test_json_richtexttextmention(): | CODE |
| LOW⚡ | tests/test_types.py | 630 | def test_json_richtextanchorlink(): | CODE |
| LOW⚡ | tests/test_types.py | 646 | def test_json_richtextemailaddress(): | CODE |
| LOW⚡ | tests/test_types.py | 654 | def test_json_richtextphonenumber(): | CODE |
| LOW⚡ | tests/test_types.py | 662 | def test_json_richtextbankcardnumber(): | CODE |
| LOW⚡ | tests/test_types.py | 670 | def test_json_richblockparagraph(): | CODE |
| LOW⚡ | tests/test_types.py | 677 | def test_json_richblockpreformatted(): | CODE |
| LOW⚡ | tests/test_types.py | 685 | def test_json_richblockfooter(): | CODE |
| 518 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 | 508 | CODE | |
| LOW | telebot/asyncio_helper.py | 534 | CODE | |
| LOW | telebot/asyncio_helper.py | 603 | CODE | |
| LOW | telebot/asyncio_helper.py | 638 | CODE | |
| LOW | telebot/asyncio_helper.py | 691 | CODE | |
| LOW | telebot/asyncio_helper.py | 748 | CODE | |
| LOW | telebot/asyncio_helper.py | 791 | CODE | |
| LOW | telebot/asyncio_helper.py | 823 | CODE | |
| LOW | telebot/asyncio_helper.py | 868 | CODE | |
| LOW | telebot/asyncio_helper.py | 916 | CODE | |
| LOW | telebot/asyncio_helper.py | 961 | 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 | 595 | 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 | 285 | CODE | |
| LOW | telebot/util.py | 336 | 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 | 14687 | CODE | |
| LOW | telebot/types.py | 15833 | 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 |
|---|---|---|---|---|
| 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/types.py | 14693 | # Check if string is valid json. If so, assume it's json, not plain string | COMMENT |
| LOW | telebot/apihelper.py | 129 | params = params or None # Set params to None if empty | CODE |
| 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 |
|---|---|---|---|---|
| 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 | 719 | 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 | 395 | Attention: Don't forget to set parse_mode to 'HTML'! | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_types.py | 2191 | json_str = r'{"id": 1, "from": {"id": 1, "is_bot": false, "first_name": "Test"}, "currency": "USD", "total_amount": | CODE |
| LOW⚡ | tests/test_types.py | 2406 | json_str = r'{"country_code": "US", "state": "CA", "city": "San Jose", "street_line1": "123 Main St", "street_line2" | CODE |
| LOW⚡ | tests/test_types.py | 2412 | assert result.street_line1 == '123 Main St' | CODE |
| LOW | tests/test_types.py | 1099 | json_str = {'name': 'John', 'phone_number': '+1234567890', 'email': 'john@example.com', 'shipping_address': {'countr | CODE |
| LOW | tests/test_types.py | 2469 | json_str = r'{"currency": "USD", "total_amount": 1234, "invoice_payload": "test_payload", "shipping_option_id": "opt | CODE |