Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 681 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 681 Bytes

Description

This script will join a Telegram chat and answer based on it's database (regex lookup) It's quick & dirty but works.

Requirement

  • NodeJS
  • TeleBot (npm install TeleBot)

How to use

node ibot.js to run it you need a token, tell /newbot to BotFather on telegram and disable privacy (send /setprivacy to BotFather)

Release note

  • 20180811: Ignore old message on startup, can make webpage screenshot
  • 20180711: Initial version

Bugs

Todo

  • use webhook instead of pulling new messages
  • allow db edition
  • fetch db in memory

Limitation

To check