lmcsu / qq-neural-anime-tg

A Telegram bot that converts your photos to 2D anime art via the new AI made by QQ
147 stars 48 forks source link

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:

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

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