Update format_header_param to format_multipart_header_param#2587
Draft
Meht-evaS wants to merge 1 commit intoeternnoir:masterfrom
Draft
Update format_header_param to format_multipart_header_param#2587Meht-evaS wants to merge 1 commit intoeternnoir:masterfrom
Meht-evaS wants to merge 1 commit intoeternnoir:masterfrom
Conversation
…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'?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: