Git Product home page Git Product logo

qq-neural-anime-tg's Introduction

UPD 2024-01-31 - The AI is dead ☠️

What is this

A Telegram bot for making anime-styled pictures and videos from your source.

It's a simple bridge between Telegram and https://h5.tu.qq.com/web/ai-2d/cartoon/index

Demo: https://t.me/qq_neural_anime_bot

Example

Running your own bot

You need to have Node.js and NPM installed.

Create your bot with https://t.me/BotFather and obtain its token.

Clone this repo and:

  • run npm install
  • copy config.example.ts to config.ts
  • put your bot's token from BotFather into config.ts
  • run npm start

Mode

The bot works in different modes, you can switch it in your config.ts to the one that suits you better.

It might produce single images, compared images and videos.

All modes are unstable and their behavior may change at any time.

Mode Single Compared Video Availability
DIFFERENT_DIMENSION_ME Cropped + - Most countries
AI_PAINTING_ANIME Slow + Slow China only

⚠️ Currently the Chinese server might throw 403 errors with DIFFERENT_DIMENSION_ME mode!

Proxies

In some countries the AI doesn't work at all so if it is your case you have to use some proxy.

Seems like Chinese proxies are the best. But not from Taiwan or Hong Kong, try Beijing for example.

It's almost impossible to find free alive proxies. Don't waste your time searching and just buy it somewhere.

Notes

  • Probably the whole thing is going to break soon anyway.
  • Fork it and make your own version, because I don't think that I'm going to support it in the future.
  • Contact me at Telegram: https://t.me/royvolkov

Upgrading

Don't forget to always run npm install

When upgrading to a major release, you must modify your config.ts to match the new config.example.ts

qq-neural-anime-tg's People

Contributors

lmcsu avatar nevzra avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

qq-neural-anime-tg's Issues

Ts To Js

Please release this code in js.

{"code":2119,"msg":"service upgrading"}

I use chinese proxy in config.ts, tried non-chinese too. And always getting
Blocked {"code":2119,"msg":"service upgrading"}
QQ file upload error caught: Error: The Chinese website has blocked the bot, too bad 🤷‍♂️

Does the bot using proxy by default if I set in config.ts proxyUrl: ... ? I don't know what's the problem.
Please, help.

QQ file download error caught

Some nasty error has occurred, please try again Error: Unable to upload the photo: Error: Try another photo

Invalid request {"code":-2100,"msg":"the busi_id: <ai_painting_spring_entry> is not servered in this set group"}
QQ file upload error caught: Error: Try another photo.
Error has occurred for 5612165840
Error: Unable to upload the photo: Error: Try another photo.
at request (/home/runner/qq-neural-anime-tg/index.ts:234:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async qqRequest (/home/runner/qq-neural-anime-tg/index.ts:253:26)
at async onPhotoReceived (/home/runner/qq-neural-anime-tg/index.ts:532:23)
Users: 0 | Requests: 0

error

Some nasty error has occurred, please try again

Error: Unable to upload the photo: Error: The Chinese website has blocked the bot, too bad 🤷‍♂️

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.