Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.18 KB

File metadata and controls

29 lines (18 loc) · 1.18 KB

Deploying Telegram bot

Setup

See README of semantic-search-cli for instructions on installation, configuration and indexing.

Note that for best results, all files must be of .JP(E)G, .PNG or .WEBP format. The program would ignore files with other extensions, and error on images with incorrect extensions. You can use fix-ext.py to fix extensions automatically:

python scripts/fix-ext.py /path/to/images/

A set of indexed sample images is provided here for you to try out. Configure .sense/config.toml and rename .sense/empty-file_id.db3 to .sense/index.db3 before running the bot.

Creating a bot

  1. Go to @BotFather and create a bot.
  2. Enable Inline mode by sending /setinline command to BotFather and following the instructions.
  3. Customize name, desc etc. as u wish.

Running

sense tg

Modification

Each time you changed files, you should run sense index to re-index and restart your bot for the changes to take effect.