鉴于目前 QQ 日益加强的风控,使用 QQ 协议的机器人终究像是被人拿着起爆遥控器的遥控炸弹,谁知道什么时候就炸了呢?
于是我就想,干脆把最容易被干烂的搜图功能迁移到 Telegram 上吧。
在 YetAnotherPicSearch 的基础上适配 Telethon ,便是本项目的由来,用来搜图、搜番、搜本子。
目前支持的搜图服务:
支持私聊/群组/频道。
- 使用教程
- 部署教程
- 预览图
Yet another picture search bot for Telegram
License: GNU General Public License v3.0
鉴于目前 QQ 日益加强的风控,使用 QQ 协议的机器人终究像是被人拿着起爆遥控器的遥控炸弹,谁知道什么时候就炸了呢?
于是我就想,干脆把最容易被干烂的搜图功能迁移到 Telegram 上吧。
在 YetAnotherPicSearch 的基础上适配 Telethon ,便是本项目的由来,用来搜图、搜番、搜本子。
目前支持的搜图服务:
支持私聊/群组/频道。
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: .github/renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: packageRules[0]: packageRules cannot combine both matchUpdateTypes and ignoreDeps. Rule: {"matchPackagePatterns":["*"],"matchUpdateTypes":["minor","patch"],"groupName":"all non-major dependencies","groupSlug":"all-minor-patch","labels":["dependencies"],"automerge":true,"ignoreDeps":["Telethon"]}
如题,将项目下载解压后执行python -m userbot无响应,对着代码弄了下配置文件之后又报错:
Traceback (most recent call last):
File "D:\下载\YetAnotherPicSearch4Telegram-main_main_.py", line 10, in
bot.start(bot_token=config.token)
File "C:\Users\gv922\AppData\Local\Programs\Python\Python312\Lib\site-packages\telethon\client\auth.py", line 128, in start
else self.loop.run_until_complete(coro)
File "C:\Users\gv922\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 684, in run_until_complete
return future.result()
File "C:\Users\gv922\AppData\Local\Programs\Python\Python312\Lib\site-packages\telethon\client\auth.py", line 177, in _start
await self.sign_in(bot_token=bot_token)
File "C:\Users\gv922\AppData\Local\Programs\Python\Python312\Lib\site-packages\telethon\client\auth.py", line 357, in sign_in
result = await self(request)
File "C:\Users\gv922\AppData\Local\Programs\Python\Python312\Lib\site-packages\telethon\client\users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "C:\Users\gv922\AppData\Local\Programs\Python\Python312\Lib\site-packages\telethon\client\users.py", line 87, in _call
result = await future
telethon.errors.rpcerrorlist.AccessTokenInvalidError: The provided token is not valid (caused by ImportBotAuthorizationRequest)
顺便求一下docker版本
首先,在 `start.sh` 文件所在的同级目录下,创建一个名为 `.env` 的文件。然后,根据 [config.py](https://github.com/NekoAria/YetAnotherPicSearch4Telegram/blob/main/userbot/config.py) 文件中的说明配置必要的选项。其中,必须配置的项目包括:
TOKEN=
OWNER_ID=
ALLOWED_CHATS=[]
其中,TOKEN
是你从 @BotFather 获取的 bot token。
OWNER_ID
是你的 Telegram ID(一个整数值),可以通过 @userinfobot 或使用第三方 Telegram 客户端来获取。
ALLOWED_CHATS
应为一个数组,包括所有被允许使用该 bot 的群组或频道的 ID(均应为整数格式)。这些 ID 的获取方法多种多样,包括使用各类 bot 或第三方 Telegram 客户端等,具体操作请自行查找相关资料。
关于 docker 版本将在后续补充,目前暂时搁置。
Originally posted by @NekoAria in #48 (comment)
Please make it possible to run this script from under Docker.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.