From 43cd71547659f06e326c8789719ef48a7863679f Mon Sep 17 00:00:00 2001 From: smthingwicked Date: Mon, 30 Aug 2021 21:48:41 +0300 Subject: [PATCH] add tg widget --- src/client/App.js | 5 +++-- src/client/index.js | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/client/App.js b/src/client/App.js index b395f0ef..950e6d06 100644 --- a/src/client/App.js +++ b/src/client/App.js @@ -21,7 +21,6 @@ function App() {
HakeShonassyBot Телеграм бот раздающий глупые ачивки участникам чата -
@@ -36,7 +35,9 @@ function App() {

HakeShonassyBot Исходный код лицензирован MIT - Github + Связаться с нами + Github + Telegram

diff --git a/src/client/index.js b/src/client/index.js index 7bf10e8f..b86e268c 100644 --- a/src/client/index.js +++ b/src/client/index.js @@ -5,7 +5,17 @@ import App from './App'; document.addEventListener('DOMContentLoaded', () => { const body = document.querySelector('body'); const container = document.createElement('div'); + const script = document.createElement('script'); + + script.src = 'https://telegram.org/js/telegram-widget.js?15'; + script.setAttribute('data-telegram-login', 'HakeTestAdv_bot'); + script.setAttribute('data-size', 'large'); + script.setAttribute('data-auth-url', 'https://4eea-93-92-200-193.ngrok.io'); + script.async = true; + container.className = 'hakeshonassybot-container'; + document.body.appendChild(script); + //body.append(container, script); body.append(container); ReactDOM.render(, container);