send message group local file #2397
Answered
by
Bibo-Joshi
ciromanfredi
asked this question in
Q&A
-
Hi, how from title i want send photo (with method send_media_group) but i recive error, Traceback (most recent call last):
File "D:\Anaconda3\envs\VSC - TelegramBot\lib\site-packages\python_telegram_bot-13.1-py3.8.egg\telegram\ext\dispatcher.py", line 442, in process_update
handler.handle_update(update, self, check, context)
File "D:\Anaconda3\envs\VSC - TelegramBot\lib\site-packages\python_telegram_bot-13.1-py3.8.egg\telegram\ext\conversationhandler.py", line 549, in handle_update
new_state = handler.handle_update(update, dispatcher, check_result, context)
File "D:\Anaconda3\envs\VSC - TelegramBot\lib\site-packages\python_telegram_bot-13.1-py3.8.egg\telegram\ext\handler.py", line 160, in handle_update
return self.callback(update, context)
File "c:\Users\ciro_\Desktop\TelegramBot\git\telegrambotMaster\bot\photo.py", line 114, in selezfoto
context.bot.send_media_group(chat_id=chat_id,media=media)
File "D:\Anaconda3\envs\VSC - TelegramBot\lib\site-packages\python_telegram_bot-13.1-py3.8.egg\telegram\bot.py", line 117, in decorator
result = func(*args, **kwargs)
File "D:\Anaconda3\envs\VSC - TelegramBot\lib\site-packages\python_telegram_bot-13.1-py3.8.egg\telegram\bot.py", line 1434, in send_media_group
result = self._post('sendMediaGroup', data, timeout=timeout, api_kwargs=api_kwargs)
File "D:\Anaconda3\envs\VSC - TelegramBot\lib\site-packages\python_telegram_bot-13.1-py3.8.egg\telegram\bot.py", line 235, in _post
return self.request.post(f'{self.base_url}/{endpoint}', data=data, timeout=timeout)
File "D:\Anaconda3\envs\VSC - TelegramBot\lib\site-packages\python_telegram_bot-13.1-py3.8.egg\telegram\utils\request.py", line 347, in post
result = self._request_wrapper('POST', url, fields=data, **urlopen_kwargs)
File "D:\Anaconda3\envs\VSC - TelegramBot\lib\site-packages\python_telegram_bot-13.1-py3.8.egg\telegram\utils\request.py", line 272, in _request_wrapper
raise BadRequest(message)
telegram.error.BadRequest: Unsupported url protocol |
Beta Was this translation helpful? Give feedback.
Answered by
Bibo-Joshi
Feb 19, 2021
Replies: 1 comment 3 replies
-
What's |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ciromanfredi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's
path[elem]
in line 12 of your pastebin?