Fix for SendLocation with live period

Fix for payload['live_perion'] typo -> payload['live_period']
This commit is contained in:
JekaFST 2017-12-05 00:21:05 +03:00 committed by GitHub
parent f0e64b3653
commit 8aa8fa5986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ def send_location(token, chat_id, latitude, longitude, live_period=None, reply_t
method_url = r'sendLocation'
payload = {'chat_id': chat_id, 'latitude': latitude, 'longitude': longitude}
if live_period:
payload['live_perion'] = live_period
payload['live_period'] = live_period
if reply_to_message_id:
payload['reply_to_message_id'] = reply_to_message_id
if reply_markup: