Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattiascibien/image-search-bot
Configurable Telegram Bots that respond to image queries
https://github.com/mattiascibien/image-search-bot
bot images robot search telegram
Last synced: 15 days ago
JSON representation
Configurable Telegram Bots that respond to image queries
- Host: GitHub
- URL: https://github.com/mattiascibien/image-search-bot
- Owner: mattiascibien
- License: mit
- Created: 2019-07-19T13:06:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T09:31:49.000Z (10 months ago)
- Last Synced: 2024-02-27T11:06:58.747Z (10 months ago)
- Topics: bot, images, robot, search, telegram
- Language: C#
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# image-search-bot [![Build Status](https://dev.azure.com/mattiascibien/image-search-bot/_apis/build/status/mattiascibien.image-search-bot?branchName=master)](https://dev.azure.com/mattiascibien/image-search-bot/_build/latest?definitionId=52&branchName=master)
Configurable apps for running Telegram Bots that responds to photo Image Queries## Bots using this framework
* [@piselli_bot](https://telegram.me/piselli_bot) - A joke bot that sends images of beans
* [@Robertpattinbot](https://telegram.me/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](https://telegram.me/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 `_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:
```docker
FROM mattiascibien/image-search-bot
COPY *.botconfig.json ./
```Run the conrainer with `docker run --env _TELEGRAM_KEY= --env BING_KEY=` where BOT_PREFIX is the value you have set in your `.botconfig.json` file