PyNotibot
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?
-
Open chat with @Notibot in Telegram client.
-
Use
/start
command to begin a conversation. -
Use
/newproject <project_name>
command to create a new project (e.g.,/newproject test_project
) -
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)
-
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