I am working on telegram bot where i want to store some variable in user's phone memory similar to shared preferences in android. I am using nodejs language to create telegram bot. Kindly help me how to implement that.
Thanks
I am working on telegram bot where i want to store some variable in user's phone memory similar to shared preferences in android. I am using nodejs language to create telegram bot. Kindly help me how to implement that.
Thanks
You Can't do that.
But for storing Data for every user, You can store it in Your Data Base
and Set User's Telegram User ID for Primary Key field
. Its Safe And Easy to Use.
Impossible. Bots don't have access to users' devices. Store that data on your server, preferably in some database.
just use user id as key / part of the key / field, depending on db of your choice.
You can use nedb
or for more users GOOGLE FIREBASE