Class TelegramResource


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

      • producerTemplate

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

        @Inject
        org.apache.camel.ConsumerTemplate consumerTemplate
    • Constructor Detail

      • TelegramResource

        public TelegramResource()
    • Method Detail

      • 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