Skip to content

Commit

Permalink
handle comma separated meme ids
Browse files Browse the repository at this point in the history
  • Loading branch information
ohld committed Jun 9, 2024
1 parent 5fc66dd commit 251f4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tgbot/handlers/moderator/get_meme.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def handle_get_meme(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
return

try:
meme_ids = [int(i) for i in message_split[1:]]
meme_ids = [int(i.replace(",", "").strip()) for i in message_split[1:]]
except ValueError:
await update.message.reply_text(
"Please specify a valid <code>meme_id</code> (a number!)",
Expand Down

0 comments on commit 251f4d2

Please sign in to comment.