Class SendLocation
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SendLocation, Message>
io.github.natanimn.telebof.requests.send.SendLocation
SendLocation class. Returns sent 
Message on success.- Since:
- 3 March 2025
- 
Constructor SummaryConstructorsConstructorDescriptionSendLocation(Object chat_id, double latitude, double longitude, Api api) Required
- 
Method SummaryModifier and TypeMethodDescriptionbusinessConnectionId(String business_connection_id) OptionaldirectMessagesTopicId(int direct_messages_topic_id) OptionaldisableNotification(boolean disable_notification) Optionalheading(int heading) OptionalhorizontalAccuracy(double horizontal_accuracy) OptionallivePeriod(int live_period) OptionalmessageEffectId(String message_effect_id) OptionalprotectContent(boolean protect_content) OptionalproximityAlertRadius(int proximity_alert_radius) OptionalreplyMarkup(Markup reply_markup) OptionalreplyParameters(ReplyParameters reply_parameters) OptionalsuggestedPostParameters(SuggestedPostParameters suggested_post_parameters) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequestexec
- 
Constructor Details- 
SendLocation
 
- 
- 
Method Details- 
horizontalAccuracyOptional- Parameters:
- horizontal_accuracy- The radius of uncertainty for the location, measured in meters; 0-1500
- Returns:
- SendLocation
 
- 
livePeriodOptional- Parameters:
- live_period- Period in seconds during which the location will be updated (should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
- Returns:
- SendLocation
- See Also:
 
- 
headingOptional- Parameters:
- heading- For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
- Returns:
- SendLocation
 
- 
proximityAlertRadiusOptional- Parameters:
- proximity_alert_radius- For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
- Returns:
- SendLocation
 
- 
disableNotificationOptional- Parameters:
- disable_notification- Sends the message silently. Users will receive a notification with no sound.
- Returns:
- SendLocation
 
- 
protectContentOptional- Parameters:
- protect_content- Protects the contents of the sent message from forwarding and saving
- Returns:
- SendLocation
 
- 
replyParametersOptional- Parameters:
- reply_parameters- Description of the message to reply to
- Returns:
- SendLocation
 
- 
replyMarkupOptional- Parameters:
- reply_markup- Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
- Returns:
- SendLocation
 
- 
businessConnectionIdOptional- Parameters:
- business_connection_id- Unique identifier of the business connection on behalf of which the message will be sent
- Returns:
- SendLocation
 
- 
messageEffectIdOptional- Parameters:
- message_effect_id- Unique identifier of the message effect to be added to the message; for private chats only
- Returns:
- SendLocation
 
- 
directMessagesTopicIdOptional- Parameters:
- direct_messages_topic_id- Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
- Returns:
- SendLocation
 
- 
suggestedPostParametersOptional- Parameters:
- suggested_post_parameters- A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
- Returns:
- SendLocation
 
 
-