Update character limit for telegram to reflect API changes.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user