Code Monkey home page Code Monkey logo

yetanotherpicsearch4telegram's Introduction

YetAnotherPicSearch4Telegram

license python

基于 TelethonPicImageSearch 的另一个 Telegram 搜图机器人

项目简介

鉴于目前 QQ 日益加强的风控,使用 QQ 协议的机器人终究像是被人拿着起爆遥控器的遥控炸弹,谁知道什么时候就炸了呢?

于是我就想,干脆把最容易被干烂的搜图功能迁移到 Telegram 上吧。

YetAnotherPicSearch 的基础上适配 Telethon ,便是本项目的由来,用来搜图、搜番、搜本子。

目前支持的搜图服务:

支持私聊/群组/频道。

文档目录

  • 使用教程
  • 部署教程

效果预览

  • 预览图

感谢名单

Star History

Star History

yetanotherpicsearch4telegram's People

Contributors

nekoaria avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

n-sudy

yetanotherpicsearch4telegram's Issues

Action Required: Fix Renovate Configuration

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版本

一些bug

          首先,在 `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)

Docker image

Please make it possible to run this script from under Docker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.