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
commit 5c54283df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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