zachkont / dotaUpdatesBot

A telegram bot for dota2 updates
GNU General Public License v3.0
23 stars 23 forks source link

Improve /dotanews display #28

Closed TimJentzsch closed 7 years ago

TimJentzsch commented 7 years ago

As of now, the text is formatted as code. Probably a normal text formatting would be better suited for the news.

Either way, these things should get fixed:

  1. Add proper word wrapping. Currently, the sentences are just cut off mid-word.
  2. Remove empty space. Currently, the parsing leaves a lot of empty space at the beginning of the news.

Link to the current Steam News Screenshot of the current output:

Current Output

zachkont commented 7 years ago

The text format is just to differentiate from normal messaging. I kinda prefer it that way

The wrapping is the regular message wrap that depends on your screen width/device. That is handled by the telegram client, not much to be done

The empty space will be fixed asap

TimJentzsch commented 7 years ago

Ah, ok, I thought a change to normal formatting would fix the wrap issue, but apparently it is only like this on the Web version of Telegram. Most users probably use the mobile version anyway, so it won't matter that much. I will have to wait for a new steam update to confirm this behaviour.

TimJentzsch commented 7 years ago

Closed via b9e6196.