I
I
Ivan Shevtsov2019-08-29 17:11:25
Telegram
Ivan Shevtsov, 2019-08-29 17:11:25

How to make a line break in a message via the Telegram API?

Hello, how to transfer the deadlines in a message that you send via the Telegram API?
https://api.telegram.org/bot/sendMessage?chat_id= '.$tel.'&text=You have a new task available: '.$name.' Payment: '.$price.'
Everything works through file_get_contents, the request is sent, but, as expected, it comes without a line break. You can't shove \n, because then the request will not reach, are there any options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil K., 2020-02-11
@Danya_Violet

&text=first line%0D%0Asecond line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question