• Resolved ederhj

    (@ederhj)


    Hello,
    I have a Problem.
    I do not know, whats the event, that a telegram message is sent.

    I have the following issue:
    I have a page with the ID 273.
    On this page I use AJAX to modify the content of the shown content on this page (the WordPress-Content is not changed, but the show content on the site).
    Therefore I want die trigger the sending of a telegram message.
    I tried to update the POSTS-Table via UPDATE-command in MYSQL on both field POST_MODIFIED and POST_MODIFIED_GMT. I hoped, that then thers a cron-job who recognizes the change an send a message.
    But it is not so.
    Can anyone help me?

    Thank U.
    Bye
    Hans-Jürgen

    • This topic was modified 4 years, 2 months ago by ederhj.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    WP Telegram hooks into wp_insert_post action to send a post to Telegram. You can use wp_update_post function to update the page content in database to trigger WP Telegram and it will pick that page content and send it to Telegram. Directly updating the database will not trigger the event.

    Thread Starter ederhj

    (@ederhj)

    OK, Thank U.

    But then I do not know how the whole thing works.
    I only write via AJAX in my own MYSQL-Table.
    What do I need to do, that your command works correctly?

    Bye

    The plugin does not subscribe to database changes. It only gets triggered when the post is published or updated via WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event for sending a Telegram Message’ is closed to new replies.