был код
photo=open("photos/photo.webp", "rb")
await bot.send_sticker(message.chat.id, photo)
все работало, сейчас перешел на последнюю версию aiogram и получаю
pydantic_core._pydantic_core.ValidationError: 2 validation errors for SendSticker
sticker.is-instance[InputFile]
Input should be an instance of InputFile [type=is_instance_of, input_value=<_io.BufferedReader name='skins/cats/cat.webp'>, input_type=BufferedReader]
For further information visit
https://errors.pydantic.dev/2.3/v/is_instance_of
sticker.str
Input should be a valid string [type=string_type, input_value=<_io.BufferedReader name='skins/cats/cat.webp'>, input_type=BufferedReader]
For further information visit
https://errors.pydantic.dev/2.3/v/string_type
Пробовал передавать только путь
photo="photos/photo.webp"
await bot.send_sticker(message.chat.id, photo)
venv\Lib\site-packages\aiogram\client\session\base.py", line 120, in check_response
raise TelegramBadRequest(method=method, message=description)
aiogram.exceptions.TelegramBadRequest: Telegram server says - Bad Request: wrong HTTP URL specified