Hello Everyone,
I am facing an issue with jtelegrambot for the new users who have registered with telegram. A possible cause is the user-id of newly registered users are in 5 billion (5065327552) and it is probably declared as int. any solution to this is highly appreciated
com.fasterxml.jackson.databind.JsonMappingException: Numeric value (5065327552) out of range of int
at [Source: (String)"{"ok":true,"result":[{"update_id":45069793,
"message":{"message_id":2449,"from":{"id":5065327552,"is_bot":false,"first_name":"Pize","last_name":"Burger","language_code":"en"},"chat":{"id":5065327552,"first_name":"Pize","last_name":"Burger","type":"private"},"date":1638871949,"text":"/start","entities":[{"offset":0,"length":6,"type":"bot_command"}]}},{"update_id":45069794,
"message":{"message_id":2450,"from":{"id":5065327552,"is_bot":false,"first_name":"Pize","last_name":"Burger","language_code"[truncated 1987 chars]; line: 2, column: 43] (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["from"]->io.fouad.jtb.core.beans.User["id"])
I am facing an issue with jtelegrambot for the new users who have registered with telegram. A possible cause is the user-id of newly registered users are in 5 billion (5065327552) and it is probably declared as int. any solution to this is highly appreciated
com.fasterxml.jackson.databind.JsonMappingException: Numeric value (5065327552) out of range of int
at [Source: (String)"{"ok":true,"result":[{"update_id":45069793,
"message":{"message_id":2449,"from":{"id":5065327552,"is_bot":false,"first_name":"Pize","last_name":"Burger","language_code":"en"},"chat":{"id":5065327552,"first_name":"Pize","last_name":"Burger","type":"private"},"date":1638871949,"text":"/start","entities":[{"offset":0,"length":6,"type":"bot_command"}]}},{"update_id":45069794,
"message":{"message_id":2450,"from":{"id":5065327552,"is_bot":false,"first_name":"Pize","last_name":"Burger","language_code"[truncated 1987 chars]; line: 2, column: 43] (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["from"]->io.fouad.jtb.core.beans.User["id"])