mazipan / tanyaaja.in

❓Kumpulkan pertanyaan secara anonim dari siapa saja dengan mudah
https://tanyaaja.in
MIT License
134 stars 36 forks source link

Telegram message not formatted correctly #64

Closed mazipan closed 11 months ago

mazipan commented 11 months ago

Describe the bug Several times ago, we develop a telegram notification via Bot.

But the message seems not formatted properly.

To Reproduce Steps to reproduce the behavior:

  1. Activate your Telegram Notification
  2. Try to send message
  3. Check the message format

Expected behavior

The markdown message should be formatted properly.

Screenshots Screenshot_20231013-200422_Telegram

Additional context Possibly need to add additional parameter when sending the message.

{
 parse_mode: markdown',
 disable_web_page_preview: true
}

Reference: https://core.telegram.org/bots/api#sendmessage

aldy505 commented 11 months ago

parse_mode harusnya HTML. terus ngoding old school HTML biasa. see https://core.telegram.org/api/entities#allowed-entities