Error in telegram alert project

I have got 2 errors

1.) Don’t know why it show error

2.) After deleting that line program works fine until it get value above threshold.
also I’ve doubt what we have to write on telegram_bot_id - “BOT USER NAME” or “IT’S TOKEN”

You have to write it’s token.

Anyways, if there is any chance that the token is incorrect, then correct it.
But most of the time, creating a new bot solves the issue.

Ok…What about 1st error??

Correct Syntax -

"chat_id": tele_conf.telegram_chat_id,
"text": message

Put ‘,’ after line of chat_id. The comma you missed.

1 Like