fix sticker resize
This commit is contained in:
		@@ -37,7 +37,7 @@ class StickersBotModuleConfig(TelegramBotModuleConfig):
 | 
				
			|||||||
            target_width = 512
 | 
					            target_width = 512
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            target_height = 512
 | 
					            target_height = 512
 | 
				
			||||||
        im.resize((target_width, target_height), Image.ANTIALIAS)
 | 
					        im = im.resize((target_width, target_height), Image.ANTIALIAS)
 | 
				
			||||||
        with tempfile.NamedTemporaryFile(suffix='.png') as f:
 | 
					        with tempfile.NamedTemporaryFile(suffix='.png') as f:
 | 
				
			||||||
            im.save(f, 'png')
 | 
					            im.save(f, 'png')
 | 
				
			||||||
            f.seek(0)
 | 
					            f.seek(0)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user