Php - fixed message width for telegram bot

I’m currently developing a Telegram bot using PHP and the Yii2 framework. My goal is to send messages with a specific width in Telegram. For instance, when I send ‘Hello!’, it should occupy a full line, similar to the image I have in mind.

Is there a way to achieve this? I want to maintain spacing after the message since using
results in a line break immediately after ‘Hello!’. Could I accomplish this without utilizing the tags, as they format the message as a line of code?

One tricky workaround i used was including Unicode invisible characters like the Zero Width Space. Add some after “Hello!” to stretch the text. That way, it looks longer in chat. It won’t show anything but still takes up space. Worth giving a try! :rocket:

In dealing with Telegram bots and message formatting, you might want to utilize the non-breaking space character often represented as   in HTML. Applying this in your bot’s messages can help manipulate the spacing without invoking a line break immediately after your text. You can include several of these characters after “Hello!” to extend the message width visually. Although not visible, the spaces are counted, creating the desired layout effect without disrupting the flow with line breaks or special formatting tags.