AI Slop Code Risk Monitor

eternnoir/pyTelegramBotAPI

SlopCodeMonitor badge for eternnoir/pyTelegramBotAPI Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Python Telegram bot api.

13.5 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

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.

13.5
Adjusted Signal
13.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
8.8K
Stars
Python
Language
65.0K
Lines of Code
166
Files
980
Pattern Hits
2026-10-31
Scan Date
0.16
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 39.8/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 867 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.5/100 · LOW

Are imports declared and package/API names verified? 48 finding(s).

Agent Over-Engineering Ratio 43.1/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 870 finding(s).

PR Review Velocity Impact 58.6/100 · HIGH

Which changes need focused human review? 980 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 1HIGH 26MEDIUM 14LOW 939

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers612 hits · 474 pts
SeverityFileLineSnippetContext
LOWtests/test_rich_message_uploads.py36def test_rich_message_without_uploads_has_no_files():CODE
LOWtests/test_rich_message_uploads.py41def test_rich_message_methods_upload_media_files(monkeypatch):CODE
LOWtests/test_rich_message_uploads.py59def test_async_rich_message_methods_upload_media_files(monkeypatch):CODE
LOWtests/test_apihelper_95.py39def test_make_request_patches_selected_multipart_header_formatter(monkeypatch):CODE
LOWtests/test_apihelper_95.py58def test_promote_chat_member_can_manage_tags(monkeypatch):CODE
LOWtests/test_apihelper_95.py113def test_send_and_edit_checklist_send_checklist_as_json(monkeypatch):CODE
LOWtests/test_apihelper_95.py124def test_replace_sticker_in_set_uploads_the_sticker_file(monkeypatch):CODE
LOWtests/test_apihelper_95.py138def test_async_checklist_and_replace_sticker(monkeypatch):CODE
LOWtests/test_async_telebot.py35def test_infinity_polling_honors_logger_level(CODE
LOWtests/test_async_telebot.py66def test_process_polling_retains_update_processing_tasks():CODE
LOWtests/test_async_telebot.py139def test_async_antiflood_returns_result_without_retrying_when_ok():CODE
LOWtests/test_async_telebot.py154def test_async_antiflood_sleeps_retry_after_then_succeeds():CODE
LOWtests/test_async_telebot.py212def test_async_antiflood_final_attempt_propagates_after_budget_exhausted():CODE
LOW⚡tests/test_util.py4def test_smart_split_exact_multiple_has_no_trailing_empty_part():CODE
LOW⚡tests/test_util.py12def test_smart_split_short_text():CODE
LOW⚡tests/test_util.py18def test_smart_split_prefers_newline_then_space():CODE
LOW⚡tests/test_util.py23def test_smart_split_caps_at_max_message_length():CODE
LOW⚡tests/test_util.py28def test_extract_arguments_accepts_none():CODE
LOW⚡tests/test_util.py34def test_extract_arguments_values():CODE
LOWtests/test_pickle_storage.py8def test_state_pickle_storage_accepts_filename_without_directory(tmp_path, monkeypatch):CODE
LOWtests/test_pickle_storage.py15def test_async_state_pickle_storage_accepts_filename_without_directory(tmp_path, monkeypatch):CODE
LOWtests/test_handler_backends.py79def reply_to_message_update_type(reply_to_message):CODE
LOWtests/test_handler_backends.py107def test_memory_handler_backend_default_backend(telegram_bot):CODE
LOWtests/test_handler_backends.py112def test_memory_handler_backend_register_next_step_handler(telegram_bot, private_chat, update_type):CODE
LOWtests/test_handler_backends.py129def test_memory_handler_backend_clear_next_step_handler(telegram_bot, private_chat, update_type):CODE
LOWtests/test_handler_backends.py148def test_memory_handler_backend_register_reply_handler(telegram_bot, private_chat, update_type,CODE
LOWtests/test_handler_backends.py166def test_memory_handler_backend_clear_reply_handler(telegram_bot, private_chat, update_type,CODE
LOWtests/test_handler_backends.py186def test_file_handler_backend_register_next_step_handler(telegram_bot, private_chat, update_type):CODE
LOWtests/test_handler_backends.py219def test_file_handler_backend_clear_next_step_handler(telegram_bot, private_chat, update_type):CODE
LOWtests/test_handler_backends.py252def test_redis_handler_backend_register_next_step_handler(telegram_bot, private_chat, update_type):CODE
LOWtests/test_handler_backends.py270def test_redis_handler_backend_clear_next_step_handler(telegram_bot, private_chat, update_type):CODE
LOWtests/test_handler_backends.py290def test_dump_handlers_without_directory(tmp_path, monkeypatch):CODE
LOW⚡tests/test_formatting.py20def test_hpre_keeps_plain_language():CODE
LOW⚡tests/test_formatting.py24def test_hpre_escapes_quotes_in_language():CODE
LOW⚡tests/test_formatting.py28def test_hpre_language_cannot_add_attributes():CODE
LOW⚡tests/test_formatting.py37def test_hpre_still_escapes_content():CODE
LOW⚡tests/test_formatting.py41def test_apply_html_entities_date_time():CODE
LOWtests/test_formatting.py53def test_apply_html_entities_date_time_keeps_unix_placeholder():CODE
LOWtests/test_formatting.py66def test_apply_html_entities_escapes_link_url():CODE
LOWtests/test_formatting.py75def test_apply_html_entities_escapes_pre_language():CODE
LOWtests/test_formatting.py87def test_apply_html_entities_still_escapes_content():CODE
LOW⚡tests/test_custom_filters.py37def test_text_contains_filter_skips_message_without_text(photo_message):CODE
LOW⚡tests/test_custom_filters.py42def test_text_startswith_filter_skips_message_without_text(photo_message):CODE
LOW⚡tests/test_custom_filters.py46def test_is_digit_filter_skips_message_without_text(photo_message):CODE
LOW⚡tests/test_custom_filters.py50def test_text_filters_still_match_text_messages(text_message):CODE
LOW⚡tests/test_custom_filters.py56def test_async_text_filters_skip_message_without_text(photo_message):CODE
LOW⚡tests/test_custom_filters.py64def test_async_text_filters_still_match_text_messages(text_message):CODE
LOWtests/test_telebot.py48def test_infinity_polling_honors_logger_level(CODE
LOWtests/test_telebot.py114 def test_message_handler_lambda(self):CODE
LOWtests/test_telebot.py127 def test_message_handler_lambda_fail(self):CODE
LOWtests/test_telebot.py140 def test_message_handler_reg_fail(self):CODE
LOWtests/test_telebot.py153 def test_send_message_with_markdown(self):CODE
LOW⚡tests/test_telebot.py319 def test_send_message_dis_noti(self):STRING
LOW⚡tests/test_telebot.py325 def test_send_message_with_markup(self):STRING
LOW⚡tests/test_telebot.py334 def test_send_message_with_markup_use_string(self):STRING
LOW⚡tests/test_telebot.py465 def test_get_chat_administrators(self):STRING
LOW⚡tests/test_telebot.py470 def test_get_chat_members_count(self):STRING
LOW⚡tests/test_telebot.py475 def test_export_chat_invite_link(self):STRING
LOW⚡tests/test_telebot.py480 def test_create_revoke_detailed_chat_invite_link(self):STRING
LOW⚡tests/test_telebot.py641 def test_send_photo_formating_caption(self):STRING
552 more matches not shown…
AI Structural Patterns193 hits · 104 pts
SeverityFileLineSnippetContext
LOWtelebot/async_telebot.py128CODE
LOWtelebot/async_telebot.py274CODE
LOWtelebot/async_telebot.py3029CODE
LOWtelebot/async_telebot.py3086CODE
LOWtelebot/async_telebot.py3185CODE
LOWtelebot/async_telebot.py3227CODE
LOWtelebot/async_telebot.py3291CODE
LOWtelebot/async_telebot.py3321CODE
LOWtelebot/async_telebot.py3364CODE
LOWtelebot/async_telebot.py3379CODE
LOWtelebot/async_telebot.py3418CODE
LOWtelebot/async_telebot.py3435CODE
LOWtelebot/async_telebot.py3523CODE
LOWtelebot/async_telebot.py3690CODE
LOWtelebot/async_telebot.py3755CODE
LOWtelebot/async_telebot.py4199CODE
LOWtelebot/async_telebot.py4306CODE
LOWtelebot/async_telebot.py4453CODE
LOWtelebot/async_telebot.py4556CODE
LOWtelebot/async_telebot.py4723CODE
LOWtelebot/async_telebot.py4864CODE
LOWtelebot/async_telebot.py5038CODE
LOWtelebot/async_telebot.py5178CODE
LOWtelebot/async_telebot.py5368CODE
LOWtelebot/async_telebot.py5543CODE
LOWtelebot/async_telebot.py5691CODE
LOWtelebot/async_telebot.py5771CODE
LOWtelebot/async_telebot.py5872CODE
LOWtelebot/async_telebot.py6016CODE
LOWtelebot/async_telebot.py6122CODE
LOWtelebot/async_telebot.py6275CODE
LOWtelebot/async_telebot.py6412CODE
LOWtelebot/async_telebot.py6682CODE
LOWtelebot/async_telebot.py6769CODE
LOWtelebot/async_telebot.py7767CODE
LOWtelebot/async_telebot.py7943CODE
LOWtelebot/async_telebot.py8108CODE
LOWtelebot/async_telebot.py8407CODE
LOWtelebot/async_telebot.py8295CODE
LOWtelebot/async_telebot.py8411CODE
LOWtelebot/async_telebot.py8966CODE
LOWtelebot/async_telebot.py9649CODE
LOWtelebot/async_telebot.py9733CODE
LOWtelebot/async_telebot.py9793CODE
LOWtelebot/async_telebot.py10221CODE
LOWtelebot/async_telebot.py10241CODE
LOWtelebot/asyncio_helper.py209CODE
LOWtelebot/asyncio_helper.py293CODE
LOWtelebot/asyncio_helper.py335CODE
LOWtelebot/asyncio_helper.py511CODE
LOWtelebot/asyncio_helper.py537CODE
LOWtelebot/asyncio_helper.py606CODE
LOWtelebot/asyncio_helper.py641CODE
LOWtelebot/asyncio_helper.py694CODE
LOWtelebot/asyncio_helper.py751CODE
LOWtelebot/asyncio_helper.py794CODE
LOWtelebot/asyncio_helper.py826CODE
LOWtelebot/asyncio_helper.py871CODE
LOWtelebot/asyncio_helper.py919CODE
LOWtelebot/asyncio_helper.py964CODE
133 more matches not shown…
Cross-File Repetition19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHREADME.md0\ 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 sSTRING
HIGHexamples/echo_bot.py0\ 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 sSTRING
HIGHexamples/detect_changes.py0\ 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 sSTRING
HIGHexamples/webhook_examples/run_webhooks.py0\ 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 sSTRING
HIGHexamples/asynchronous_telebot/detect_changes.py0\ 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 sSTRING
HIGHexamples/asynchronous_telebot/webhooks/run_webhooks.py0\ 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 sSTRING
HIGHexamples/middleware/function_based/i18n_gettext/main.py0in this example you will learn how to adapt your bot to different languages using built-in middleware i18n. you need to STRING
HIGHexamples/middleware/class_based/i18n_middleware/main.py0in 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.py0in 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.py0this middleware provides high-level tool for internationalization it is based on gettext util.STRING
HIGH…re/class_based/i18n_middleware/i18n_base_middleware.py0this middleware provides high-level tool for internationalization it is based on gettext util.STRING
HIGH…eware/i18n_middleware_example/i18n_base_midddleware.py0this middleware provides high-level tool for internationalization it is based on gettext util.STRING
HIGH…s/middleware/function_based/i18n_gettext/i18n_class.py0looks for translations with passed 'domain' in passed 'path'STRING
HIGH…re/class_based/i18n_middleware/i18n_base_middleware.py0looks for translations with passed 'domain' in passed 'path'STRING
HIGH…eware/i18n_middleware_example/i18n_base_midddleware.py0looks for translations with passed 'domain' in passed 'path'STRING
HIGHtelebot/async_telebot.py0once the user has confirmed their payment and shipping details, the bot api sends the final confirmation in the form of STRING
HIGHtelebot/__init__.py0once the user has confirmed their payment and shipping details, the bot api sends the final confirmation in the form of STRING
HIGHtelebot/asyncio_helper.py0once the user has confirmed their payment and shipping details, the bot api sends the final confirmation in the form of STRING
HIGHtelebot/apihelper.py0once the user has confirmed their payment and shipping details, the bot api sends the final confirmation in the form of STRING
Excessive Try-Catch Wrapping36 hits · 39 pts
SeverityFileLineSnippetContext
LOWREADME.md326 except Exception as e:CODE
MEDIUMREADME.md321def query_text(inline_query):CODE
LOWtests/test_telebot.py240 except Exception as e:STRING
LOWexamples/inline_example.py21 except Exception as e:CODE
LOWexamples/inline_example.py36 except Exception as e:CODE
LOWexamples/inline_example.py50 except Exception as e:CODE
LOWexamples/inline_example.py59 except Exception as e:CODE
MEDIUMexamples/inline_example.py16def query_text(inline_query):CODE
MEDIUMexamples/inline_example.py26def query_photo(inline_query):CODE
MEDIUMexamples/inline_example.py41def query_video(inline_query):CODE
MEDIUMexamples/inline_example.py55def default_query(inline_query):CODE
LOWexamples/step_example.py41 except Exception as e:STRING
LOWexamples/step_example.py59 except Exception as e:STRING
LOWexamples/step_example.py73 except Exception as e:STRING
MEDIUMexamples/step_example.py33def process_name_step(message):CODE
MEDIUMexamples/step_example.py45def process_age_step(message):CODE
MEDIUMexamples/step_example.py63def process_sex_step(message):CODE
LOWexamples/custom_filters/advanced_text_filter.py117 except Exception as err:CODE
LOW…hronous_telebot/custom_filters/advanced_text_filter.py119 except Exception as err:CODE
LOWtelebot/async_telebot.py388 except Exception as e:CODE
LOWtelebot/async_telebot.py503 except Exception as e:CODE
LOWtelebot/async_telebot.py601 except Exception as e:CODE
LOWtelebot/util.py104 except Exception as e:CODE
LOWtelebot/util.py186 except Exception as e:CODE
LOWtelebot/util.py596 except Exception as e:STRING
MEDIUMtelebot/util.py183def _run(self):CODE
LOWtelebot/__init__.py746 except Exception as e:CODE
LOWtelebot/__init__.py1072 except Exception as e:CODE
LOWtelebot/__init__.py1080 except Exception as e:CODE
LOWtelebot/__init__.py1173 except Exception as e:CODE
LOWtelebot/__init__.py1327 except Exception as e:CODE
LOWtelebot/__init__.py1384 except Exception as e:CODE
LOWtelebot/__init__.py1400 except Exception as e:CODE
LOWtelebot/__init__.py11644 except Exception as e:CODE
LOWtelebot/ext/reloader.py23 except Exception as e:CODE
MEDIUMtelebot/ext/reloader.py16def restart_file():CODE
Unused Imports41 hits · 38 pts
SeverityFileLineSnippetContext
LOWexamples/create_invite_link.py2CODE
LOWexamples/serverless/flask_google_cloud_bot/main.py30CODE
LOWtelebot/async_telebot.py12CODE
LOWtelebot/async_telebot.py13CODE
LOWtelebot/util.py15CODE
LOWtelebot/util.py15CODE
LOWtelebot/util.py15CODE
LOWtelebot/util.py15CODE
LOWtelebot/util.py15CODE
LOWtelebot/util.py15CODE
LOWtelebot/util.py15CODE
LOWtelebot/__init__.py13CODE
LOWtelebot/__init__.py14CODE
LOWtelebot/__init__.py15CODE
LOWtelebot/handler_backends.py13CODE
LOWtelebot/handler_backends.py13CODE
LOWtelebot/types.py2CODE
LOWtelebot/asyncio_handler_backends.py4CODE
LOWtelebot/asyncio_handler_backends.py4CODE
LOWtelebot/ext/aio/__init__.py5CODE
LOWtelebot/ext/sync/__init__.py5CODE
LOWtelebot/storage/__init__.py1CODE
LOWtelebot/storage/__init__.py2CODE
LOWtelebot/storage/__init__.py3CODE
LOWtelebot/storage/__init__.py4CODE
LOWtelebot/storage/__init__.py4CODE
LOWtelebot/states/sync/__init__.py1CODE
LOWtelebot/states/sync/__init__.py2CODE
LOWtelebot/states/sync/context.py1CODE
LOWtelebot/states/sync/context.py3CODE
LOWtelebot/states/sync/middleware.py5CODE
LOWtelebot/states/asyncio/__init__.py1CODE
LOWtelebot/states/asyncio/__init__.py2CODE
LOWtelebot/states/asyncio/middleware.py5CODE
LOWtelebot/asyncio_storage/pickle_storage.py10CODE
LOWtelebot/asyncio_storage/__init__.py1CODE
LOWtelebot/asyncio_storage/__init__.py2CODE
LOWtelebot/asyncio_storage/__init__.py3CODE
LOWtelebot/asyncio_storage/__init__.py4CODE
LOWtelebot/asyncio_storage/__init__.py4CODE
LOWtelebot/asyncio_storage/redis_storage.py4CODE
Deep Nesting34 hits · 24 pts
SeverityFileLineSnippetContext
LOWexamples/reply_keyboard_markup_example.py48CODE
LOW…k_data_examples/advanced_calendar_example/keyboards.py12CODE
LOW…k_data_examples/advanced_calendar_example/keyboards.py12CODE
LOWtelebot/custom_filters.py131CODE
LOWtelebot/custom_filters.py142CODE
LOWtelebot/async_telebot.py426CODE
LOWtelebot/async_telebot.py539CODE
LOWtelebot/async_telebot.py1040CODE
LOWtelebot/asyncio_filters.py131CODE
LOWtelebot/asyncio_filters.py142CODE
LOWtelebot/util.py286CODE
LOWtelebot/util.py337CODE
LOWtelebot/asyncio_helper.py127CODE
LOWtelebot/__init__.py701CODE
LOWtelebot/__init__.py1062CODE
LOWtelebot/__init__.py1271CODE
LOWtelebot/__init__.py1346CODE
LOWtelebot/__init__.py9111CODE
LOWtelebot/__init__.py11517CODE
LOWtelebot/__init__.py11569CODE
LOWtelebot/types.py2835CODE
LOWtelebot/types.py3602CODE
LOWtelebot/types.py9499CODE
LOWtelebot/types.py10825CODE
LOWtelebot/types.py11145CODE
LOWtelebot/types.py11430CODE
LOWtelebot/types.py14716CODE
LOWtelebot/types.py15847CODE
LOWtelebot/types.py16653CODE
LOWtelebot/types.py16661CODE
LOWtelebot/formatting.py376CODE
LOWtelebot/formatting.py415CODE
LOWtelebot/apihelper.py84CODE
LOWtelebot/states/__init__.py55CODE
AI Response Leakage3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHexamples/deep_linking.py7# In this example we are connecting a user account on a website with a Telegram bot.COMMENT
HIGHexamples/middleware/function_based/session.py9# In this example let's imagine we want to create a session for each user who communicates with the bot to storeCOMMENT
HIGHexamples/middleware/function_based/i18n.py10# In this example let's imagine we want to introduce localization or internationalization into our project andCOMMENT
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/test_async_telebot.py231except ApiTelegramException:CODE
HIGHtelebot/util.py102except Queue.Empty:CODE
HIGHtelebot/ext/reloader.py21except OSError:CODE
Redundant / Tautological Comments11 hits · 15 pts
SeverityFileLineSnippetContext
LOWexamples/custom_filters/text_filter_example.py7# Check if message starts with @admin tagCOMMENT
LOWexamples/custom_filters/text_filter_example.py12# Check if text is hi or helloCOMMENT
LOWexamples/custom_filters/general_custom_filters.py21@bot.message_handler(is_admin=True, commands=['admin']) # Check if user is adminCODE
LOWexamples/custom_filters/is_filter_example.py7# Check if message is a replyCOMMENT
LOWexamples/custom_filters/is_filter_example.py12# Check if message was forwardedCOMMENT
LOW…chronous_telebot/custom_filters/text_filter_example.py6# Check if message starts with @admin tagCOMMENT
LOW…chronous_telebot/custom_filters/text_filter_example.py11# Check if text is hi or helloCOMMENT
LOW…onous_telebot/custom_filters/general_custom_filters.py22@bot.message_handler(is_admin=True, commands=['admin']) # Check if user is adminCODE
LOW…ynchronous_telebot/custom_filters/is_filter_example.py8# Check if message is a replyCOMMENT
LOW…ynchronous_telebot/custom_filters/is_filter_example.py13# Check if message was forwardedCOMMENT
LOWtelebot/apihelper.py129 params = params or None # Set params to None if emptyCODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtelebot/apihelper.py163 retry_strategy = requests.packages.urllib3.util.retry.Retry(CODE
Over-Commented Block9 hits · 9 pts
SeverityFileLineSnippetContext
LOWdocs/source/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWdocs/source/conf.py41COMMENT
LOWexamples/anonymous_bot.py1# This bot is needed to connect two people and their subsequent anonymous communicationCOMMENT
LOWexamples/anonymous_bot.py21#COMMENT
LOWexamples/anonymous_bot.py61COMMENT
LOWexamples/deep_linking.py1#!/usr/bin/pythonCOMMENT
LOWexamples/deep_linking.py21# your bot will receive a text message containing '/start unique_code',COMMENT
LOWexamples/middleware/function_based/session.py1#!/usr/bin/pythonCOMMENT
LOWexamples/middleware/function_based/i18n.py1#!/usr/bin/pythonCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMexamples/stars_payment.py1# Import required librariesCOMMENT
MEDIUMexamples/stars_payment.py18 # Create a custom keyboard with 2 buttons per rowCOMMENT
MEDIUMexamples/create_invite_link.py18 #Create an invite link class that contains info about the created invite link using create_chat_invite_link() with pCOMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_types.py750 json_str = r'{"label": "label text", "blocks": [{"text": "item block"}], "has_checkbox": true, "is_checked": true, "CODE
Modern Structural Boilerplate7 hits · 7 pts
SeverityFileLineSnippetContext
LOWtelebot/async_telebot.py255 def _setup_change_detector(self, path_to_watch: str) -> None:CODE
LOWtelebot/ext/aio/__init__.py8__all__ = [CODE
LOWtelebot/ext/sync/__init__.py8__all__ = [CODE
LOWtelebot/storage/__init__.py7__all__ = [CODE
LOWtelebot/states/sync/__init__.py4__all__ = [CODE
LOWtelebot/states/asyncio/__init__.py4__all__ = [CODE
LOWtelebot/asyncio_storage/__init__.py7__all__ = [CODE
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMexamples/asynchronous_telebot/continue_handling.py26# but you can use any of them because neither of them stops if youCOMMENT
LOWtelebot/util.py396 Attention: Don't forget to set parse_mode to 'HTML'!CODE
Fake / Example Data5 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_types.py2222 json_str = r'{"id": 1, "from": {"id": 1, "is_bot": false, "first_name": "Test"}, "currency": "USD", "total_amount": CODE
LOW⚡tests/test_types.py2437 json_str = r'{"country_code": "US", "state": "CA", "city": "San Jose", "street_line1": "123 Main St", "street_line2"CODE
LOW⚡tests/test_types.py2443 assert result.street_line1 == '123 Main St'CODE
LOWtests/test_types.py1130 json_str = {'name': 'John', 'phone_number': '+1234567890', 'email': 'john@example.com', 'shipping_address': {'countrCODE
LOWtests/test_types.py2500 json_str = r'{"currency": "USD", "total_amount": 1234, "invoice_payload": "test_payload", "shipping_option_id": "optCODE