mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 23:27:49 +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}
|
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(
|
||||||
|
|
Loading…
Reference in a new issue