Telegram Ping. CLI tool for sending quick messages to a Telegram chat via the Bot API.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sean Johnson e9e7fd2ee8 0.1: initial commit 6 years ago
tgping 0.1: initial commit 6 years ago
.gitignore 0.1: initial commit 6 years ago
.pre-commit-config.yaml 0.1: initial commit 6 years ago
LICENSE.txt 0.1: initial commit 6 years ago
README.md 0.1: initial commit 6 years ago
requirements.txt 0.1: initial commit 6 years ago
setup.cfg 0.1: initial commit 6 years ago
setup.py 0.1: initial commit 6 years ago

README.md

tgping

A relatively stupid-easy way to send pings to Telegram.

Usage

Install first:

  • pip install -e https://phabricator.ramcloud.io/diffusion/TGP/tgping.git

Ask questions later:

  • tgping config:init
  • tgping config:set telegram.bot_token <insert bot token here>
  • tgping config:set telegram.default_target <chat id>
  • tgping message:text --message="Something something fabulous"

Or, alternatively:

  • tgping message:text --target="chat_id_here" --message="Something something fabulous"

The telegram.default_target config value is not required, but it is very handy. This was just a super quick project to send a message to a chat after some long-running commands finished because I couldn't find any other quick projects to do the same thing.

For example:

sleep 600 && \
 tgping message:text --message="First long-running command is done" && \
 sleep 6000 && \
 tgping message:text --message="Another really long-running command done"

Requirements

  • Python 2.7
  • malibu >= 0.1.5-4
  • python-telegram-bot

Contributing

Contributions are cool. Pull requests, issues, ideas, etc are all welcome. For real-time complaints about things, visit irc://irc.maio.me:+6697/#dev

Licensing

This project is licensed under the MIT License. You can view the full terms of the license in /LICENSE.txt.