Class TelegramResource

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

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

    • producerTemplate

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

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

      @Inject org.apache.camel.CamelContext context
    • 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 jakarta.ws.rs.core.Response postMessage(String msg) throws Exception
      Throws:
      Exception
    • postMedia

      @Path("/media") @POST @Produces("text/plain") public jakarta.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 jakarta.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 jakarta.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 jakarta.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 jakarta.ws.rs.core.Response venue(org.apache.camel.component.telegram.model.SendVenueMessage message) throws Exception
      Throws:
      Exception
    • webhookMessages

      @Path("/webhook") @Produces("text/plain") @GET public String webhookMessages()