I have a problem with using edit_media method in aiogram
code:
@router.callback_query(F.data == 'booking')
async def start_booking(callback: types.CallbackQuery):
await callback.message.edit_media(types.InputMediaPhoto('https://i.postimg.cc/598W9Fcc/1665247027-204804-url.jpg', caption=msg.start_booking), reply_markup=kb.get_start_booking_keyboard()
)
exception:
TypeError: BaseModel.__init__() takes 1 positional argument but 2 were given
New contributor
MichailMaksakov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.