2chhk-to-telegram-images-bot 中文文档教程
该模块从选定的版块获取图像,并通过关键字在版块线程中查找,并将图像发送到您选择的电报收件人。 找到线程后,您的机器人会将其发送给您以供批准。
用法:
const DvachToTlg = require('2chhk-to-telegram-images-bot'); const dvachToTlg = new DvachToTlg({ botId: 'botid', // 来自 BotFather 的机器人令牌 boardDomain: 'http://2ch.hk', // 董事会域名 db: 'mongodb://127.0.0.1:27017/telegram', // mongo 数据库 boards: { // 对象,key 是 board,value 是 boards settings 乙:{ keywords: ['засмеялся', 'тредшот'], // 发送到批准的关键字 } }, opId: 129424520, 语言:'en', });
telegramZOBot.getAllThreads().then(_.bind(telegramZOBot.actionsWithFindedThreads, telegramZOBot));
This module getting images from selected boards and find in boards threads by keywords and send images to your selected telegram recepient. When thread finded, your bot sends it to you for approve.
usage:
const DvachToTlg = require('2chhk-to-telegram-images-bot'); const dvachToTlg = new DvachToTlg({ botId: 'botid', // Bot token from BotFather boardDomain: 'http://2ch.hk', // board domain db: 'mongodb://127.0.0.1:27017/telegram', // mongo db database boards: { // object, where key is board and value is boards settings b: { keywords: ['засмеялся', 'тредшот'], // keywords for send to approve } }, opId: 129424520, language: 'en', });
telegramZOBot.getAllThreads().then(_.bind(telegramZOBot.actionsWithFindedThreads, telegramZOBot));