Skip to content

Commit a5bfc52

Browse files
committed
videonote: Semantic fix according to CR
1 parent a704456 commit a5bfc52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telegram/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,9 @@ def send_video_note(self,
713713

714714
data = {'chat_id': chat_id, 'video_note': video_note}
715715

716-
if duration:
716+
if duration is not None:
717717
data['duration'] = duration
718-
if length:
718+
if length is not None:
719719
data['length'] = length
720720

721721
return self._message_wrapper(

0 commit comments

Comments
 (0)