Title: custom plugin
Last modified: March 11, 2017

---

# custom plugin

 *  Resolved [AmirHossein](https://wordpress.org/support/users/aghorbanmehr/)
 * (@aghorbanmehr)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom-plugin-5/)
 * 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](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom-plugin-5/#post-8912750)
 * 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](https://wordpress.org/support/users/aghorbanmehr/)
 * (@aghorbanmehr)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom-plugin-5/#post-8921322)
 * Hi
    Really helpfull, Thanks.

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

The topic ‘custom plugin’ is closed to new replies.

 * ![](https://ps.w.org/telegram-bot/assets/icon-256x256.png?rev=2981438)
 * [Telegram Bot & Channel](https://wordpress.org/plugins/telegram-bot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/telegram-bot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/telegram-bot/)
 * [Active Topics](https://wordpress.org/support/plugin/telegram-bot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/telegram-bot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/telegram-bot/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [AmirHossein](https://wordpress.org/support/users/aghorbanmehr/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/custom-plugin-5/#post-8921322)
 * Status: resolved