How to keep data on telegram bot

I I'm building a telegram bot. In telegram, only one input can be supply at a time. So I want to keep all supplied info eg. First name and last name on a user location and retrieve all the info at the end then insert into database. I have used cookies and sessions but non seems to work. Just stopping the bot from running if used. Any help please

We can hep you with our services, but for more general questions you need to ask on more general forums.