diff --git a/tgbot/shit/render.py b/tgbot/shit/render.py index ad47748..e520c9c 100644 --- a/tgbot/shit/render.py +++ b/tgbot/shit/render.py @@ -79,7 +79,7 @@ def image_to_string(image_file): # Get image dimensions width, height = img.size - if width != WIDTH or HEIGHT != 9: + if width != WIDTH or height != HEIGHT: raise ValueError("The image must be exactly 22x9 pixels.") # Create the string representation