Skip to content

Update format_header_param to format_multipart_header_param#2587

Draft
Meht-evaS wants to merge 1 commit intoeternnoir:masterfrom
Meht-evaS:patch-1
Draft

Update format_header_param to format_multipart_header_param#2587
Meht-evaS wants to merge 1 commit intoeternnoir:masterfrom
Meht-evaS:patch-1

Conversation

@Meht-evaS
Copy link
Copy Markdown

Description

Update format_header_param to format_multipart_header_param since it is deprecated in URLLIB3.

Error solved

Traceback (most recent call last):
File "/home/kali/Downloads/search_Telegram_phone/search_phone.py", line 3, in
import telebot
File "/home/kali/Downloads/venv_covert/lib/python3.13/site-packages/telebot/init.py", line 40, in
from telebot import apihelper, util, types
File "/home/kali/Downloads/venv_covert/lib/python3.13/site-packages/telebot/apihelper.py", line 18, in
format_header_param = fields.format_header_param
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'urllib3.fields' has no attribute 'format_header_param'. Did you mean: 'format_header_param_rfc2231'?

Python version: Python 3.13.11

OS: Linux kali 6.12.25-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.12.25-1kali1 (2025-04-30) x86_64 GNU/Linux

Checklist:

  • I added/edited example on new feature/change (if exists)
  • My changes won't break backward compatibility
  • I made changes both for sync and async

…Deprecated)

Update format_header_param to format_multipart_header_param since it is depracated in URLLIB3 

Traceback (most recent call last):
  File "/home/kali/Downloads/search_Telegram_phone/search_phone.py", line 3, in <module>
    import telebot
  File "/home/kali/Downloads/venv_covert/lib/python3.13/site-packages/telebot/__init__.py", line 40, in <module>
    from telebot import apihelper, util, types
  File "/home/kali/Downloads/venv_covert/lib/python3.13/site-packages/telebot/apihelper.py", line 18, in <module>
    format_header_param = fields.format_header_param
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'urllib3.fields' has no attribute 'format_header_param'. Did you mean: 'format_header_param_rfc2231'?
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.

1 participant