Telegram has turned from a casual chat platform to a ruthless API interface for me.
Z-Library#
The usage is very simple. After having a Z-Library account, you can connect it to your personal Telegram bot by going to Edit Profile
at the bottom of the page and following the steps.
The main purpose is to use the Telegram bot to search for and download books. I usually only use it for downloading books, as searching for books is more intuitive on the website. After searching for a book on the website and entering the book page, click on Send to - Telegram
to send the book file to the connected Telegram bot. However, please note that the file size downloaded using the Telegram bot is limited to 30 MB. If it exceeds the limit, you can only download it from the website.
Telegram SMS#
Using Telegram SMS, you can forward SMS messages from your Android device to Telegram. It's a lifesaver for me, as I still use a single-SIM iPhone with the main SIM card for number retention and the secondary SIM card for data usage.
To use it, simply follow the steps in the documentation to fill in the Bot Token
and Chat ID
.
Not only can it forward SMS messages, but Telegram SMS can also send SMS messages from a device with Telegram SMS installed.
In addition, Telegram SMS can also listen to notifications from other apps. For example, it can be used to listen to irrelevant notifications from WeChat mini accounts, so that you can receive them in a timely manner on your main device.
Memos#
Memos is a lightweight note-taking service. After deploying it, go to Settings - Basics - Preferences - Telegram UserID
and Settings - Management - System - Telegram Bot Token
to set the Telegram User ID and Telegram Bot Token. Then, you can use the Telegram bot to record notes.
After recording notes with the Telegram bot, you can choose from three visibility options: Visible to Everyone
, Visible to Logged-in Users
, and Visible to Myself Only
.
Notion#
The input experience of Notion on mobile devices is extremely poor. By using Notion Telegram Bot, you can avoid the inconvenience of using Notion on mobile devices as much as possible.
Simply follow the steps in the README to deploy it. The Notion API Key can be obtained from My integrations by clicking on New integrations
.
The Notion Database ID is the middle part of the URL of the database you want to edit. For example:
https://www.notion.so/notion/90cdd900666849dc82362b87fb0d3b66?v=0dde36c4789048b18a06db278f3d948f
The Notion Database ID is 90cdd900666849dc82362b87fb0d3b66
.
After running it, you can send the content you want to input to the Telegram bot. As shown in the image of the database, the required format is as follows:
/update
database_id: The Database ID where the content needs to be filled. If the content is empty, the Database ID in the configuration file will be used.
书名: 西周的灭亡——中国早期国家的地理和政治危机
原作名: Landscape and Power in Early China: The Crisis and Fall of the Western Zhou 1045-771 BC
作者: 李峰
出版社: 上海古籍出版社
ISBN/ISSN: 9787532582570
价格: 42
购买日期: 20230810
阅读日期: 20230815
封面: https://img1.doubanio.com/view/subject/l/public/s29623690.jpg
Please note that if a certain attribute needs to be left blank, you should delete the corresponding line in the sent content.
For content of type date
, due to limitations of the Notion API, the include time
option will be enabled by default, and the time zone will be set to UTC
. Currently, there is no solution for disabling these two options if they are not needed.
Others#
RSS#
As mentioned in a previous article, I won't go into detail here.
Various Notifications#
For example, the "Arknights" farming tool MaaAssistantArknights, when set to run at a scheduled time, will send a start notification at the beginning of the run and a log of the running process when it finishes.
There is also qBittorrent download notification, which was mentioned in a previous article, so I won't go into detail here.
Finally#
Telegram bots are awesome!