B4J Question jtelegrambot onGetUpdatesFailure loop

behnam_tr

Member
hi
@DonManfred
thanks for all answers and solving my problems :):)


i develop telegram bot and add this to the telegram group
it control my group
everythins is ok but when anyone post sticker in group
onGetUpdatesFailure event called and unlimit loop run and down bot and dosent work else

i stop my app and run again but again i get error and bot dosent work

Of course its happening for some stickers not all stickers .
usually it happen on cases that is larg sticker (larg width and height)

B4X:
Sub JTB_onGetUpdatesFailure(error As String)
    Log($"${error}"$)
End Sub
this error message repeat over and over in b4j log
error message
B4X:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "set_name" (class io.fouad.jtb.core.beans.Sticker), not marked as ignorable (6 known properties: "file_size", "width", "height", "file_id", "thumb", "emoji"])
 at [Source: (String)"{"ok":true,"result":[{"update_id":39649731,
"message":{"message_id":5982,"from":{"id":105526931,"is_bot":false,"first_name":"Padina System","username":"padina_system"},"chat":{"id":-1001317513320,"title":"\u2705\u0627\u062a\u0627\u0642 \u0627\u0628\u0634\u062f\u0647 \u062a\u062d\u0648\u06cc\u0644\u06cc \u06af\u0644\u062f\u0627\u0633\u062a\u0627\u0631\u2705","username":"goldstar_trades","type":"supergroup"},"date":1566198709,"sticker":{"width":512,"height":512,"emoji":"\ud83d\ude4f","set_name":""[truncated 224 chars]; line: 2, column: 456] (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["sticker"]->io.fouad.jtb.core.beans.Sticker["set_name"])
 
Last edited:
Top