Open DenisNepomnyashchikh opened 8 years ago
What does your global x
do? I'd think that it'd work fine without that
Re-reading your question, I think you want to permanently store variable x
? for that, you should look into the NDB storage, look at the getEnabled(chat_id)
and setEnabled(chat_id, True/False)
methods.
I have exactly the same problem. @DenisNepomnyashchikh, did you solve it somehow? Please, advise.
Thanks a lot for your bot! I cant solve one problem. When I test my bot by myself everything fine, but if another user connect with my bot script doesnt start for him with initial state of variables. For example, in this code script increment x variable when user send "1". But for new user x already not null. Please help me to fix it. Every user who connect to bot have to start work with script like no other users, and the script is the first time for him with initial state e.g. x=0.