The error in this code is related to the configuration setup for the Telegram_bot_id. The variable telegram_bot_id should contain the Bot Token value provided by the BotFather in Telegram, but in this case, it contains bottemp_alert_0912bot which is incorrect. This is the reason why the API request to Telegram returns a 404 Not Found error code.
To fix this error, you need to create a bot on Telegram and obtain a valid bot token from BotFather, then update the value of telegram_bot_id with the correct token. After updating the bot token, send a message to the bot and confirm that it is working properly.