Telegram error Bad request after running python

Traceback (most recent call last):
File “”, line 71, in
File “”, line 61, in main
bot.set_webhook(“”+ TOKEN)
File “/home/cjwarrior7/Desktop/news_bot/myvenv/lib/python3.6/site-packages/telegram/”, line 65, in decorator
result = func(self, *args, **kwargs)
File “/home/cjwarrior7/Desktop/news_bot/myvenv/lib/python3.6/site-packages/telegram/”, line 2070, in set_webhook
result =, data, timeout=timeout)
File “/home/cjwarrior7/Desktop/news_bot/myvenv/lib/python3.6/site-packages/telegram/utils/”, line 309, in post
headers={‘Content-Type’: ‘application/json’})
File “/home/cjwarrior7/Desktop/news_bot/myvenv/lib/python3.6/site-packages/telegram/utils/”, line 223, in _request_wrapper
raise BadRequest(message)
telegram.error.BadRequest: Bad webhook: https url must be provided for webhook

Can you please upload your code on github and share the link of that repository so I can look into it

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.