1

I use:

shell: C: \ Program Files \ PowerShell \ 7 \ pwsh.EXE

I send in CURL telegrams with emoji, but they are sent as question marks. How to encode emoji so that they are sent as emoticons?

send_msg () {
    curl -s -X POST $ {URL} -d chat_id = $ TELEGRAM \
        -d text = "$ 1" -d parse_mode = $ {PARSE_MODE}
}

send_msg "   ️ "

enter image description here

mklement0
  • 382,024
  • 64
  • 607
  • 775
иван
  • 19
  • 2
  • 2
    `$ {PARSE_MODE}`, `$ TELEGRAM`... are not valid ways to reference a variable – phuclv Aug 07 '21 at 01:24
  • I hope the linked duplicate answers your question. Separately, please remove the extraneous space characters from the code in your question. – mklement0 Aug 07 '21 at 22:05

0 Answers0