From 443d81d4db5e72f41d470c6183db342aaae0aba5 Mon Sep 17 00:00:00 2001 From: Kylmakalle Date: Fri, 19 May 2017 18:08:07 +0300 Subject: [PATCH] FIX: Can't edit file bytes --- telebot/apihelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telebot/apihelper.py b/telebot/apihelper.py index 72be649..f72ce79 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -335,13 +335,14 @@ def send_video_note(token, chat_id, data, duration=None, length=None, reply_to_m files = None if not util.is_string(data): files = {'video_note': data} - files['video_note']['length'] = 639 # seems like it is MAX length size else: payload['video_note'] = data if duration: payload['duration'] = duration if length: payload['length'] = length + else: + payload['length'] = 639 # seems like it is MAX length size if reply_to_message_id: payload['reply_to_message_id'] = reply_to_message_id if reply_markup: