Currently there is only a pushbot available. Continue reading to see what it is and how to use.
Inspired by Server Chan, the
/push command acts as a tool for programmers / server operators to easily push instant messages to themselves by performing an HTTP POST request.
For example, a server operator can write a simple script to monitor the server, and push an alert message to himself about abnormal service status. Thanks to Telegram, this push is nearly instant; But due to implement detail (a POST request is first queued by the bot before being pushed to Telegram, this is for performance consideration), the message is slightly delayed. Currently the delay is about 1~3 seconds.
Just search for
eth0_bot in Telegram, or simply click here, and start chatting with the bot. Just send
/push to her.
How does it work
- You register with eth0_bot and she returns a unique ID (push code) representing the chat between you and her;
- You send an HTTP request containing the unique ID and the content you want to push;
- The bot recognize the chat with given ID, and send the given content back to that chat;
You might want to revoke the registered code and register a new one when:
- You lost you code;
- You think someone else might have it;
- You’re receiving messages that aren’t sent under your control (which means someone else has your code);
- You just want to, for no reason;
code: required, your push code, as told by the bot via Telegram after sending
/push registerto her;
text: required, the text to push;
parse_mode: optional, specify the content format of
text, could be one of the following:
markdown: this is the default value;
html: instruct the bot to send
textas HTML content;
plain: instruct the bot to send
textas plain text content;
Notice: if your content might be invalid markdown or HTML content, you should explicitly use
plain, or Telegram server will refuse to accpet it, thus your message will be lost.
If you don’t want to set
parse_mode, drop the
Why not just use Server Chan?
If you’re in China or you speak Chinese, and Server Chan works well on your phone, I suggest you keep using it. While Server Chan is indeed very good, there are some problems. Server Chan push messages to you via its client app, or via a WeChat account. First of all I don’t want another new app, especially for such a simple work (besides, there was issue with long-live connection when I first used it); Secondly WeChat for Android is very slow, and cause both performance and battery issues on my phone. Telegram is a lightweight alternative to both: it’s fast, focuses on only one thing – messaging, and it’s secure.
See changelog page for detailed log.
Terms of service
See Terms of service page for the up-to-date version of our terms.