The example demonstrates a Telegram messaging bot that uses the Amazon Rekognition service & Ritekit API to analyse a image and propose popular related hashtags based on content in the uploaded image written in nodejs.
I have written the installation steps for OS X & Linux:
npm install -g serverless
install the AWS Command Line Interface
git clone git://github.com/onnobos/hashtagmania.git
cd hashtagmania
npm install
serverless deploy
- Register telegram bot with Telegram.org
- Set the webhook, based URL endpoint mentioned in "Step 1. Clone GitHub repository"
- Create an empty file called serverless.env.yml with the content below and replace "-TELEGRAM API-" with the telegram API.
dev:
TELEGRAM_API: '-TELEGRAM API-'
RITEKIT_API: '-RITEKIT API-'
- Sign up for RiteKit
- Go to developer dashboard
- Click "Create a token" button to get your Client ID and Client secret.
- Replace "-RITEKIT API-" Client ID to file serverless.env.yml file created in step 2.
- Add your telegram bot (created in step 2) in Telegram message app
- Enter
/help
- Or upload a image with caption.
- 0.0.1
- Work in progress
Onno Bos – twitter @obeone
Distributed under the GNU GPLv3 license. See GNU GPLv3
for more information.