reply with duplicate to rpc call #2
This commit is contained in:
parent
4d494267cd
commit
9ecd8810ce
@ -50,7 +50,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig):
|
||||
|
||||
image_hash = imagehash.phash(im)
|
||||
if self.queued_items.filter(image_hash=image_hash, type='photo').count() > 0:
|
||||
raise RuntimeError('Duplicate')
|
||||
return 'duplicate'
|
||||
|
||||
width, height = im.size
|
||||
if width > 2000 or height > 2000:
|
||||
|
Loading…
Reference in New Issue
Block a user