Thanks DonManfred, for you respond.
I'm searching for this one:
Due to the Size of the needed Additional JARs they can be downloaded
HERE.
I was looking for it on the internet and came across the JARs that were reported as lost at compile time, these are:
Jackson-annotations-2.9.8.jar
jackson-core-2.9.8.jar
jackson-databind-2.9.8.jar
I download it from
www.java2s.con and then compile the Example you send in your post, it compiles without problem, but I get an error when I execute any / command from my mobile telegram. The information is received, but then the bot error occurred and it crashed.
Error was:
MessageText: /location
Error occurred on line: 136 (Main)
com.fasterxml.jackson.databind.JsonMappingException: Numeric value (5144666218) out of range of int
at [Source: (String)"{"ok":true,"result":{"message_id":13,"from":{"id":5144666218,"is_bot":true,"first_name":"THE Bot","username":"nameBot"},"chat":{"id":324358714,"first_name":"Luis","last_name":"Perez","username":"sdfsdfdfd","type":"private"},"date":34534543544,"reply_to_message":{"message_id":12,"from":{"id":324358714,"is_bot":false,"first_name":"Luyis","last_name":"Perez","username":"usuarieo","language_code":"en"},"chat":{"id":324358714,"first_name":"Luis","last_name":"Pere3z","username":"usuario"[truncated 175 chars]; line: 1, column: 51] (through reference chain: io.fouad.jtb.core.beans.TelegramResult["result"]->io.fouad.jtb.core.beans.Message["from"]->io.fouad.jtb.core.beans.User["id"])
at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:394)
at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:353)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1711)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:290)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:136)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:136)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4013)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3023)
at io.fouad.jtb.core.utils.JsonUtils.toJavaObject(JsonUtils.java:51)
at io.fouad.jtb.core.JTelegramBot.sendLocation(JTelegramBot.java:635)
at de.donmanfred.JTBwrapper.sendLocation(JTBwrapper.java:486)
at gad.eventos.main._jtb_onmessagereceived(main.java:403)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:632)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:237)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at jdk.internal.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:108)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
at anywheresoftware.b4a.BA$3.run(BA.java:264)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:47)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:43)
at anywheresoftware.b4a.shell.ShellBA.startMessageLoop(ShellBA.java:119)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:170)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:309)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:108)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:95)
at gad.eventos.main.main(main.java:29)
Caused by: com.fasterxml.jackson.core.JsonParseException: Numeric value (5088777218) out of range of int
at [Source: (String)"{"ok":true,"result":{"message_id":13,"from":{"id":5088777218,"is_bot":true,"first_name":"GAD Eventos","username":"gadevenBot"},"chat":{"id":324358714,"first_name":"Rafael","last_name":"Liriano","username":"rasaliad","type":"private"},"date":1641704866,"reply_to_message":{"message_id":12,"from":{"id":324358714,"is_bot":false,"first_name":"Rafael","last_name":"Liriano","username":"rasaliad","language_code":"en"},"chat":{"id":324358714,"first_name":"Rafael","last_name":"Liriano","username":"rasalia"[truncated 175 chars]; line: 1, column: 61]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1804)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:693)
at com.fasterxml.jackson.core.base.ParserBase.convertNumberToInt(ParserBase.java:886)
at com.fasterxml.jackson.core.base.ParserBase._parseIntValue(ParserBase.java:801)
at com.fasterxml.jackson.core.base.ParserBase.getIntValue(ParserBase.java:645)
at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:472)
at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:452)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:136)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
... 40 more
thanks againg.