Send a notification via the telegram notifier Args: new_analysis (dict): The new_analysis to send.
(self, new_analysis)
| 171 | |
| 172 | |
| 173 | def notify_telegram(self, new_analysis): |
| 174 | """Send a notification via the telegram notifier |
| 175 | |
| 176 | Args: |
| 177 | new_analysis (dict): The new_analysis to send. |
| 178 | """ |
| 179 | |
| 180 | if self.telegram_configured: |
| 181 | message = self._indicator_message_templater( |
| 182 | new_analysis, |
| 183 | self.notifier_config['telegram']['optional']['template'] |
| 184 | ) |
| 185 | if message.strip(): |
| 186 | self.telegram_client.notify(message) |
| 187 | |
| 188 | |
| 189 | def notify_webhook(self, new_analysis): |
no test coverage detected