Error 404 while accessing api method on telegram bot
You need to add the word bot before the botToken.
Token: xxx
Resulting url to invoke: https://api.telegram.org/botXXX/getMe
By the way, if you have \n in the end of the token, it ll be the same 404 error
I changed the folder permissions to 0755 and the problem was solved