1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

B4J Question JTelegramBot Problem

Discussion in 'B4J Questions' started by behnam_tr, Jul 26, 2019.

  1. behnam_tr

    behnam_tr Member

    hello everyone
    i got this error in JTelegramBot library

    Program started.
    JTelegramBot (myseke_bot) starts 
    in "Polling" mode.
    401, errorCode=401, description='Unauthorized'} io.fouad.jtb.core.exceptions.NegativeResponseException: Error Code = 401 | Description = Unauthorized
    NegativeResponseException{httpResponseCode=401, errorCode=401, description='Unauthorized'} io.fouad.jtb.core.exceptions.NegativeResponseException: Error Code = 401 | Description = Unauthorized

    Please help me
  2. DonManfred

    DonManfred Expert Licensed User

    Seems like your are not initializing it correctly. The bot is not authorized.
    are you using correct bot-access-token?
    Please post the code you are using.
  3. behnam_tr

    behnam_tr Member

    thanks i creat new bot and token
    problem solved.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice