I was practicing the telegram assignment and I am able to fetch the readings from the sensor but while sending alert message I am getting this error
Please guide
I was practicing the telegram assignment and I am able to fetch the readings from the sensor but while sending alert message I am getting this error
After creating the bot, you need to add the bot in your channel as administrator.
Do let me know in case you need further assitance.
I did the same after I created the channel and before starting with the coding still I’m getting the same error
Issue solved with certain changes made in the code. Thankyou for your guidance.
Can you share the exact changes that you did in your code ? It will help others also.
While creating the bot for first time I named it Alert Bot where the space between is not expected and same goes with the username ending with the bot. So I deleted the initial bot and created a new bot with the name Alertbot