jellyfin-plugin-webhook icon indicating copy to clipboard operation
jellyfin-plugin-webhook copied to clipboard

Messages partially to long for Telegram API

Open fuxx opened this issue 2 years ago • 1 comments

Hello :-)

I am using the web hook plugin in combination with Telegram. It works pretty solid but some movies and episodes of series have a pretty long description and sometimes captions. Unfortunately it doesn't look like the text can be shorten via template helpers as the template engine has no default helper to cut the text with a specific length.

It would be awesome if you can add a helper to shorten the text in the template engine. The documentation of Handlebar states it should be possible via customer helpers.

The error message which appears in my log files is:

Notification failed with response status code BadRequest: "{\"ok\":false,\"error_code\":400,\"description\":\"Bad Request: message caption is too long\"}"

fuxx avatar Nov 14 '22 12:11 fuxx

have same problem

lyaschuchenko avatar Nov 19 '22 02:11 lyaschuchenko