From b85842b1a618eb40ccc7d5dcca254bfe4d13695a Mon Sep 17 00:00:00 2001 From: Daniil Okhlopkov <5613295+ohld@users.noreply.github.com> Date: Sun, 9 Jun 2024 13:46:12 +0100 Subject: [PATCH] edit copy --- src/tgbot/handlers/upload/moderation.py | 4 ++-- src/tgbot/handlers/upload/stats.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tgbot/handlers/upload/moderation.py b/src/tgbot/handlers/upload/moderation.py index 4affbd2..4525092 100644 --- a/src/tgbot/handlers/upload/moderation.py +++ b/src/tgbot/handlers/upload/moderation.py @@ -247,12 +247,12 @@ async def handle_uploaded_meme_review_button( await context.bot.send_message( chat_id=meme_upload["user_id"], reply_to_message_id=meme_upload["message_id"], - text=f""" + text=""" šŸŽ‰šŸŽ‰šŸŽ‰ Your meme has been approved and soon bot will send it to other users! -You can see your meme #{meme["id"]} stats on LEADERBOARD +See realtime stats of your uploaded memes: /uploads """, parse_mode=ParseMode.HTML, ) diff --git a/src/tgbot/handlers/upload/stats.py b/src/tgbot/handlers/upload/stats.py index 501d368..7a1c8f8 100644 --- a/src/tgbot/handlers/upload/stats.py +++ b/src/tgbot/handlers/upload/stats.py @@ -21,7 +21,7 @@ async def handle_uploaded_memes_stats( uploaded_memes = await get_uploaded_memes_of_user_id(update.effective_user.id) if len(uploaded_memes) == 0: - await update.message.reply( + await update.message.reply_text( """ šŸ“­ You haven't uploaded any memes yet! @@ -60,7 +60,9 @@ async def handle_uploaded_memes_stats( STATS_TEXT += f"\nā–Ŗ {views} - {likes} - {like_prc}%" - await update.message.reply( + STATS_TEXT += "\nupload more memes and win lots of šŸ” /kitchen" + + await update.message.reply_text( STATS_TEXT, parse_mode=ParseMode.HTML, )