How to make a state machine

vitaminchik 486 Reputation points
2023-05-02T22:06:06.63+00:00

Hello. I am learning c# in practice. I am writing a telegram chat bot. I painted all the logic, methods, it remains to create a database and save user states. How can I do that? In the menu item I have 3 types of users. Technologist, seamstress and salesperson. What does it mean to make a state machine? Does this need to be done for every menu? I did menu traversal calling methods.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,100 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.