diff --git a/tests/test_chatphoto.py b/tests/test_chatphoto.py index 94176011e..7d01f49fd 100644 --- a/tests/test_chatphoto.py +++ b/tests/test_chatphoto.py @@ -83,7 +83,7 @@ class TestChatPhoto: new_file = await bot.get_file(chat_photo.small_file_id) - assert isinstance(new_file.file_id, str) and new_file.file_id != "" + assert new_file.file_unique_id == chat_photo.small_file_unique_id assert new_file.file_path.startswith("https://") await new_file.download(jpg_file) @@ -92,7 +92,7 @@ class TestChatPhoto: new_file = await bot.get_file(chat_photo.big_file_id) - assert isinstance(new_file.file_id, str) and new_file.file_id != "" + assert new_file.file_unique_id == chat_photo.big_file_unique_id assert new_file.file_path.startswith("https://") await new_file.download(jpg_file) diff --git a/tests/test_inlinekeyboardbutton.py b/tests/test_inlinekeyboardbutton.py index 2cf7542ff..c89342692 100644 --- a/tests/test_inlinekeyboardbutton.py +++ b/tests/test_inlinekeyboardbutton.py @@ -44,7 +44,7 @@ class TestInlineKeyboardButton: switch_inline_query = "switch_inline_query" switch_inline_query_current_chat = "switch_inline_query_current_chat" callback_game = CallbackGame() - pay = "pay" + pay = True login_url = LoginUrl("http://google.com") web_app = WebAppInfo(url="https://example.com")