Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 525 Bytes

README.md

File metadata and controls

17 lines (17 loc) · 525 Bytes

Telegram Notifier

This package provides simple notifications from your app to your Telegram chat

Preparation:

  • Create bot with BotFather and copy the token
  • Send any message to the bot (needed to automatically get chat_id)
  • install module:
pip install telegram-notifier

Usage:

from telegram_notifier import TelegramNotifier
import os
token = os.environ.get("TELEGRAM_TOKEN")
notifier = TelegramNotifier(token, parse_mode="HTML")
notifier.send("<b>Test bold text</b> and normal text")