• Resolved AmirHossein

    (@aghorbanmehr)


    Hi
    Could you please explain me how can I add inline keyboard in my custom plugin?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marco Milesi

    (@milmor)

    Hi,
    i’ve not tested a particular way, but at the moment you can use:

    $keyboard_markup = array(
     'inline_keyboard' => telegram_get_inline_keyboard_layout( $template),
    );
    telegram_sendmessage( $chat_id, $text, $keyboard_markup);

    The $template is the standard string described in the plugin documentation.

    Thread Starter AmirHossein

    (@aghorbanmehr)

    Hi
    Really helpfull,
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom plugin’ is closed to new replies.