I'm fairly new to programming and I want to make a simple bot for telegram. After creating new bot using bot father and getting token, I made a simple HTTP post request to the below address:
https://api.telegram.org/bot{token}/METHOD_NAME
But for any method, I faced with a 403 error page. What's wrong?
https://api.telegram.org/bot{yourtoken}/get_me(or any method name) just like me you are forgetting "bot" after https://api.telegram.org/
You should not replace bot string with your Bot's username, Just append given token at the end of /bot
(e.g .../bot123456:ABC-D...
) and your URL is ready.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With