M
M
Muhammed2020-04-29 16:48:10
Python
Muhammed, 2020-04-29 16:48:10

Python telegram bot how to fix Bad Request: URL_INVALID error?

Hello everyone, I have a code written in python using the pytelegrambotapi library

bot.answer_callback_query(callback_query_id=message.id,text="Нажмите на ссылку",show_alert=True,url='https://www.eurosoft.uz')


by clicking the button I want to send a link to the user
the problem is when the user clicks on the button the program gives such an error

(__init__.py:420 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
[b'{"ok":false,"error_code":400,"description":"Bad Request: URL_INVALID"}']"


how can i send the link correctly?
Thank you

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question