From 35ea61959ee8343e1dfe9d6a8b4614bd49e5776f Mon Sep 17 00:00:00 2001 From: EverythingSuckz Date: Sat, 17 Apr 2021 22:12:15 +0530 Subject: [PATCH] Typo & Heroku Fix --- README.md | 6 +++--- WebStreamer/bot/plugins/start.py | 2 +- WebStreamer/server/stream_routes.py | 4 ++-- app.json | 9 +++++---- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0badf10..261666b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

Telegram File Stream Bot

- Cover Image + Cover Image

A Telegram bot to stream files to web @@ -74,8 +74,8 @@ then goto the variables tab for more info on setti ### Host it on VPS or Locally ```sh -git clone https://github.com/EverythingSuckz/TG-FlieStreamBot -cd TG-FlieStreamBot +git clone https://github.com/EverythingSuckz/TG-FileStreamBot +cd TG-FileStreamBot virtualenv -p /usr/bin/python3 venv . ./venv/bin/activate pip install -r requirements.txt diff --git a/WebStreamer/bot/plugins/start.py b/WebStreamer/bot/plugins/start.py index 8985aed..a2fc6de 100644 --- a/WebStreamer/bot/plugins/start.py +++ b/WebStreamer/bot/plugins/start.py @@ -14,7 +14,7 @@ async def start(b, m): [ InlineKeyboardButton( f'{emoji.STAR} Source {emoji.STAR}', - url='https://github.com/EverythingSuckz/TG-FlieStreamBot' + url='https://github.com/EverythingSuckz/TG-FileStreamBot' ) ] ] diff --git a/WebStreamer/server/stream_routes.py b/WebStreamer/server/stream_routes.py index 31c0c9d..81622dc 100644 --- a/WebStreamer/server/stream_routes.py +++ b/WebStreamer/server/stream_routes.py @@ -13,12 +13,12 @@ from ..utils.custom_dl import TGCustomYield, chunk_size, offset_fix routes = web.RouteTableDef() -@routes.get("/") +@routes.get("/", allow_head=True) async def root_route_handler(request): bot_details = await StreamBot.get_me() return web.json_response({"status": "running", "server_permission": "Open", - "bot_associated_w": bot_details.username}) + "telegram_bot": '@'+bot_details.username}) @routes.get("/{message_id}") diff --git a/app.json b/app.json index b566e6e..5cb1b1b 100644 --- a/app.json +++ b/app.json @@ -1,5 +1,5 @@ { - "name": "TG-FlieStreamBot", + "name": "TG-FileStreamBot", "description": "A Pyrogram Telegram bot to Stream Telegram files to web.", "keywords": [ "telegram", @@ -12,8 +12,9 @@ "modular", "media" ], - "repository": "https://github.com/EverythingSuckz/TG-FlieStreamBot", - "success_url": "https://telegram.dog/WhyThisUsername", + "repository": "https://github.com/EverythingSuckz/TG-FileStreamBot", + "success_url": "/", + "logo": "https://telegra.ph/file/9d63060a06c6fc6def1da.png", "website": "stream.wrench.gq", "env": { "ENV": { @@ -60,7 +61,7 @@ "url": "heroku/python" }], "formation": { - "worker": { + "web": { "quantity": 1, "size": "free" }