Skip to content

Fix issues - #2628

Open
Badiboy wants to merge 2 commits into
eternnoir:masterfrom
Badiboy:chatgpt
Open

Fix issues#2628
Badiboy wants to merge 2 commits into
eternnoir:masterfrom
Badiboy:chatgpt

Conversation

@Badiboy

@Badiboy Badiboy commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Description

Fix urllib3.fields.format_header_param issue (https://github.com/eter…nnoir/pyTelegramBotAPI/issues/2619).
Fix logging issue (#2627)

Describe your tests

Regression tests generated.

@Badiboy Badiboy changed the title Fix urllib3.fields.format_header_param Fix issues Sep 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The changed threaded and non-threaded polling guards are bypassed by the new regression test.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Fixes urllib3 multipart formatter compatibility and corrects polling log-level comparisons.

Changes:

  • Supports current and legacy urllib3 formatter names.
  • Corrects synchronous and asynchronous polling log filtering.
  • Adds regression tests for formatter selection and infinity polling.
File summaries
File Description
telebot/apihelper.py Selects the available urllib3 multipart formatter.
telebot/__init__.py Corrects synchronous polling log-level guards.
telebot/async_telebot.py Corrects asynchronous polling log-level guards.
tests/test_apihelper_95.py Tests formatter compatibility and patching.
tests/test_telebot.py Tests synchronous infinity-polling logging.
tests/test_async_telebot.py Tests asynchronous infinity-polling logging.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/test_telebot.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants