'Is there a way to make a custom Form/Modal in Telegram Bot DEV to get user Input in an ordered Single window?

I am trying to get user input in an ordered way inside a Telegram Bot. I want that form to be there right inside Telegram, like this : Modal/form to get Credit Card details

The above is the internal modal/form to get Credit Card details. (There is something similar for Shipping Details too.) (Checkout @ShopBot on Telegram)

I want something similar but with different fields, and want to save that data on a Database too (AWS or some cloud service, but that's outside the scope of this question).

Is there a way to achieve a similar custom structure? If so, can you share with me some links for a sample source code for the aforementioned?

Thank you : )



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source