diff --git a/changes/unreleased/4879.kABAi45KpR2H6jqJu6NtDS.toml b/changes/unreleased/4879.kABAi45KpR2H6jqJu6NtDS.toml new file mode 100644 index 00000000000..f1fcabc5453 --- /dev/null +++ b/changes/unreleased/4879.kABAi45KpR2H6jqJu6NtDS.toml @@ -0,0 +1,5 @@ +internal = "Address Failing Unit Test for ``send_paid_media``" + +[[pull_requests]] +uid = "4879" +author_uid = "Bibo-Joshi" diff --git a/tests/_files/test_inputmedia.py b/tests/_files/test_inputmedia.py index 08bdf3428a3..57bf8609f19 100644 --- a/tests/_files/test_inputmedia.py +++ b/tests/_files/test_inputmedia.py @@ -1240,9 +1240,9 @@ def build_media(parse_mode, med_type): # make sure that the media was not modified assert media.parse_mode == copied_media.parse_mode - async def test_send_paid_media(self, bot, channel_id, photo_file, video_file): + async def test_send_paid_media(self, bot, chat_id, photo_file, video_file): msg = await bot.send_paid_media( - chat_id=channel_id, + chat_id=chat_id, star_count=20, media=[ InputPaidMediaPhoto(media=photo_file),
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: