Regards.
When sending with a telegram bot (with the jTelegrambot version 0.24 library) an image
with this instruction:
jtb.sendPhoto (jtb.byId (from.Id), jtb.MediaByFile (File.DirApp, "Cafeteria.jpg"), "Caption Document", False, Null, replbld.hideCustomKeyboard)
send it and give this error
java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "file_unique_id" (class io.fouad.jtb.core.beans.PhotoSize), not marked as ignorable (5 known properties: "file_path" , "file_size", "file_id", "height", "width"])
The same happens if I send a document.
How can it be corrected?
Thank you
When sending with a telegram bot (with the jTelegrambot version 0.24 library) an image
with this instruction:
jtb.sendPhoto (jtb.byId (from.Id), jtb.MediaByFile (File.DirApp, "Cafeteria.jpg"), "Caption Document", False, Null, replbld.hideCustomKeyboard)
send it and give this error
java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "file_unique_id" (class io.fouad.jtb.core.beans.PhotoSize), not marked as ignorable (5 known properties: "file_path" , "file_size", "file_id", "height", "width"])
The same happens if I send a document.
How can it be corrected?
Thank you
B4X:
B4X: