mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +00:00
Oops. Invalid example. This method is already deprecated.
This commit is contained in:
parent
0309ab3117
commit
c19890a7d2
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ async def send_welcome(message: types.Message):
|
||||||
async def cats(message: types.Message):
|
async def cats(message: types.Message):
|
||||||
with open('data/cats.jpg', 'rb') as photo:
|
with open('data/cats.jpg', 'rb') as photo:
|
||||||
await bot.send_photo(message.chat.id, photo, caption='Cats is here 😺',
|
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()
|
@dp.message_handler()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue