Merge pull request #1326 from samwiseg00/update/telegram_limit

Update character limit for telegram to reflect API changes.
This commit is contained in:
JonnyWong16
2018-10-16 18:00:28 -07:00
committed by GitHub

View File

@@ -3409,7 +3409,7 @@ class TELEGRAM(Notifier):
poster_filename = 'poster_{}.png'.format(pretty_metadata.parameters['rating_key'])
files = {'photo': (poster_filename, poster_content, 'image/png')}
if len(text) > 200:
if len(text) > 1024:
data['disable_notification'] = True
else:
data['caption'] = text