I'm developing a console application for telegram bot.
I have a NextFiledStrig
which tell the application what field should be asked from user. As multiple users are communicating with the bot or application, the NextFiledStrig
change for all.
Is there something like session so I can store the NextFiledStrig
in it for each user? Or I have to get its value from database over and over?
I worked ASP.net C# and I'm new to console application.
I searched a lot but I couldn't find any thing solve my problem. Many people was answered: its a console application and there is just one user for it and you don't need session.
There is no session in a console application. But you can use a simple dictionary to store your data: