Categorygithub.com/paulheg/alaaarm
repository
0.0.0-20240901182959-433870c02d8d
Repository: https://github.com/paulheg/alaaarm.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

👨‍🚒 ALAAARM

Alaaarm is essentially a Telegram bot with a minimal web API, trough which you can trigger notifications.

With it you can send notifications to a smartphone without much setup, from different sources with little integration effort. Users are enabled to create custom alerts trough the Telegram bot. Each alert is triggered trough the public web interface using a token as an unique identifier.

Give it a try on: https://t.me/AlaarmAlaaarmBot

Example

With this command & URL you send the message "Hello World" to all subscribed users of the {token} alert.

curl -X GET "http://localhost/api/v1/alert/{token}/trigger?m=Hello+World"

With this command & URL you send the image test.jpg with the caption "I sent you my code please respond".

curl -X POST "http://localhost/api/v1/alert/{token}/trigger?m=I+sent+you+my+code+please+respond" -F "[email protected]"

replace localhost with the actual domain alaaarm is hosted on

Q&A

Can multiple users receive notifications from the same alert?

There are two options to let multiple users receive the same alert:

  1. Add the bot to an existing Telegram Group by generating a group invite with the /invite command. You have to be an admin of the group to do this.
  2. Create a private invite link with /invite and share it with other users.

HELP!! I am getting spammed, the trigger URL / token got leaked.

Don't worry, you can change the token of an alert with the command /change_alert_token, which leads to the old URL getting invalid and therefore you wont receive any messages from it.

What does the number next to 🗿 mean?

This is the number of subscribed channels / users to your alert.

Commands

CommandDescription
/startstart talking to the bot
/createcreate new alert
/deletedelete an alert you created
/infoget info about your created and subscribed alerts
/alert_infoget detailed info about an alert
/change_alert_tokenchange the alert token
/invitecreate an invitation link for your alert
/delete_invitedelete a previously created invite
/muteDon't get notified from your own alert
/unsubscribeunsubscribe from an alert you were invited to
/exitexit current action and reset the dialog