command
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Apr 25, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Telegram 防撤回(归档)机器人
简体中文 | English
一个防止消息被撤回
/ 失效
的 Telegram 机器人,可归档与便捷查询各种消息类型,支持恢复被删除的消息(通过上传),并配有简单的鉴权
Notice
官方机器人 API(本项目默认使用) 仅支持上传最大 50MB
,下载最大20MB
的文件。若您有归档更大文件的需求,请使用自建 telegram-bot-api 服务器
介绍
支持归档的消息类型
功能展示
工作原理
机器人在检测到支持类型的转发消息后,会自动将文件下载到本地目录或保存到数据库(文本类型)。如果在查看归档记录时检测到文件ID失效,机器人会重新上传文件以实现防撤回的效果。
部署
- 下载 Release
- 通过 BotFather 创建你自己的机器人密匙(token)
- 将
token
填入配置项 telegram-bot.token
- 启动程序
配置文件
config.yml
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
cmd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.