py_notibot

The library to manage Notibot (Telegram bot).


Keywords
bot
License
MIT
Install
pip install py_notibot==0.1

Documentation

PyNotibot

Build Status Latest Stable Version License

It is a Python (2 and 3) library to manage @Notibot.

Notibot is Telegram bot that helps you to manage your projects (e.g., you can use it to notify yourself about the end of the model training on the server).

Installation

pip install py_notibot

How to use?

  1. Open chat with @Notibot in Telegram client.

  2. Use /start command to begin a conversation.

  3. Use /newproject <project_name> command to create a new project (e.g., /newproject test_project)

  4. In the project use given token to initialize PyNotibot:

    from notibot import Notibot
    
    bot_token = "TOKEN"             # token was generated by @Notibot on the previous step
    notibot = Notibot(bot_token)
  5. To notify yourself (e.g., about end of model training) use the following code:

    notibot.send("Training has finished")

Available methods

  • send(<text>) - sends text to all subscribed users

  • send_image(<image_path>, <caption>*) - sends image (with caption) to all users who

Dependencies

pip install -r requirements.txt

# for test
pip install -r test-requirements.txt