Class GreenApiSending

java.lang.Object
com.greenapi.client.pkg.api.methods.GreenApiSending

public class GreenApiSending extends Object
  • Constructor Details

    • GreenApiSending

      public GreenApiSending()
  • Method Details

    • sendMessage

      public org.springframework.http.ResponseEntity<SendMessageResp> sendMessage(OutgoingMessage message)
      The method is aimed for sending a text message to a personal or a group chat. https://greenapi.com/en/docs/api/sending/SendMessage/
    • sendButtons

      public org.springframework.http.ResponseEntity<SendMessageResp> sendButtons(OutgoingButtons buttons)
      The method is aimed for sending a button message to a personal or a group chat. https://greenapi.com/en/docs/api/sending/SendButtons/

      Attention, please! The method is temporarily not working. When the method is called, a 403 error will be returned.

    • sendTemplateButtons

      public org.springframework.http.ResponseEntity<SendMessageResp> sendTemplateButtons(OutgoingTemplateButtons buttons)
      The method is aimed for sending a message with template list interactive buttons to a personal or a group chat. https://greenapi.com/en/docs/api/sending/SendTemplateButtons/

      Attention, please! The method is temporarily not working. When the method is called, a 403 error will be returned.

    • sendListMessage

      public org.springframework.http.ResponseEntity<SendMessageResp> sendListMessage(OutgoingListMessage dto)
      TThe method is aimed for sending a message with a select button from a list of values to a personal or a group chat. https://greenapi.com/en/docs/api/sending/SendListMessage/

      Attention, please! The method is temporarily not working. When the method is called, a 403 error will be returned.

    • sendContact

      public org.springframework.http.ResponseEntity<SendMessageResp> sendContact(OutgoingContact contact)
      The method is aimed for sending a contact message. https://greenapi.com/en/docs/api/sending/SendContact/
    • sendFileByUpload

      public org.springframework.http.ResponseEntity<SendFileByUploadResp> sendFileByUpload(OutgoingFileByUpload dto)
      The method is aimed for sending a file uploaded by form (form-data). https://greenapi.com/en/docs/api/sending/SendFileByUpload/
    • sendFileByUrl

      public org.springframework.http.ResponseEntity<SendMessageResp> sendFileByUrl(OutgoingFileByUrl fileByUrl)
      The method is aimed for sending a file uploaded by Url. https://greenapi.com/en/docs/api/sending/SendFileByUrl/
    • uploadFile

      public org.springframework.http.ResponseEntity<UploadFileResp> uploadFile(File file) throws IOException
      The method is designed to upload a file to the cloud storage, which can be sent using the sendFileByUrl method. https://greenapi.com/en/docs/api/sending/UploadFile/
      Throws:
      IOException
    • sendLocation

      public org.springframework.http.ResponseEntity<SendMessageResp> sendLocation(OutgoingLocation location)
      The method is aimed for sending location message https://greenapi.com/en/docs/api/sending/SendLocation/
    • sendPoll

      public org.springframework.http.ResponseEntity<SendMessageResp> sendPoll(OutgoingPoll poll)
      This method is intended for sending messages with a poll to a private or group chat. https://greenapi.com/en/docs/api/sending/SendPoll/