Answer the question
In order to leave comments, you need to log in
How to implement telegram bot step stack in database?
At the moment, a stack of bot states for each user is stored in a HashMap. If you remake the program to use the database, then what should be the structure of the tables? Is it possible to add a Stack class field in the User table? Need to add a Step table that will have the fields user_id, value, and sequence number on the stack?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question