Title: Telegram api using webhook
Last modified: July 27, 2020

---

# Telegram api using webhook

 *  [Muhammad Naufal](https://wordpress.org/support/users/falkia34/)
 * (@falkia34)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/telegram-api-using-webhook/)
 * Hello, I want to use the Webhook JSON to post a message through a Telegram bot
 * So i use HTTP POST to URL like [https://api.telegram.org/bot12345:Abcdefghijk/sendMessage](https://api.telegram.org/bot12345:Abcdefghijk/sendMessage)
 * And I use this JSON:
 *     ```
       {
       	"chat_id":-1001210216456,
       	"text":"#USERLOGIN%0A%0AUsername: {userlogin}%0AName: {user_display_name}%0AIP Address: {user_IP}%0ATime: {user_logged_in_datetime}",
       	"disable_web_page_preview":true,
       	"parse_mode":"markdown"
       }
       ```
   
 * But no message sent by the bot.
    Do i made any mistake?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Muhammad Naufal](https://wordpress.org/support/users/falkia34/)
 * (@falkia34)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/telegram-api-using-webhook/#post-13173328)
 * The main issue is i can’t create line break. Usually, i can create line break
   on Telegram use `\n` or `%0A`, but both of them printed exactly like that (\n
   or %0A) when i tried to used it.

Viewing 1 replies (of 1 total)

The topic ‘Telegram api using webhook’ is closed to new replies.

 * ![](https://ps.w.org/notification/assets/icon-256x256.gif?rev=3476901)
 * [Notification - Custom Notifications and Alerts for WordPress](https://wordpress.org/plugins/notification/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/notification/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/notification/)
 * [Active Topics](https://wordpress.org/support/plugin/notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/notification/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Muhammad Naufal](https://wordpress.org/support/users/falkia34/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/telegram-api-using-webhook/#post-13173328)
 * Status: not resolved