telegram: Add 'reply_length' option to limit the length of the text refered in replies
patch aedc28b24f83d3fb3266bb7effe4cb7dcb3f7414
Author: E. Bosch <presidev@AT@gmail.com>
Date: Wed Mar 29 21:07:06 CEST 2023
* telegram: Add 'reply_length' option to limit the length of the text refered in replies
hunk ./irgramd 83
+ tornado.options.define('reply_length', default=50, metavar='LENGTH', help='Max length of the text refered in replies, if longer is truncated')
hunk ./telegram.py 47
+ self.reply_len = settings['reply_length']
hunk ./telegram.py 383
- elif len(message) > 30:
- message = message[:30]
+ elif len(message) > self.reply_len:
+ message = message[:self.reply_len]