• 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

    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

    (@falkia34)

    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.