Some dumb thing I made
Go to file
dependabot[bot] dc68773ea0
Bump cryptography from 2.1.4 to 3.2
Bumps [cryptography](https://github.com/pyca/cryptography) from 2.1.4 to 3.2.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/2.1.4...3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-27 21:04:41 +00:00
.gitignore iniital commit 2018-03-10 22:05:48 -06:00
LICENSE Add LICENSE 2018-03-10 22:12:57 -06:00
README.md update README 2018-03-10 22:30:47 -06:00
example_msg iniital commit 2018-03-10 22:05:48 -06:00
index.php add push.js framework 2018-12-19 01:35:11 -06:00
kill.sh Add a way to kill the process 2018-03-10 22:54:02 -06:00
pushtest.py Add a way to kill the process 2018-03-10 22:54:02 -06:00
requirements.txt Bump cryptography from 2.1.4 to 3.2 2020-10-27 21:04:41 +00:00

README.md

telegram-pusher

This is some dumb thing that will take messages from telegram and relay through https://pusher.com to a web application.

I've provided a simple PHP script that does a channel thing to show a "notification". On my Nexus 6P, if the phone is unlocked, and the page is still loaded while Chrome is in memory, the alert will bring the user to my notification page

Getting Started

  • Clone this repo and enter it
  • $ virtualenv venv
  • $ source venv/bin/activate
  • $ pip install -r requirements.txt
  • Register with the Telegram Botfather (https://telegram.me/botfather)
  • Register with Pusher (https://pusher.com)
  • create set_env.sh with the following environment variables and fill them with the corrosponding values
    • telegram_token
    • pusher_appid
    • pusher_key
    • pusher_secret
  • $ python pushtest.py
  • On your web server, place the index.php file and allow it to get arguments
  • edit the index.php to have your pusher appid
  • send your bot /start to see if it responds

Demo

IDK what will happen if you try to send a message to the bot without doing a /start first