Hayashikawa

Hayashikawa

My Telegram Bot Usage

Telegram has changed 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, connect to the "Personal Telegram Bot" at the bottom of the "Edit Profile" page following the steps.

image-20230815101916512

The main purpose is to use the Telegram Bot to search for and download books. I usually only use it to download 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 "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.

image-20230815102426923

Telegram SMS#

Using Telegram SMS, you can forward SMS from an Android device to Telegram. It is a lifesaver for me, as I am still using a single SIM card iPhone, with the main SIM card for number retention and receiving verification codes, and the secondary SIM card for data usage.

Simply follow the steps in the documentation to fill in the "Bot Token" and "Chat ID".

image-20230815103258712

Not only can it forward SMS, but Telegram SMS can also send SMS from a device with Telegram SMS installed.

image-20230815103911545

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.

VHL46R40

Memos#

Memos is a lightweight note-taking service. After deployment, go to "Settings - Basics - Preferences - Telegram UserID" and "Settings - Management - System - Telegram Bot Token" to set the Telegram User ID and Telegram Bot Token, and then you can use the Telegram Bot to record notes.

image-20230815104618176

image-20230815104657275

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".

image-20230815104925274

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 "New integrations".

image-20230815105518622

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 to be entered to the Telegram Bot. As shown in the image of the database, the format requirements are as follows:

image-20230815110121136

/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, delete the corresponding line in the sent content.

For content of type date, due to the 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 again.

image-20230815111042864

Various Notifications#

For example, the "Arknights" auto-farming tool MaaAssistantArknights, set it to run at scheduled times, and send start notifications when it starts running, as well as send logs of the running process when it finishes.

image-20230815111434714

There are also qBittorrent download notifications, which were mentioned in a previous article, so I won't go into detail again.

image-20230815111720884

Finally#

Telegram Bot is awesome!

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.