mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix for SendLocation with live period
Fix for payload['live_perion'] typo -> payload['live_period']
This commit is contained in:
parent
f0e64b3653
commit
8aa8fa5986
@ -271,7 +271,7 @@ def send_location(token, chat_id, latitude, longitude, live_period=None, reply_t
|
|||||||
method_url = r'sendLocation'
|
method_url = r'sendLocation'
|
||||||
payload = {'chat_id': chat_id, 'latitude': latitude, 'longitude': longitude}
|
payload = {'chat_id': chat_id, 'latitude': latitude, 'longitude': longitude}
|
||||||
if live_period:
|
if live_period:
|
||||||
payload['live_perion'] = live_period
|
payload['live_period'] = live_period
|
||||||
if reply_to_message_id:
|
if reply_to_message_id:
|
||||||
payload['reply_to_message_id'] = reply_to_message_id
|
payload['reply_to_message_id'] = reply_to_message_id
|
||||||
if reply_markup:
|
if reply_markup:
|
||||||
|
Loading…
Reference in New Issue
Block a user