jt3k / chat-linker

the bridge between jabber and telegram over chat-bots
MIT License
47 stars 9 forks source link

Option to make Telegram messages more compact #24

Closed ForNeVeR closed 7 years ago

ForNeVeR commented 7 years ago

Currently Telegram messages aren't very compact: they look like

username Message body.

I suggest to add an option to change the format to more compact, such as

\<username> Message body.

jt3k commented 7 years ago

Good idea!

jt3k commented 7 years ago

Now you can specify the messageTemplate property in the config to change the message template for the jabber and the telegram

{
  "jabber": {
    "...": "...",
    "messageTemplate": "<{name}> {message}"
  }
}