• Resolved MyNation

    (@mynation)


    I Installed this Plugin

    for test Token option it gives this error
    Test Result:
    Error: invalid_json (The response is not a valid JSON response.)

    and also it is not saving both Bot name and token, Error message is

    Changes could not be saved

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Irshad Ahmad

    (@irshadahmad21)

    Hi,

    It may be something related to WP REST API on your site. Perhaps it’s disabled or something is wrong with it.

    Can you please follow these steps?

    • Open the settings page
    • Enter the bot token
    • Open the browser dev tools by pressing f12 on your keyboard
    • Select the Network tab in the dev tools
    • Clear Network log by clicking on the clear button 🚫 or pressing Ctrl + L
    • Click on Test Token
    • Check the request in the Network tab
    • Click on the request
    • Share a screenshot
    Thread Starter MyNation

    (@mynation)

    Request URL:https://website.com/wp-json/wptelegram-bot/v1/getMe/?_locale=user
    Request Method:POST
    Status Code:404 Not Found
    Remote Address:151.106.124.23:443
    Referrer Policy:strict-origin-when-cross-origin

    accept-ranges:bytes
    content-encoding:br
    content-length:912
    content-type:text/html
    date:Sat, 04 Jan 2025 03:53:30 GMT
    etag:"666-60536dde-5961c286019756da;br"
    last-modified:Thu, 18 Mar 2021 15:12:30 GMT
    Plugin Author Irshad Ahmad

    (@irshadahmad21)

    That confirms my guess that WP REST API is not functional on your site. https://website.com/wp-json/ should not return 404.

    Please check your website configuration and Permalink settings to ensure that the REST API works fine.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Not Saving BOT name or Token’ is closed to new replies.