Bot link: @MGlower_GPT_Bot
This is an AI Assistant Bot created to answer any of your questions.
To start using it input your OpenAI apiKey with a command /apiKey
or use test apikey with a command /test. You will have 20 trial uses.
After that send a message to get an answer to your question.
The bot remembers the context of your dialog.
After 20 messages from you new chat will be created and Bot context will be reset.
Here is the list of Bot available commands:
- ๐ฃ /help - get information of how this bot works
- ๐ /new - start new conversation with bot
- ๐ฆ /mode - select a mode for current chat and manage modes
- ๐ /apikey - input your OpenAI apikey
- ๐ /history - show previous conversation
- ๐ /retry - send previous prompt again
- โ๏ธ /cancel - cancel an active action
- ๐ /test - ask 10 free questions to the bot
By default, Bot remembers the content of your last messages. It is done like that so you can ask bot to clarify previous question OR to have a continuous conversation within the topic.
Use command /new to reset a context.
Send a detailed message to account @MGlower (https://t.me/MGlower)
Create an issue on GitHub Link
-
Clone this repository:
git clone -b main [email protected]:MGlower-RU/GPT_assistant_tg.git
-
Initialize a package.json file:
npm install
-
Initialize your Firebase project with Firestore and paste your credentials to .env file.
-
Setup your local server:
ngrok http 3000
-
Create telegram bot with @BotFather and copy your bot token.
-
Connect your bot with a local server:
https://api.telegram.org/bot[BOT_TOKEN]/setWebhook?url=[ngrok https url]
-
Everything is ready! Your bot is waiting for your questions.