Chipron
was developed as a bot for parsing movies and anime from different sites, currently 2 sites are available: HDRezka and YummyAnime. All parsed videos were published on the Telegram channel Chipron.
After downloading, the bot generates a jpg picture (poster), as well as a mini description. The picture is hardcoded and you need to change the code, for drawing it is used node-canvas.
In order to be able to use the bot, the library must be installed on the system FFMpeg (also FFProbe
). This bot is using NVIDIA accelerator
for transcoding videos and you need to check if your ffmpeg have that dependency:
ffmpeg -codecs | egrep nvenc
and find these lines
DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_qsv h264_cuvid ) (encoders: libx264 libx264rgb h264_amf h264_nvenc h264_qsv nvenc nvenc_h264 )
DEV.L. hevc H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_cuvid ) (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )
if you do not have then please read this installation manual
- Clone this repository:
git clone git@github.com:lekting/chipron.git
- Install all dependencies:
npm install
- Setup config with your credentials. You need to rename
config.ts.example
toconfig.ts
and change information:
export default {
telegram: {
appId: -1,
apiHash: 'TELEGRAM_CLIENT_HASH',
firstName: 'TELEGRAM_CLIENT_NAME',
lastName: 'TELEGRAM_CLIENT_LASTNAME',
phone: 'TELEGRAM_CLIENT_PHONE',
code: 'TELEGRAM_CLIENT_CODE',
password: 'TELEGRAM_CLIENT_PASSWORD',
},
telegramTrashGroup: -1,
telegramAdmins: [],
telegramBotToken: 'TELEGRAM_BOT_TOKEN',
};
- Run bot
npm start