Oops. Invalid example. This method is already deprecated.

This commit is contained in:
Alex Root Junior 2017-08-01 00:41:43 +03:00
parent 0309ab3117
commit c19890a7d2

View file

@ -22,7 +22,7 @@ async def send_welcome(message: types.Message):
async def cats(message: types.Message):
with open('data/cats.jpg', 'rb') as photo:
await bot.send_photo(message.chat.id, photo, caption='Cats is here 😺',
reply_to_message_id=message)
reply_to_message_id=message.message_id)
@dp.message_handler()