Class TelegramResource
java.lang.Object
org.apache.camel.quarkus.component.telegram.it.TelegramResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String(package private) org.apache.camel.ConsumerTemplate(package private) org.apache.camel.CamelContext(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseeditLocation(org.apache.camel.component.telegram.model.EditMessageLiveLocationMessage message) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsepostMessage(String msg) jakarta.ws.rs.core.ResponsesendLocation(org.apache.camel.component.telegram.model.SendLocationMessage message) jakarta.ws.rs.core.ResponsestopLocation(org.apache.camel.component.telegram.model.StopMessageLiveLocationMessage message) jakarta.ws.rs.core.Responsevenue(org.apache.camel.component.telegram.model.SendVenueMessage message)
-
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
-
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
-