I take the standard template application Bot Framework. I simplify the Post method in it so that for any incoming message there will be a response Tadaaa:
public async Task<Message> Post([FromBody]Message message) { return message.CreateReplyMessage("Tadaa"); } That is, I only change it.
OK. I go to the portal Bot Framework, register a bot. Returning to the code, I add there AppID and Primary app secret. Publish a bot in Azure with a free plan F1. I register the bot in Telegraf and connect it with the server part on the portal.
It works for some reason in half: text messages, photos or some file (Vordovsky, for example) reach the server. That is, I get in response to "Tadaaa". But when I send contacts, videos or coordinates (and I just need coordinates), there is no answer.
Why? From the fact that there is no answer, I concluded that the message does not reach the server. I asked on the English language stackoverflow, because there the whole movement is so far - so far they have answered that it is something with the server. But I did all of the above again - the effect is the same.
Perhaps it is restrictions of the free plan or these investments should be processed by other method? I am a programmer so-so, kodyu as a hobby :)
I would like to hear the opinion of those who have already created telegram bots in a pair with the Bot Framework.