Giter VIP home page Giter VIP logo

image-search-bot's Introduction

image-search-bot Build Status

Configurable apps for running Telegram Bots that responds to photo Image Queries

Bots using this framework

  • @piselli_bot - A joke bot that sends images of beans
  • @Robertpattinbot - A joke bot that sends images of Robert Pattinson
  • ... (open a PR to be featured here if you want to be featured here)

Deveopment

  • Register your bot(s) using @botfather.
  • Add a configuration file inside the project directory (use the one provided as an example)
  • Choose a prefix for your bot, it will be used to find the secure settings needed using environment variables
  • Add the environment variable <BOT_PREFIX>_TELEGRAM_KEY and set its value to the configuration token given by @botfather
  • Choose an image provider and add it to your config (Bing at the moment does now work since the C# library of Bing is broken)
  • If needed you can override the config directory by passing it as a command-line parameter, i.e: ./image-search-bot.exe /opt/myconfigs

Usage

Docker

Create a Dockerfile with the following contents:

FROM mattiascibien/image-search-bot
COPY *.botconfig.json ./

Run the conrainer with docker run --env <bot_prefix>_TELEGRAM_KEY=<api_key> --env BING_KEY=<api_key> where BOT_PREFIX is the value you have set in your .botconfig.json file

image-search-bot's People

Contributors

andreabertin avatar mattiascibien avatar

Watchers

 avatar

Forkers

andreabertin

image-search-bot's Issues

Restrict to chat

Add a configuration parameter called chatID that should be used to restrict bot access to a specific chatid, in order to enable private bots.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.