Error 404 Not Found for Telegram chat bot

51%20PM
I am unable to find the problem as I have double checked the code but I am getting the same error again and again.
Can anyone tell me that for
telegram_chat_id = “@XXXX” --> is this the channel name only or something else
i.e,. for example my channel name is india_gov the what will be the chat id
telegram_chat_id = “@india_gov” --> is it right ??

Hey there!

The problem is that the program isn’t able to find your bot since :

  1. Either your chat id is incorrect
  2. Or it is your bot id

For chat ID, go to your channel info and copy everything written after “t.me/
for example if your channel id is “t.me/helpdesk
then your chat id is “@helpdesk

For Bot ID go to bot father chat and copy everything written after HTTP API :
it will be something like 863XXXX:AAEMXXXX (yes you have to include them colons)

So your chat id will be “bot863XXXX:AAEMXXXX”

Hope this helps. Let me know if i doesn’t.

5 Likes

my chat id was wrong lil bit…it had no “bot” word in the beginning.
Thank you

1 Like

Hey @maxdevilio, I was having the same issue and your advice rectified my problem. Thank you very much.

1 Like