I make a bot at Microsoft Bot Framework on c#. I am trying to get Telegram data that sent to my bot. When I worked with Telegram bot API directly, I can see data about user like:
{
"update_id": 1111111,
"message": {
"message_id": 111111,
"from": {
"id": 1111111,
"is_bot": "False",
"first_name": "John",
"last_name": "Dillon",
"language_code": "en-EN"
},
"chat": {
"id": 111111111,
"first_name": "John",
"last_name": "Dillon",
"type": "private"
},
"date": 1111111,
"text": "Hello"
}
}
I grab first_name from this json and my bot sends the message like:
- Whould you like to use John as the name?
I need to do the same at Microsoft Bot Framework preferably with all channels where this is possiable. I found information about state data in documentation, but there is nothing about my issue. They advise me to ask user name.