Completed
Push — master ( 72b331...d4b7d2 )
by Steffen
02:14
created

tests.watcher.notifications.test_telegram   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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