Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 452 Bytes

File metadata and controls

19 lines (13 loc) · 452 Bytes

Python Notifications

Send telegram messages through python. Telegram bot is needed.

Usage

from pyNotifications import PythonNotifications

notifyer = PythonNotifications(token=TOKEN, id=CHAT_ID, appName='test')

notifyer.addMessage('Info test', 'info')
notifyer.addMessage('Warning test', 'warning')
notifyer.addMessage('Error test', 'error')

notifyer.sendMessage('error')
notifyer.sendMessage('warning')
notifyer.sendMessage('info')