From 4c0076e4ea12ac2ffcff842c0dd5ff32c2ecb1bb Mon Sep 17 00:00:00 2001 From: Mohammad Hewedy Date: Thu, 23 May 2024 12:12:44 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 583b827..ad4f65a 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ A simple Telegram chatbot to suggest who will order the lunch today! -## development +## Deployment 1. Create bot using telegram [@botfather](https://telegram.me/BotFather) see [How to get Telegram Bot Chat ID](https://gist.github.com/nafiesl/4ad622f344cd1dc3bb1ecbe468ff9f8a) -2. You need to set the env var `BOT_TOKEN` and `CHAT_ID`. (you get from previous step) -3. Run the app using `python main.py`. -4. enjoy +2. Create a telegram group, add the bot to the group, and make it admin +3. You need to set the env var `BOT_TOKEN` and `CHAT_ID`. (you get from previous steps, where `CHAT_ID` should refer to the group created in prev step) +4. Run the app using `python main.py`. +5. start sending commands in the group (e.g. `/help`), the bot will detect food names as well (using chatgpt) +6. Enjoy! -> This app uses [telebot](https://github.com/mhewedy/telebot) \ No newline at end of file +> This app uses [telebot](https://github.com/mhewedy/telebot) From 5d10f2c112dbd5a3b178471db232d4c5f3805c04 Mon Sep 17 00:00:00 2001 From: Mohammad Hewedy Date: Thu, 23 May 2024 12:13:26 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad4f65a..479fe3a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A simple Telegram chatbot to suggest who will order the lunch today! 2. Create a telegram group, add the bot to the group, and make it admin 3. You need to set the env var `BOT_TOKEN` and `CHAT_ID`. (you get from previous steps, where `CHAT_ID` should refer to the group created in prev step) 4. Run the app using `python main.py`. -5. start sending commands in the group (e.g. `/help`), the bot will detect food names as well (using chatgpt) +5. Start sending commands in the group (e.g. `/help`), the bot will detect food names as well (using chatgpt) 6. Enjoy! > This app uses [telebot](https://github.com/mhewedy/telebot)