Skip to content

thamwangjun/teletenor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teletenor logo banner image

FOSSA Status

teletenor is an inline bot for Telegram that provides inline gif suggestions retrieved from Tenor.

You can use the bot by mentioning @ttenor_bot in Telegram.

teletenor is still currently in alpha status.

AWS Lambda Deployment

teletenor-contralto is teletenor's project for deployment onto AWS Cloud using AWS SAM (Serverless Application Model).

Setup

Prerequisites

Clone teletenor

git clone https://github.com/tabby-jun/teletenor.git
cd teletenor

Create a .env file

TELEGRAM_BOT_TOKEN="bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11" # You need to get this from Telegram's BotFather, under Prerequisites
TELEGRAM_INLINE_RESPONSE_CACHE_TIME=300
TENOR_DEVELOPER_KEY="LIVDSRZULELA" # You need to get this from Tenor's API Portal, under Prerequisites
TENOR_SEARCH_RESULT_LIMIT=12
TENOR_CONTENT_FILTER="low"
TENOR_MEDIA_FILTER="minimal"
MP4_MEDIA_FORMAT="mp4"
GIF_MEDIA_FORMAT="tinygif"
LOGGING_ENABLED=false
LOG_LEVEL=error
DISABLE_LAUNCH=false # true when using AWS Lambda

Install deps and start

npm install
# Or if you are using yarn
yarn install

npm start
# or
yarn start

Tentative Roadmap

  1. Locale-related Tenor searches done

  2. Register shares with Tenor done

  3. Automated Tests !important

  4. Print information during bot operation

  5. Logging and performance metrics

JavaScript Style Guide

Notes

  • (@teletenor_bot) bot has been disabled in favor of a shorter username handle (@ttenor_bot)

License

FOSSA Status

About

teletenor is an inline bot for Telegram that provides inline gif suggestions retrieved from Tenor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published