我用 python 做了一个电报机器人,它发送一条消息
if message == '/start':
bot.sendMessage(chat_id, "Insert your name:")
a = 'name'
if a == 'name' and message != '/start'
name_user = message
bot.sendMessage(chat_id, "Insert your birthday:")
a = 'birth'
and so on for other information...
当两个用户同时使用我的机器人时,问题就来了,因为第一个用户更改了“a”,所以第二个用户从出生而不是名字开始,有人可以帮我吗?