Skip to content

Commit 8846d10

Browse files
committed
Refactor: Removed duplicated constant
1 parent 6baabee commit 8846d10

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
EPOCH_DATE = datetime.datetime(1970, 1, 1)
1414

15-
MAX_PHOTO_FILESIZE_UPLOAD = int(10E6) # (10 MB)
1615
MAX_VIDEO_NOTE_LENGTH = 60
1716

1817
AUDIO_CODEC_NAMES = ['aac', 'mp3']

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def message_file_handler(update: telegram.Update, context: telegram.ext.Callback
406406

407407
return
408408
elif output_type == constants.OutputType.PHOTO:
409-
if not utils.ensure_size_under_limit(output_file_size, constants.MAX_PHOTO_FILESIZE_UPLOAD, update, context, file_reference_text='Converted file'):
409+
if not utils.ensure_size_under_limit(output_file_size, telegram.constants.MAX_PHOTOSIZE_UPLOAD, update, context, file_reference_text='Converted file'):
410410
return
411411

412412
bot.send_photo(

0 commit comments

Comments
 (0)