This commit is contained in:
bakatrouble 2022-12-06 15:04:20 +03:00
parent 2198610bac
commit e9d30c6703

View File

@ -100,7 +100,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig):
im = Image.open(io) im = Image.open(io)
i.image_hash = imagehash.phash(im) i.image_hash = imagehash.phash(im)
if self.queued_items.filter(image_hash=i.image_hash, type='photo').count() > 0: if self.queued_items.filter(image_hash=i.image_hash, type='photo').count() > 0:
update.message.reply_text('Duplicate') update.message.reply_text('Duplicate', quote=True)
return return
elif hasattr(m, 'sticker') and m.sticker: elif hasattr(m, 'sticker') and m.sticker:
s = m.sticker s = m.sticker