Skip to content

Commit 71346d8

Browse files
committed
Added the parameter live_period to the method editMessageLiveLocation u1
1 parent 51db7de commit 71346d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

telebot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3284,7 +3284,7 @@ def edit_message_live_location(
32843284
:param proximity_alert_radius: The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
32853285
:type proximity_alert_radius: :obj:`int`
32863286
3287-
:param live_period: The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
3287+
:param live_period: New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged
32883288
:type live_period: :obj:`int`
32893289
32903290
:return: On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

telebot/async_telebot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4696,7 +4696,7 @@ async def edit_message_live_location(
46964696
:param proximity_alert_radius: The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
46974697
:type proximity_alert_radius: :obj:`int`
46984698
4699-
:param live_period: The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
4699+
:param live_period: New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged
47004700
:type live_period: :obj:`int`
47014701
47024702
:return: On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

0 commit comments

Comments
 (0)