We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6b237f8 commit84d7141Copy full SHA for 84d7141
bot/github.py
@@ -64,12 +64,12 @@ def _send(self, repo, text, check_repo: Callable[[Repo], bool], suffix=REPLY_MES
64
ifcheck_repo(repo):
65
truncation_limit=chat_data.get('truncation_limit',DEFAULT_TRUNCATION_LIMIT)
66
try:
67
-text=truncated_text[truncation_limit]
+message_text=truncated_text[truncation_limit]
68
exceptKeyError:
69
-text=truncate(text,TRUNCATED_MESSAGE,suffix,max_length=truncation_limit)
+message_text=truncate(text,TRUNCATED_MESSAGE,suffix,max_length=truncation_limit)
70
71
72
-self.dispatcher.bot.send_message(chat_id=chat_id,text=text,
+self.dispatcher.bot.send_message(chat_id=chat_id,text=message_text,
73
parse_mode=ParseMode.HTML,disable_web_page_preview=True)
74
exceptTelegramError:
75
logging.error('error while sending github update',exc_info=1)