async def METHOD_NAME(self, bot, super_group_id):
    with Path(os.devnull).open("rb") as chatphoto_file, pytest.raises(TelegramError):
        await bot.set_chat_photo(chat_id=super_group_id, photo=chatphoto_file)