Added min wxh (fixed)

This commit is contained in:
BarsTiger
2023-03-13 14:52:16 +02:00
parent 7867dd8129
commit e8ebbe33df

View File

@@ -141,8 +141,8 @@ async def set_size_command(message: types.Message, is_command: bool = True):
parse_mode='HTML') parse_mode='HTML')
return return
if height > 768 or width > 768: if height > 768 or width > 768 or height < 256 or width < 256:
await message.reply('❌ Specify numbers <= 768') await message.reply('❌ Specify numbers <= 768 and >= 256')
return return
await _set_property(message, 'height', height, is_command=is_command) await _set_property(message, 'height', height, is_command=is_command)