gerasdf / esp8266

ESP8266 code
0 stars 1 forks source link

/settoken command #12

Closed gerasdf closed 4 years ago

gerasdf commented 4 years ago

This command sholuld let the user change the bot token. Is used to install new devices. It has to be persistent. Mabe it can only come fom a hardcoded user id?

gerasdf commented 4 years ago

This one is really tricky! if you generate a new token using @BotFather then the token immediately changes, and the bot can't get further messages, in particular, the bot can't get the /settoken command.

So I guess that bottoken configuration will have to be done on the web interface