openai-chatgpt-telegram-bot/documentation/en/docs/index.md

85 lines
4.1 KiB
Markdown
Raw Normal View History

2023-03-15 22:55:51 +03:00
---
title: Personal ChatGPT Telegram Bot
hide:
- navigation
---
# Personal ChatGPT Telegram Bot
> Introducing the ultimate AI-powered chatbot for Telegram - the perfect companion for anyone looking for quick, accurate answers to their questions. Our bot uses state-of-the-art machine learning technology powered by the ChatGPT model, allowing it to understand natural language inputs and respond with human-like precision.
>
> With our bot, you can ask anything you want, from simple queries to complex questions. Whether you're looking for information on the latest news, need help with a math problem, or just want to chat with a virtual friend, our bot has you covered.
>
> What's more, our bot is designed to be easy to use and user-friendly. Simply type in your question or query, and the bot will do the rest, providing you with a quick and accurate response in seconds. No more scrolling through endless search results or struggling to find the information you need - our bot does all the hard work for you.
>
> So why wait? Try out our ChatGPT-powered Telegram bot today and experience the future of AI-powered chatbots for yourself!
>
> (с) Generated by ChatGPT
But seriously, the project uses your ChatGPT token to access the ChatGPT API and let you chat with ChatGPT directly in Telegram.
## Work example
## Privacy
See my last name in the domain? [I'm a developer](https://mark.struchkov.dev), [blogger](https://struchkov.dev/blog/ru/), and publicly active. I don't have the benefit of getting dirty under my own name. I assure you that your data is not transferred to third parties, even I do not know about your requests to ChatGPT. You can see for yourself by examining the code, it's opensource.
## Preparing
* You must have [Docker installed](https://docs.docker.com/engine/install/). You can run the project both on the PC and on the server.
* You must [register a bot in Telegram](https://t.me/BotFather) and get an access token.
* You also need [ChatGPT access token](https://platform.openai.com/account/api-keys).
* You must know your telegramId. [You can find it out here.](https://t.me/myidbot).
## Docker Run
``` bash
docker run --name chatgpt-telegram-bot upagge/chatgpt-telegram-bot:develop \
-e TELEGRAM_BOT_TOKEN= \
-e TELEGRAM_BOT_USERNAME= \ # (1)!
-e TELEGRAM_PERSON_ID= \
-e CHAT_GPT_TOKEN=
```
1. Specify a name with the ending bot here, not a public name.
### Telegram Proxy
If you have Telegram blocked, you can specify proxy settings to connect.
``` bash
docker run --name chatgpt-telegram-bot upagge/chatgpt-telegram-bot:develop \
-e TELEGRAM_BOT_TOKEN= \
-e TELEGRAM_BOT_USERNAME= \
-e TELEGRAM_PERSON_ID= \
-e CHAT_GPT_TOKEN= \
-e TELEGRAM_PROXY_ENABLE=true \
-e TELEGRAM_PROXY_HOST= \
-e TELEGRAM_PROXY_PORT= \
-e TELEGRAM_PROXY_TYPE=SOCKS5 \ # (1)!
-e TELEGRAM_PROXY_USERNAME= \ # (2)!
-e TELEGRAM_PROXY_PASSWORD= # (2)!
```
1. Available options `SOCKS5`, `SOCKS4`, `HTTP`.
2. Optional. If there is no authorization, you can leave it blank.
## :heart:{ .heart } Support Develop
Sponsorship makes a project sustainable because it pays for the time of the maintainers of that project, a very scarce resource that is spent on developing new features, fixing bugs, improving stability, solving problems, and general support. The biggest bottleneck in Open Source is time.
- Bank card for residents of the Russian Federation: [https://www.tinkoff.ru/cf/4iU6NB3uzqx](https://www.tinkoff.ru/cf/4iU6NB3uzqx)
- Crypto:
* TON: `struchkov-mark.ton`
* BTC (Taproot): `bc1pt49vnp43c4mktk6309zlq3020dzd0p89gc8d90zzn4sgjvck56xs0t86vy`
* ETH: `0x7668C802Bd71Be965671D4Bbb1AD90C7f7f32921`
* USDT (ERC-20): `0x7668C802Bd71Be965671D4Bbb1AD90C7f7f32921`
* DAI (ERC-20): `0x7668C802Bd71Be965671D4Bbb1AD90C7f7f32921`
* BNB: `0xDa41aC95f606850f2E01ba775e521Cd385AA7D03`
* USD: `0xDa41aC95f606850f2E01ba775e521Cd385AA7D03`
* DAI: `0xDa41aC95f606850f2E01ba775e521Cd385AA7D03`
## FAQ
??? question "What model is used?"
For now the `gpt-3.5-turbo` model is used. In future versions you will be able to choose the model.