PushingBot is a tool that can push notifications to any device where Telegram messenger is installed. With this bot, you can avoid creating a new bot every time you just need to push a notification to someone's device.
Getting started
If you do not have Telegram application, follow
this link
to download it.
When you are ready, start a dialogue with
@PushingBot in Telegram
and follow the instructions to choose a language.
Use the /help command to see the list of all available commands. You can check that everything works fine with your chat by clicking on the link at the end of the message. You should receive a new message.
How to use?
To start sending notifications, all you need is the chat key and the message itself. So, what is the chat key? When you start a private chat with @PushingBot or add it to a group, a unique key is automatically assigned for that chat. To view it, use the command /key.
You can use a simple API to send notifications. Just send a GET or POST request to the following URL: https://pushingbot.com/api/push/, with the following parameters:
Parameter | Type | Description |
---|---|---|
chat | string | The key of the chat where you want to send a notification |
message | string | Text of the notification you want to send |
For testing purposes, you can simply open the following URL in your browser.
Of course, you should use real values instead of the values in bold.
https://pushingbot.com/api/push/?chat={chat_key}&message={message}
Hint! One of the best things about using Telegram is that you can create a group of people to receive the same notifications. Simply create a regular group, add PushingBot to the group, get the chat key via /key, and you're all set!
Code snippets
Python
import requests url = 'https://pushingbot.com/api/push/' data = { 'chat': '{chat_key}', 'message': 'hello world', } requests.post(url, json=data)
Curl
curl --location 'https://pushingbot.com/api/push/' \ --header 'Content-Type: application/json' \ --data '{ "chat": "{chat_key}", "message": "hello world" }'