• Resolved yrmyrm

    (@yrmyrm)


    Hi,
    I’m trying to add Group widget (legacy) on a Page, with shortcode (and elementor). I’m using a child theme and didn’t quite understand where to put the additional text. Tried to add it to functions on the child theme and site crashed. Can you help?

    Also, after creating a bot, is there another thing I need to do with that bot? Or just create it and add it as an admin to the group?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • For Legacy Widget to work:
    – Disable group privacy for the bot by sending /setprivacy command to @BotFather.
    – Add your bot to the group.
    – Add the widget on your website sidebar
    – Post some new message into the group
    – Wait for 5 minutes for the message to appear on the website.

    Thread Starter yrmyrm

    (@yrmyrm)

    Thank you.

    What if I want to set it on a page not on sidebar? In what file should I type the following code (in order for shortcode to work, and considering I’m using child theme)

    <?php
    if ( function_exists( ‘wptelegram_widget’ ) ) {
    $args = array(
    // ‘num_messages’ => 5,
    // ‘widget_width’ => 100,
    // ‘author_photo’ => ‘auto’,
    );

    wptelegram_widget( $args );
    }
    ?>

    Thanks again

    You can simply add the shortcode [wptelegram-widget] to the page content.

    Thread Starter yrmyrm

    (@yrmyrm)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode’ is closed to new replies.