← Open Source

Interact with OpenAI's ChatGPT via Telegram and Voice.

ApplicationsPersonalTypeScript
Momentum
+0stars in 24 hours0.0%
1.13k
Stars
101
Forks
+0
This week
4
Contributors
Created 2023-04-09 · Updated 2026-11-21 · #14262 today
Top developers
RafalWilinskimipmipSebRut
README

Telegram ChatGPT Concierge Bot (+ Voice!)

This is a Telegram bot that uses:

  • OpenAI's ChatGPT, obviously, as "the brain"
  • LangchainJS to constructs prompts, handle convo history and interact with Google
  • OpenAI's Whisper API to generate text from voice
  • Play.ht to generate voice from text and reply to voice messages

How to use

Prerequisite: You need Node 18, a Telegram bot token and an OpenAI API key with access to GPT-4. Optionally you can use other model by setting OPENAI_MODEL env var. Ask ChatGPT how to get these. You'll also need ffmpeg installed to use voice interactions.

  1. git clone https://github.com/RafalWilinski/telegram-chatgpt-concierge-bot
  2. cd telegram-chatgpt-concierge-bot
  3. touch .env and fill the following:
TELEGRAM_TOKEN=
OPENAI_API_KEY=
PLAY_HT_SECRET_KEY=
PLAY_HT_USER_ID=
PLAY_HT_VOICE= # check docs for available voices https://playht.github.io/api-docs-generator/#utra-realistic-voices
OPENAI_MODEL=gpt-3.5-turbo # only if you don't have access to GPT-4
#SERVE_THIS_USER_ONLY=99999999 # uncomment this if you want to only serve this user id. The ID will be printed on stdout.
  1. npm install
  2. npm start

Consulting

I, @RafalWilinski (creator of this repo), offer consulting. If you are interested on hiring weekly hours with me on a retainer, feel free to email me at raf.wilinski@gmail.com


Follow me on Twitter

Discuss on Twitter or HackerNews

Sponsored by ChatWithCloud

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store