Skip to content

Show HN: I created a telegram bot to notify my website activity

1 pointrajasimondiscuss
On HN

Hi there,

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

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.