From 3db1cdeffebab296416f9736c2a696fb2d5893eb Mon Sep 17 00:00:00 2001 From: saddydead Date: Thu, 12 Mar 2026 19:20:01 +0300 Subject: [PATCH] ya pidoras --- src/wishlist_bot/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wishlist_bot/main.py b/src/wishlist_bot/main.py index 60ca600..8a0a44c 100644 --- a/src/wishlist_bot/main.py +++ b/src/wishlist_bot/main.py @@ -173,8 +173,9 @@ async def process_answer(message: Message, state: FSMContext): gift.picture = message.photo[-1].file_id + text = gift_text(gift, message.from_user.id) if gift.picture is None: - await message.answer(f"{gift.name}\n{gift.description}\n{gift.link}") + await message.answer(text) try: cur.execute( f"INSERT OR IGNORE INTO gifts(name, description, link) VALUES(?, ?, ?)", @@ -184,7 +185,7 @@ async def process_answer(message: Message, state: FSMContext): except Exception as e: print(e) else: - await message.answer_photo(photo = gift.picture, caption=f"{gift.name}\n{gift.description}\n{gift.link}") + await message.answer_photo(photo = gift.picture, caption=text) try: cur.execute( f"INSERT OR IGNORE INTO gifts(name, description, link, picture) VALUES(?, ?, ?, ?)",