You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ngrogolev Hi. Thanks for your report!
It looks like ExtBot._insert_defaults wrongly assumes in line 469 that all elements in the list are of type InputMedia. Properly testing this was probably not done so far b/c testing paid stuff is not directly possible for us …
the fix would be to apply an
if not isinstance(…, InputMedia):
continue
for tests, we would have to try to to apply mocks to send_paid_media so that we can check that this works with defaults.
Would you be interested on sending a PR yourself? We can ofc help
Steps to Reproduce
Expected behaviour
The send_paid_media method should successfully send the specified paid media to the target chat using the default parse_mode
Actual behaviour
Sending the media fails with an exception::
AttributeError: 'InputPaidMedia' object has no attribute 'parse_mode'
Operating System
Linux
Version of Python, python-telegram-bot & dependencies
Relevant log output
Additional Context
No response
The text was updated successfully, but these errors were encountered: