Show HN: I created a telegram bot to notify my website activity
Recently I created a very simple telegram bot to get notification about my embed-blog.com activity. Activities like who signed up to the trial period and who is currently paying and who is created something, etc...
These are important metrics I've to know immediatly and Google analytics is not the place to learn it.
Setting up this is very easy and it's a two step process.
1. Create a telegram group and add [@Lognowbot](https://t.me/Lognowbot) into it. 2. You receive a chat_id from [@Lognowbot](https://t.me/Lognowbot) 3. Send a post message to https://lognowbot-production.up.railway.app/forward with chat_id and text you wanted to send. 4. Receive notification
i.e) code
def notify_telegram(text): payload = { "chat_id": settings.TELEGRAM_CHAT_ID, "text": text, } endpoint = "https://lognowbot-production.up.railway.app/forward" requests.post(endpoint, json=payload) return True
0 comments
[ 3.9 ms ] story [ 7.1 ms ] threadNo comments yet.