gruenes-brett / community-calendar

Wordpress plugin that allows users to submit events to a website and to show them in a calendar
GNU General Public License v3.0
1 stars 1 forks source link

Telegram: improve formatting #42

Open joergrs opened 2 years ago

joergrs commented 2 years ago

The Telegram bot feature was implemented in #40 . Currently the event entries are formatted as

*[starttime] Uhr* [organizer] | [title]

Improvements

  1. Better would be to have both start and end times: [startime]-[endtime] Uhr (e.g. "12-13:30 Uhr")
  2. All-day events currently show "0 Uhr". Better: "Ganztägig"
  3. Multi-day events currently are only shown at the first day. Better: [starttime] Uhr [organizer] | [title] (bis [lastday])

Implementation: https://github.com/gruenes-brett/community-calendar/blob/master/view/markdown/class-comcal-markdown-event-renderer.php