Class EditMessageLiveLocation
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<EditMessageLiveLocation, Object>
io.github.natanimn.telebof.requests.edit.EditMessageLiveLocation
EditMessageLiveLocation class.
- Since:
- 3 March 2025
-
Constructor Summary
ConstructorsConstructorDescriptionEditMessageLiveLocation
(Object chat_id, double latitude, double longitude, int message_id, Api api) RequiredEditMessageLiveLocation
(String inline_message_id, double latitude, double longitude, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptionbusinessConnectionId
(String business_connection_id) Optionalheading
(int heading) OptionalhorizontalAccuracy
(double horizontal_accuracy) OptionallivePeriod
(int live_period) OptionalproximityAlertRadius
(int proximity_alert_radius) OptionalreplyMarkup
(InlineKeyboardMarkup reply_markup) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
EditMessageLiveLocation
-
EditMessageLiveLocation
-
-
Method Details
-
horizontalAccuracy
Optional- Parameters:
horizontal_accuracy
- The radius of uncertainty for the location, measured in meters; 0-1500- Returns:
EditMessageLiveLocation
-
heading
Optional- Parameters:
heading
- Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.- Returns:
EditMessageLiveLocation
-
proximityAlertRadius
Optional- Parameters:
proximity_alert_radius
- The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.- Returns:
EditMessageLiveLocation
-
replyMarkup
Optional- Parameters:
reply_markup
- A JSON-serialized object for a new inline keyboard.- Returns:
EditMessageLiveLocation
-
livePeriod
Optional- Parameters:
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- Returns:
EditMessageLiveLocation
-
businessConnectionId
Optional- Parameters:
business_connection_id
- Unique identifier of the business connection on behalf of which the message to be edited was sent- Returns:
EditMessageLiveLocation
-