Skip to main content

Telegram notifier utility

Project description

Telefier - Telegram notifier utility

Deploy to PyPI

Simple Telegram notification utility to inject on your python app or script.

Get started

Pre-requisites

You have to setup a Telegram bot (more info here):

  1. Connect to @BotFather and create Telegram Bot
  2. Get api id and hash from Telegram apps
  3. Get bot token from @BotFather

Usage

First install the package through pip: pip3 install telefier

#!/usr/bin/env python3

from telefier import Telefier

# create telefier 
telefier = Telefier(<api_id>, <api_hash>, <token>)
telefier.connect()

# send message
telefier.notify(<username>, <message here>)

username is the telegram username of the one who is gonna recieve the message

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telefier-0.0.3.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

telefier-0.0.3-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page