S
S
Sonicarh2020-04-30 04:16:26
Python
Sonicarh, 2020-04-30 04:16:26

I can't legit the Telegram bot, error 404, what's wrong???

Vpnka works, the token is accurate, there are no errors.
Help plz...
import requests
token = 'such-and-such'
main_url=f' https://api.telegram.org/bot{token} '
r = requests.get(f'{main_url}/getMy')
print( r.json())

{'ok': False, 'error_code': 404, 'description': 'Not Found'}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sonicarh, 2020-04-30
@Sonicarh

reboot solved the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question