Skip to main content

Telegram Bot Notifier

Project description

Telegram-Notify

GitHub issues Discord PyPI PyPI - Downloads

GitHub Workflow Status GitHub Workflow Status

Table of Contents

About the package

Telegram Bot to push notifications during an event trigger.

Built With

Install the package

Run the following terminal commands to install the package on the given distros.

  • Termux :
pkg install python3 
pip3 install notifly
  • Ubuntu/Debian
sudo apt install python3-pip
pip3 install notifly
  • Arch
sudo pacman -S python3-pip
pip3 install notifly

This may take a while depending on the network speed.

Prerequisites

  • Python3
    It is preinstalled in Ubuntu 20.04. To check the version use command :
python3 --version

If it is not preinstalled for some reason, proceed here and download as per requirement.

Run the following command in terminal to download the required packags for running the tool locally :

  • Using requirements file :
pip3 install -r requirements.txt
  • Directly download :
pip3 install requests==2.20.0

Working of the tool

To see how the tool works, create a telegram bot.

  1. Run sample code
from telegram import notifly

token = input("Enter bot token : ")
bot=notifly.BotHandler(token)
text = input("Enter text message : ")
print(bot.send_message(text))
opt_image = input("Do you want to send image ?")
if(opt_image=='y' or opt_image=='Y'):
    img_path = input("Enter full image path : ")
    bot.send_image(img_path)

Contributing

  1. Fork the Project
  2. Create your Feature Branch
git checkout -b feature/mybranch
  1. Commit your Changes
git commit -m 'Add something'
  1. Push to the Branch
git push origin feature/mybranch
  1. Open a Pull Request

Follow the given commands or use the amazing GitHub GUI
Happy Contributing :smiley:

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

notifly-1.1.3.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

notifly-1.1.3-py3-none-any.whl (5.1 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