All Implemented Interfaces:
Validable

public class SendLocation extends BotApiMethodMessage
Version:
1.0 Use this method to send point on the map. On success, the sent Message is returned.
Author:
Ruben Bermudez
  • Field Details

  • Constructor Details

    • SendLocation

      public SendLocation()
  • Method Details

    • setChatId

      public void setChatId(@NonNull @NonNull Long chatId)
    • enableNotification

      public void enableNotification()
    • disableNotification

      public void disableNotification()
    • getMethod

      public String getMethod()
      Description copied from class: BotApiMethod
      Getter for method path (that is the same as method name)
      Specified by:
      getMethod in class BotApiMethod<Message>
      Returns:
      Method path
    • validate

      public void validate() throws TelegramApiValidationException
      Description copied from interface: Validable
      Validates that mandatory fields are filled and optional objects
      Throws:
      TelegramApiValidationException - If any mandatory field is empty