mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
videonote: Semantic fix according to CR
This commit is contained in:
parent
a7044562af
commit
a5bfc52326
1 changed files with 2 additions and 2 deletions
|
@ -713,9 +713,9 @@ class Bot(TelegramObject):
|
|||
|
||||
data = {'chat_id': chat_id, 'video_note': video_note}
|
||||
|
||||
if duration:
|
||||
if duration is not None:
|
||||
data['duration'] = duration
|
||||
if length:
|
||||
if length is not None:
|
||||
data['length'] = length
|
||||
|
||||
return self._message_wrapper(
|
||||
|
|
Loading…
Reference in a new issue