Closed verdysh closed 7 years ago
This seems like a reasonable way considering where the data is stored. What are your concerns?
@verdysh Accessing the message.ChannelData
property is the correct way of getting this data.
@JasonSowers, this method seemed too cumbersome to me and I had fears that I was doing something wrong. So I decided to clarify this.
@nwhitmont, thanks!
Bot Info
SDK Platform: .NET SDK Version: 3.9.0.0 Active Channels: Telegram
Issue Description
Hi!
In Telegram it is possible to output 2 special buttons:
(this is done in a similar way https://github.com/Microsoft/BotBuilder/issues/3642)
Message from bot I get in the usual way:
If user clicks on the button "request_location", coordinates come in the message.Entities property. If user clicks on the button "request_contact", there is no phone number in any special property (message.Text, message.Attachments, message.Entities).
The phone number is only present in the message.ChannelData property with a bunch of other service information:
How correctly retrieve the phone number?
Or there is a more elegant solution?