From c9f0c3e423c1d8d7b2014101f5c29b4e2e26b3a1 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sun, 2 Apr 2017 03:19:36 +0200 Subject: [PATCH] Remove duplicate mentions --- bottools/methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bottools/methods.py b/bottools/methods.py index 0a16816..be0d78a 100644 --- a/bottools/methods.py +++ b/bottools/methods.py @@ -345,7 +345,7 @@ def reply(bot, update, args): else: mentions = [] - pargs = mentions + args[1:] + pargs = list(set(mentions)) + args[1:] except: update.message.reply_text(bottools.strings.cantfind % args[0])