B4J Question jtelegrambot Lib Error when recive video file

behnam_tr

Active Member
Licensed User
hi

jtelegrambot Lib Error when receive a video file (v.026)

There is also a similar problem and Error for receiving voice and Audio and
also forwarded photo to bot that contain caption.

thanks .

B4X:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "file_unique_id" (class io.fouad.jtb.core.beans.Video), not marked as ignorable (7 known properties: "duration", "mime_type", "width", "height", "file_id", "file_size", "thumb"])
at [Source: (String)"{"ok":true,"result":[{"update_id":673140076,
"message":{"message_id":2239,"from":{"id":105526931,"is_bot":false,"first_name":"Padina System","username":"padina_system","language_code":"fa"},"chat":{"id":105526931,"first_name":"Padina System","username":"padina_system","type":"private"},"date":1579510997,"video":{"duration":0,"width":0,"height":0,"mime_type":"video/mp4","file_id":"BAADBAADHgcAAlPDMVF276mRnkwVFhYE","file_unique_id":"AgADHgcAAlPDMVE","file_size":714}}}]}
"; line: 2, column: 391] (through reference chain: io.fouad.jtb.core.beans.TelegramResult["result"]->java.lang.Object[][0]->io.fouad.jtb.core.beans.Update["message"]->io.fouad.jtb.core.beans.Message["video"]->io.fouad.jtb.core.beans.Video["file_unique_id"])


B4X:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "caption_entities" (class io.fouad.jtb.core.beans.Message), not marked as ignorable (39 known properties: "entities", "new_chat_member", "edit_date", "left_chat_participant", "new_chat_photo", "new_chat_participant", "forward_from_message_id", "message_id", "audio", "chat", "document", "reply_markup", "delete_chat_photo", "contact", "migrate_from_chat_id", "forward_from", "caption", "forward_date", "left_chat_member", "from", "text", "date", "venue", "new_chat_title", "new_chat_members", "game", "location", "reply_to_message", "video", "supergroup_chat_created", "sticker", "group_chat_created", "animation", "forward_from_chat", "pinned_message", "photo", "channel_chat_created", "voice", "migrate_to_chat_id"])
 at [Source: (String)"{"ok":true,"result":[{"update_id":684934347,
"message":{"message_id":19381,"from":{"id":105526931,"is_bot":false,"first_name":"Padina System","username":"padina_system","language_code":"fa"},"chat":{"id":-1001317513320,"title":"\u06af\u0631\u0648\u0647 \u0645\u0639\u0627\u0645\u0644\u0627\u062a \u0622\u0628\u0634\u062f\u0647 \u06af\u0644\u062f\u0627\u0633\u062a\u0627\u0631","type":"supergroup"},"date":1579021437,"photo":[{"file_id":"AgADBAADArQxG2nu8FAs8K0vAzjJ8OJDsRoABAEAAwIAA20AA_10BAABFgQ",""[truncated 13559 chars]; line: 2, column: 3395] (through reference chain: io.fouad.jtb.core.beans.TelegramResult["result"]->java.lang.Object[][0]->io.fouad.jtb.core.beans.Update["message"]->io.fouad.jtb.core.beans.Message["caption_entities"])


B4X:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "caption_entities" (class io.fouad.jtb.core.beans.Message), not marked as ignorable (39 known properties: "entities", "new_chat_member", "edit_date", "left_chat_participant", "new_chat_photo", "new_chat_participant", "forward_from_message_id", "message_id", "audio", "chat", "document", "reply_markup", "delete_chat_photo", "contact", "migrate_from_chat_id", "forward_from", "caption", "forward_date", "left_chat_member", "from", "text", "date", "venue", "new_chat_title", "new_chat_members", "game", "location", "reply_to_message", "video", "supergroup_chat_created", "sticker", "group_chat_created", "animation", "forward_from_chat", "pinned_message", "photo", "channel_chat_created", "voice", "migrate_to_chat_id"])
at [Source: (String)"{"ok":true,"result":[{"update_id":684934347,
"message":{"message_id":19381,"from":{"id":105526931,"is_bot":false,"first_name":"Padina System","username":"padina_system","language_code":"fa"},"chat":{"id":-1001317513320,"title":"\u06af\u0631\u0648\u0647 \u0645\u0639\u0627\u0645\u0644\u0627\u062a \u0622\u0628\u0634\u062f\u0647 \u06af\u0644\u062f\u0627\u0633\u062a\u0627\u0631","type":"supergroup"},"date":1579021437,"photo":[{"file_id":"AgADBAADArQxG2nu8FAs8K0vAzjJ8OJDsRoABAEAAwIAA20AA_10BAABFgQ",""[truncated 13559 chars]; line: 2, column: 3395] (through reference chain: io.fouad.jtb.core.beans.TelegramResult["result"]->java.lang.Object[][0]->io.fouad.jtb.core.beans.Update["message"]->io.fouad.jtb.core.beans.Message["caption_entities"])
 
Last edited:
Top