tests.watcher.notifications.test_telegram   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 9
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
#!/usr/bin/python
2
# -*- coding: utf-8 -*-
3
from kuon.watcher import Settings
4
from kuon.watcher.notifications import Telegram
5
6
if __name__ == "__main__":
7
    telegram = Telegram()
8
    text, chat = telegram.get_last_chat_id_and_text()
9
    res = telegram.send_message('<a href="https://imgur.com/a/Cdvt5">2B Nier Automata imgur album</a>',
10
                                Settings.Notification.Telegram.chat_id,
11
                                parse_mode="HTML", disable_web_page_preview=True)
12