From 2198610bac6f3cdea1242a9f6f327ee9e163679c Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Tue, 6 Dec 2022 15:03:40 +0300 Subject: [PATCH] notify about duplicate --- bots/modules/channel_helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bots/modules/channel_helper.py b/bots/modules/channel_helper.py index 2115d28..e6ebce8 100644 --- a/bots/modules/channel_helper.py +++ b/bots/modules/channel_helper.py @@ -100,6 +100,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig): im = Image.open(io) i.image_hash = imagehash.phash(im) if self.queued_items.filter(image_hash=i.image_hash, type='photo').count() > 0: + update.message.reply_text('Duplicate') return elif hasattr(m, 'sticker') and m.sticker: s = m.sticker