Title: php in commands
Last modified: August 30, 2016

---

# php in commands

 *  Resolved [rainafarai](https://wordpress.org/support/users/rainafarai/)
 * (@rainafarai)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-in-commands/)
 * Hi ..
    good work… !! just a question how include php in command post? I have 
   wp php exec plug in … but if i paste <?php ?> code inside the post the bot replay
   me the code without execute it
 * [https://wordpress.org/plugins/telegram-bot/](https://wordpress.org/plugins/telegram-bot/)

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

 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-in-commands/#post-6674208)
 * Hello,
    please try [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)
   and let us know if it works 🙂
 *  Thread Starter [rainafarai](https://wordpress.org/support/users/rainafarai/)
 * (@rainafarai)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-in-commands/#post-6674223)
 * thank you for the answer .. I tried .. nah work..
    first i disable my old php
   exe plugin installed insert-php plug
 * I edited a command and paste this line:
 *     ```
       [insert_php]
       echo 'Local date and time is: ';
       $hours = 1;
       echo gmdate('l, F j, Y \a\t G:i:s', time()+intval($hours*60*60));
       [/insert_php]
       ```
   
 * and thats is what i get back form the bot :
 *     ```
       insert_php
       echo 'Local date and time is: ';
       $hours = 1;
       echo gmdate('l, F j, Y \a\t G:i:s', time()+intval($hours6060));
       /insert_php
       ```
   
 * while im searching a solution i added more cases command in your php
    that can
   do query on database and other stuff ..
 * Let me know if i miss something
    thanx again
 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-in-commands/#post-6674229)
 * Please give me some time to check it. If possible, i will add shortcode parsing.
 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-in-commands/#post-6674231)
 * Please try **version 0.10**. Now you should be able to use other plugin’s shortcodes.
   This includes php parsing as well (tested with [/wordpress.org/plugins/insert-php](https://wordpress.org/plugins/insert-php/)).
 * I will check [WPTele.ga](http://wptele.ga) compatibility in some hours. Thank
   you for the feedback!

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

The topic ‘php in commands’ 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/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 4 replies
 * 2 participants
 * Last reply from: [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/php-in-commands/#post-6674231)
 * Status: resolved