reply with duplicate to rpc call #2
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user