https://github.com/tertychnyy/awsclientbot
AWS Client Bot library
https://github.com/tertychnyy/awsclientbot
aws bot
Last synced: 6 months ago
JSON representation
AWS Client Bot library
- Host: GitHub
- URL: https://github.com/tertychnyy/awsclientbot
- Owner: tertychnyy
- License: gpl-3.0
- Created: 2018-02-26T08:05:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-01T20:46:21.000Z (over 8 years ago)
- Last Synced: 2026-01-02T13:14:04.094Z (6 months ago)
- Topics: aws, bot
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
AWS Client Bot for Python
[](http://awsclientbot.readthedocs.io/en/latest/?badge=latest)
Use this library to push messages from AWS EC2 instance to Telegram via [@aws_client_bot](https://t.me/aws_client_bot).
Step 1. Get AWS Client Bot token
* Go to [@aws_client_bot](https://t.me/aws_client_bot),
* Set AWS credentials (this allows start/stop instances from [@aws_client_bot](https://t.me/aws_client_bot)),
* Send "Get token",
* Use token on step 2
Step 2. Set logger
Typical usage looks like this::
#!/usr/bin/env python
from awsclientbot import AWSClientBot
acb = AWSClientBot(token)
acb.push("Started")
my_long_running_function() <-- Replace this with your own function
acb.push("Done")