|Syfaro 427135db67 Add README.||1 anno fa|
|.gitignore||1 anno fa|
|README.md||1 anno fa|
|bot.go||1 anno fa|
Uses a perceptual image hash to determine if a message has already been sent within a group chat.
Data is stored in Bolt. It records the image hash and the original Message.
The following environment variables must be set:
TELEGRAM_APITOKEN- Telegram token from Botfather
TELEGRAM_DEBUG- If tgbotapi should print debugging messages (true/false)
BOLT_DBNAME- Filename for Bolt database file
/threshold num where
num is the threshold value on a range
of 0 being idential to any higher number (15 is a good starting point), it will
start indexing photos sent. If a photo matches a previous photo within the
threshold, it will reply to the old message with the similarity.