Class TelegramResource

java.lang.Object
org.apache.camel.quarkus.component.telegram.it.TelegramResource

@Path("/telegram") @ApplicationScoped public class TelegramResource extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) String
     
    (package private) org.apache.camel.ConsumerTemplate
     
    (package private) org.apache.camel.ProducerTemplate
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    editLocation(org.apache.camel.component.telegram.model.EditMessageLiveLocationMessage message)
     
     
    javax.ws.rs.core.Response
    postMedia(String type, byte[] message)
     
    javax.ws.rs.core.Response
     
    javax.ws.rs.core.Response
    sendLocation(org.apache.camel.component.telegram.model.SendLocationMessage message)
     
    javax.ws.rs.core.Response
    stopLocation(org.apache.camel.component.telegram.model.StopMessageLiveLocationMessage message)
     
    javax.ws.rs.core.Response
    venue(org.apache.camel.component.telegram.model.SendVenueMessage message)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
    • consumerTemplate

      @Inject org.apache.camel.ConsumerTemplate consumerTemplate
    • chatId

      String chatId
  • Constructor Details

    • TelegramResource

      public TelegramResource()
  • Method Details

    • getMessages

      @Path("/messages") @GET @Produces("text/plain") public String getMessages()
    • postMessage

      @Path("/messages") @POST @Consumes("text/plain") @Produces("text/plain") public javax.ws.rs.core.Response postMessage(String msg) throws Exception
      Throws:
      Exception
    • postMedia

      @Path("/media") @POST @Produces("text/plain") public javax.ws.rs.core.Response postMedia(@HeaderParam("Content-type") String type, byte[] message) throws Exception
      Throws:
      Exception
    • sendLocation

      @Path("/send-location") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response sendLocation(org.apache.camel.component.telegram.model.SendLocationMessage message) throws Exception
      Throws:
      Exception
    • editLocation

      @Path("/edit-location") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response editLocation(org.apache.camel.component.telegram.model.EditMessageLiveLocationMessage message) throws Exception
      Throws:
      Exception
    • stopLocation

      @Path("/stop-location") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response stopLocation(org.apache.camel.component.telegram.model.StopMessageLiveLocationMessage message) throws Exception
      Throws:
      Exception
    • venue

      @Path("/venue") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response venue(org.apache.camel.component.telegram.model.SendVenueMessage message) throws Exception
      Throws:
      Exception