Steps to Reproduce
- create an
InputMediaPhoto with a HTML-Caption
- use it in a
send_media_group call of a bot without Defaults
- use it in a
send_media_group call of a bot with Defaults.parse_mode
Expected behaviour
in step 3., the html markup is parsed by TG
Actual behaviour
it's not.
Operating System
Any
Version of Python, python-telegram-bot & dependencies
Relevant log output
No response
Additional Context
This is due to _insert_defaults doing something like media.parse_mode = None. Instead it should create a copy of media and set the parse mode on the copy.
This issue surfaced in #3295 (#3295 (comment)) and was also teased in #3249.