2023-04-08 10:30:33 +05:30
# Bing Chat Telegram Bot
2023-04-08 10:17:49 +05:30
A Telegram bot that lets you interact with the Bing AI from chats that you allow in the config.
2023-04-08 10:30:33 +05:30
**> To start using this project,**
2023-04-09 21:05:20 +05:00
- Git clone and cd into cloned dir
2023-04-09 19:25:14 +05:30
- Run `yarn install` to install the dependencies.
2023-04-14 15:58:30 +05:30
- Create a `.env` file or set environment variables according to the reference file [.env.example ](https://github.com/uditkarode/bing-chat-telegram/blob/master/.env.example )
2023-04-09 19:25:14 +05:30
- Run `yarn dev` or `yarn build && yarn start` to start the bot.
2023-04-08 10:30:33 +05:30
2023-04-08 22:22:36 +05:30
**> To start using this project using Docker,**
2023-04-14 15:58:30 +05:30
###### >> on dev
- Git clone and cd into cloned dir
- Run `docker compose -f .build/docker-compose.yml build` to build the container.
- Create a `.env` file or set environment variables according to the reference file `.env.example`
- Run `docker compose up -d` to start the bot.
- Run `docker compose -f .build/docker-compose.yml push` to push container to registry.
###### >> on prod
- Create `docker-compose.yml` with the content from `docker-compose.yml` in repo.
- Create `.env` with the required variables (see [.env.example ](https://github.com/uditkarode/bing-chat-telegram/blob/master/.env.example )).
- Run `docker compose up -d` to start the bot.
2023-04-08 16:08:49 +05:00
2023-04-08 10:30:33 +05:30
**> To enable Telegram command autocompletion,**
2023-04-09 19:25:14 +05:30
- Press the `Edit Commands` button in your bot's menu on BotFather, and paste the following:
2023-04-08 10:30:33 +05:30
```
2023-04-14 15:59:10 +05:30
ai - send a message to Bing AI
variant - get or set the chat variant of the chat
2023-04-08 10:30:33 +05:30
help - get help on how to use the bot
2023-04-14 15:59:10 +05:30
newchat - clear the current conversation and start a new one
2023-04-08 10:30:33 +05:30
```