• Resolved mongobongo

    (@nima1981)


    I currently use this plugin to send new posts out to Telegram when they’re published.

    At any given moment there also exists a group of posts with a certain custom field greater than zero. Those are our featured posts.

    Is there a way to use this plugin to send those posts out once a day in parallel to the existing process of sending newly published posts?

    If not, is there a way I can use a php function in this plugin to send a post to telegram by coding it myself?

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

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter mongobongo

    (@nima1981)

    With the above code, is it possible to add the button underneath the post with the link icon?

    Plugin Author Irshad Ahmad

    (@irshadahmad21)

    is it possible to add the button underneath the post with the link icon?

    $bot_api->sendMessage( [
        'chat_id'     => $channel,
        'text'        => 'Hello World',
        'reply_markup => wp_json_encode([
            'inline_keyboard' => [[
                [
                    'text' => '?? View post',
                    'url'  => 'https://example.com',
                ],
            ]],
        ]),
    ] );
    
    Thread Starter mongobongo

    (@nima1981)

    That worked beautifully, thanks! Just one little thing: I had to add a single quote after reply_markup.

    Plugin Author Irshad Ahmad

    (@irshadahmad21)

    I had to add a single quote after reply_markup.

    Yeah, difficult to test and debug the code when using mobile phone ??

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Submit existing posts with a certain custom field value’ is closed to new replies.