From 683b3ba7a8d2e3e92ff1bdec5f06c1142cd83759 Mon Sep 17 00:00:00 2001 From: Zaharadeen Date: Mon, 27 Jan 2025 09:13:34 +0100 Subject: [PATCH] fixes from review --- frontend/index.html | 1 + frontend/src/index.jsx | 5 ----- web_app/telegram/README.md | 16 ++-------------- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 64e98c5cc..11d8ed5cd 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -14,6 +14,7 @@ +
diff --git a/frontend/src/index.jsx b/frontend/src/index.jsx index 56b7cc71d..842563609 100644 --- a/frontend/src/index.jsx +++ b/frontend/src/index.jsx @@ -5,20 +5,15 @@ import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import App from './App'; - const queryClient = new QueryClient(); const root = ReactDOM.createRoot(document.getElementById('root')); -const Ca = () =>

hello

; - root.render( - - ); diff --git a/web_app/telegram/README.md b/web_app/telegram/README.md index 13d0dff9f..31100bc1d 100644 --- a/web_app/telegram/README.md +++ b/web_app/telegram/README.md @@ -1,5 +1,3 @@ -# Telegram Bot Setup - This document provides instructions on how to set up and run the Telegram bot, as well as how to configure webhooks. ## Prerequisites @@ -9,14 +7,11 @@ This document provides instructions on how to set up and run the Telegram bot, a ## Setting Up the Environment 2. **Create a `.env` file in the root directory and add your environment variables:** - ```env TELEGRAM_TOKEN= TELEGRAM_WEBAPP_URL= - - APP_BOT_ID= + REACT_APP_BOT_ID= ``` - Note: You can obtain the bot ID directly from your Telegram bot token in the format `bot_id:secret`. ## Running the Bot @@ -40,14 +35,7 @@ To set the webhook for your Telegram bot, follow these steps: This will set the webhook URL to the current request URL. 3. Ensure that your server is publicly accessible so that Telegram can send updates to your webhook. - -## Additional Configuration In [BotFather](https://core.telegram.org/bots#botfather) - -- **Domain:** You need to set a domain for the bot to work properly with the Telegram widget login(frontend). -- **Photo** You need to upload your site's logo, as it will be displayed when users log in through the Telegram login widget![alt text](./assets/image.png) -- **Configure MiniApp URL:** This is optional but recommended for better integration. - -## Notes + @@ -48,4 +52,4 @@ To set the webhook for your Telegram bot, follow these steps: - Make sure your server is running and accessible to Telegram for the webhook to function correctly. - You can test the bot by sending the `/start` command after setting up the webhook.