videonote: Semantic fix according to CR

This commit is contained in:
Noam Meltzer 2017-05-26 18:35:29 +03:00
parent a7044562af
commit a5bfc52326

View file

@ -713,9 +713,9 @@ class Bot(TelegramObject):
data = {'chat_id': chat_id, 'video_note': video_note} data = {'chat_id': chat_id, 'video_note': video_note}
if duration: if duration is not None:
data['duration'] = duration data['duration'] = duration
if length: if length is not None:
data['length'] = length data['length'] = length
return self._message_wrapper( return self._message_wrapper(