Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: ChatGPT Inline Bot on Telegram (chatgptontelegram.com)
73 points by sandoche on March 7, 2023 | hide | past | favorite | 57 comments



Congrats on the launch!

Made something similar which also uses Whisper to support voice memos (talk to GPT) and TTS (hear GPT’s responses)

Not sure it warrants a separate post, so sharing it here.

https://t.me/marcbot


Hey that's pretty awesome, can you make the TTS output language configurable?

Also when i send something to the bot i can only send video, (with the iOS app) it makes more sense to send audio. Is this something you can change?

Finally, you should have a privacy policy for a service like this.


Yes, you can configure the TTS voices (and languages).

If you send /voices you can pick from multiple voices.

Right now it only shows voices in English, but you can send the secret `/setvoice <voiceName>` with an Amazon Polly[0] neural voice and it will work as well.

The only downside right now is that I don't auto-identify languages, so if you set it to Dutch, but ask a question in English, you'll get a response in English with a very Dutch accent haha.

P.S. And yes @aero-glide2 is correct that you can toggle between Telegram's audio/video inputs by tapping the camera/microphone icon. – Right now MarcBot only supports audio inputs.

[0] https://docs.aws.amazon.com/polly/latest/dg/voicelist.html


I love this - thanks! Easiest interface into ChatGPT I've found.

/setvoice didn't see to work for me.

I was looking for a British voice and tried

/setvoice Brian

Am I doing something wrong?


Tap on video once, it will change to audio.


or autodetect the output language. Both Whisper and ChatGPT handle multilingual just fine


What do you use for TTS? I'm designing an in-app chatbot and having a hard time figuring out a fast-enough TTS library.

Currently considering either pre-recording all the outputs (ugh) or using the browser's TTS api (ugh^2) :)



Ah, it looks great. It's just 100% English though, which doesn't fit my use case (customers in 6 languages)


Thanks, I saw it yesterday and tried it, it's pretty awesome! Well done!


Does this also use chatgpt's api? Just tried it, it's very useful.


Yep! Same ChatGPT API for text generation. And Whisper AP for speech recognition.

If you speak other languages than English, make sure to give those a try well. It should understand you and respond in the same language.


Can you share the source code?


This seems very useful to me, but is the kind of thing I'd write in an afternoon and release it as OSS.

Still, most people won't want to self-host it, so the business model might work, good luck!


It's indeed possible, and you can easily find already existing OSS ChatGPT implementation that can serve as a base. I am more targeting no tech people or just the ones who don't want to bother building it / hosting it.


That makes total sense, thanks!


Just seriously curious, won't you buy it because looks like it was created in a weekend? So maybe not reliable?

I'm in a similar mood, but most of the indie maker's products are created this way and some end up scaling pretty well and turned in good investments, as they are usually cost-effective.


It's not about reliability, it's just that, for things this simple, I'm inclined to write the two Docker Compose lines to deploy this to my Harbormaster server than to pay for it.

I'm very much the minority, as I like to self-host, but it seems to me that an OSS solution would do the same thing,and equally reliably.

Then again, the value proposition in this is that it's hosted and you don't have to deal with OpenAI keys, so that's what users are paying for.


Because there is no info on the website about subscription prices:

There is a monthly subscription for 5USD which allows you to send up to 1000 messages every month. A yearly subscription costs 50USD.


1000 doesn't sound like a lot...


It was a temporary limit by precaution to not reach the limit of the OpenAI API, I will increase it later this week. Also I calculated this limit with the previous davici model in mind that I used when I started building this bot. I later moved to chatgpt-turbo that is cheaper, so there is not reason I cannot increase the limit.


I'm building something similar, but it's for personal use only. That way users can self host their own version and play with it with their own API key.

Cool project!


The last time I looked at this, ChatGPT wasn't yet available over API. Has this changed?



Nice one! If you check in the comment below someone share some self hostable bot aswell


Great to see you launch!

I just finished something similar in Telegram, I added a way to connect to "live data" via system commands, so the bot can get weather updates or cryptocurrency prices. I want to wire it up to send emails, make reminders, view or update the calendar and see what else makes sense.

If you force the bot to decide to do something (eg: If you feel the user want to start again, respond with --RESTART--) I think you could make AI that feels sentient or can do things on its own.

A curious experiment for now, let's see how it goes:

https://magicbuddy.chat

https://t.me/magicbuddybot


The developer can see everything that is being sent to the bot, right?


The privacy policy needs to be cristal clear what they do and what they don't with the chat data. How long is it kept, what is it being used for, who has access to it, etc.

Ideally there are no chat logs being kept at all and chat logs are only enabled temporarily for an individual user when debugging issues.


The way this works you can safely assume this is the case


Of course!

How would you even build a business in this day and age wiuthout collecting EVERYTHING you can (legally or not) obtain from your users...


Zuck - is that you?


>> We, us or our means Sandoche Adittane (Micro Entreprise), company number 79218834400016.

They don't provide their business address nor their country or phone number. How can it be trusted?


Lol, I just literally deployed an implementation from a GitHub repo[0] for free on Fly.io hours ago. This way I can also check the code and just pay for what I use. Seems like a low-hanging fruit to leverage on people who are not that into tech that much.

[0]: https://github.com/n3d1117/chatgpt-telegram-bot


Do you mind sharing a gist showing how you deployed to fly.io?


No gist needed really. I found that using the Dockerfile available in the repo to deploy was easy enough.

Basically clone/copy the repo, configure the bot's settings, and then deploy with `fly launch` within the repo folder using Fly.io's CLI. Just make sure your .env file is not in .dockerignore

Update: Guide on GitHub Gist: https://gist.github.com/jskherman/2ec833964edf2aed349f8b060a...


Thank you for your question and for bringing up your concerns. My micro-enterprise is registered in France, you can find more about me and all the side projects I worked on at sandoche.com, hope it helps and feel free to use to contact button to get support :)


Some sites say your company was closed down in 2021, whats up with that? Etablissement fermé le 01-07-2021


No.


I made something similar too for my own use and opened it to public last week. Try it out maybe: https://t.me/spy16_avabot

Privacy Policy: I DO NOT log/store anything from users chat (except the numeric telegram-id and the language preference). And I DO NOT send any user info to OpenAI as well (I would rather shut it down)


how do you make it remember past information if you do not store the past chat history?


I store last 5 messages in-memory (there's no way for anyone to access that. On restarts, it's gone). I know the consequences of this but it's not that noticeable because ChatGPT itself has some contextual memory. And I'm hosting on single node right now.


I have plans for some other personalised features which will need some storage of information. But that will be opt-in based.


You have a bit of overlap on your action buttons at the top with the graphic below. Congrats on the launch.


Thanks, good feedback, I'll look into it


Do you accept crypto payments? I have several contacts who will likely pay for this if so


Interesting, I don't accept crypto payment yet but I am up for that!


If you do comment here and I’ll see it, also a few people saying they often getting an error response.


Or you can roll out your own: https://github.com/h00s/chatgpt-telegram-bot


Congrats on the launch!

In case you don’t use Telegram, I made one for WhatsApp: http://wa.me/19893946588


how does making a bot for whatsapp works? I thought it has always been non trivial. Just want to check what's the current state of it is


The idea is great, but it is so simple to build I am just waiting for an open-source self-hostable version to pop up in a few days.


Can you please add support for voicemail


That's a good idea thanks, will add it to the backlog


Hmmm... I'd love to have something like on my car instead of "hey".


It would be nice if you provided the source code.


Good choice for making it inline


how much does it cost?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: