[v0.17] Fixed updates of messages containing photos
Explanation of a fix
Now your messages containing photos are updating correctly while handling CallbackQuery from Telegram.
Here is 4 scenarios:
1st
First message with photo, second - without.
What should happen: the 1st will be deleted and the second will be sent.
2st
No photo in the 1st message, but there is in the 2nd.
What should happen: the 1st will be deleted and the second will be sent
3st
No photo in the 1st message, neither in the 2nd.
What should happen: 1st message would be updated without deletion
4st
There is a photo in the 1st and in the 2nd message.
What should happen: by default Botf will just update 1st message with a new photo. But if you specify UpdateMessagePolicy via Context.SetUpdateMsgPolicy() to UpdateMessagePolicy.DeleteAndSend so the 1st message would be deleted and Botf will send a new one with a new photo and text.
You can find code examples here