Title: Error: incorrect parameters (and solved)
Last modified: August 31, 2016

---

# Error: incorrect parameters (and solved)

 *  [sergioucoes](https://wordpress.org/support/users/sergioucoes/)
 * (@sergioucoes)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-incorrect-parameters-and-solved/)
 * I get this error: Error : 400 : Bad Request: Object expected as reply markup.
 * This is the URL than the bot is trying to send:
 * `https://api.telegram.org/botMYKEY/sendMessage?chat_id=MYCHATID&text=Welcome 
   User&parse_mode=Markdown&reply_markup=null`
 * The problem is than reply_markup is null so it never should been sent. If I remove
   the reply_markup parameter when it’s null, the plugin works.
 * [https://wordpress.org/plugins/telegram-bot/](https://wordpress.org/plugins/telegram-bot/)

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

 *  [Danila Vershinin](https://wordpress.org/support/users/dvershinin/)
 * (@dvershinin)
 * [10 years ago](https://wordpress.org/support/topic/error-incorrect-parameters-and-solved/#post-7321971)
 * +1, thanks to sergioucoes
 * Removing reply_markup from below line makes things work for me:
 * `$data = compact('chat_id', 'text', 'parse_mode', 'reply_markup');`
 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [10 years ago](https://wordpress.org/support/topic/error-incorrect-parameters-and-solved/#post-7321972)
 * Hi,
    i’ve just tested it. It seems that Telegram has changed some thing. I am
   investigating it right now. In the meanwhile, v1.3.17 has been released
 *  [telegrampc](https://wordpress.org/support/users/telegrampc/)
 * (@telegrampc)
 * [10 years ago](https://wordpress.org/support/topic/error-incorrect-parameters-and-solved/#post-7321974)
 * Hello
 * I also have a problem
 * **Error: incorrect parameters**
 * Thanks for Create plugin
 * I disable the plugin wp-jalali , but I still have not solved the problem
 * Please help me
 * thanks

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

The topic ‘Error: incorrect parameters (and solved)’ 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/)

 * 3 replies
 * 4 participants
 * Last reply from: [telegrampc](https://wordpress.org/support/users/telegrampc/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/error-incorrect-parameters-and-solved/#post-7321974)
 * Status: not resolved