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 chatId, double latitude, double longitude, int messageId, Api api) RequiredEditMessageLiveLocation(String inlineMessageId, double latitude, double longitude, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptionbusinessConnectionId(String businessConnectionId) Optionalheading(int heading) OptionalhorizontalAccuracy(double horizontalAccuracy) OptionallivePeriod(int livePeriod) OptionalproximityAlertRadius(int proximityAlertRadius) OptionalreplyMarkup(InlineKeyboardMarkup replyMarkup) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
EditMessageLiveLocation
public EditMessageLiveLocation(Object chatId, double latitude, double longitude, int messageId, Api api) Required- Parameters:
chatId- chat idlatitude- latitudelongitude- longitudemessageId- message idapi- api- See Also:
-
EditMessageLiveLocation
Required- Parameters:
inlineMessageId- inline message idlatitude- latitudelongitude- longitudeapi- api
-
-
Method Details
-
horizontalAccuracy
Optional- Parameters:
horizontalAccuracy- 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:
proximityAlertRadius- 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:
replyMarkup- A JSON-serialized object for a new inline keyboard.- Returns:
EditMessageLiveLocation
-
livePeriod
Optional- Parameters:
livePeriod- 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:
businessConnectionId- Unique identifier of the business connection on behalf of which the message to be edited was sent- Returns:
EditMessageLiveLocation
-