Error in telegram bot project

sir this is my code link-https://ide.codingblocks.com/s/291407
Error-

(myvenv) D:\data science\Project-2 Trasher Bot-Telegram>python webhook_trasher.py
Traceback (most recent call last):
File “webhook_trasher.py”, line 63, in
bot.set_webhook(" https://e8b50897c321.ngrok.io" + TOKEN)
File “”, line 2, in set_webhook
File “D:\data science\Project-2 Trasher Bot-Telegram\myvenv\lib\site-packages\telegram\bot.py”, line 67, in decorator
result = func(*args, **kwargs)
File “D:\data science\Project-2 Trasher Bot-Telegram\myvenv\lib\site-packages\telegram\bot.py”, line 2242, in set_webhook
result = self.request.post(url, data, timeout=timeout)
File “D:\data science\Project-2 Trasher Bot-Telegram\myvenv\lib\site-packages\telegram\utils\request.py”, line 333, in post
**urlopen_kwargs)
File “D:\data science\Project-2 Trasher Bot-Telegram\myvenv\lib\site-packages\telegram\utils\request.py”, line 244, in _request_wrapper
raise BadRequest(message)
telegram.error.BadRequest: Can’t parse url

hey @pandeyaman461,

correct this to -> bot.set_webhook(" https://e8b50897c321.ngrok.io/" + TOKEN)

just add a / in url.
I hope this works.

Thank You and Happy Learning :slightly_smiling_face:.

Sir still getting the same error.

link-https://ide.codingblocks.com/s/291967

remove the extra space in starting of url

(myvenv) D:\data science\Project-2 Trasher Bot-Telegram>python webhook_trasher.py sys:1: TelegramDeprecationWarning: Old Handler API is deprecated - see https://git.io/fxJuV for details * Serving Flask app “webhook_trasher” (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off 2020-07-24 01:25:51,794 - werkzeug - INFO - * Running on http://127.0.0.1:8443/ (Press CTRL+C to quit)

yeah , its running now.

sir now it is running perfectly but getting no reply from telegram