Added min wxh (fixed)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user