From 3268fbe7f9b2e591a25141404b63636f731b99b3 Mon Sep 17 00:00:00 2001 From: Avishkar Patil <67785446+avipatilpro@users.noreply.github.com> Date: Mon, 24 May 2021 17:55:59 +0530 Subject: [PATCH 1/4] Initial Commit --- WebStreamer/bot/plugins/start.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebStreamer/bot/plugins/start.py b/WebStreamer/bot/plugins/start.py index 469f9aa..9ce4255 100644 --- a/WebStreamer/bot/plugins/start.py +++ b/WebStreamer/bot/plugins/start.py @@ -20,7 +20,7 @@ async def start(b, m): ) usr_cmd = m.text.split("_")[-1] if usr_cmd == "/start": - if Var.UPDATES_CHANNEL is not None: + if Var.UPDATES_CHANNEL != "None": try: user = await b.get_chat_member(Var.UPDATES_CHANNEL, m.chat.id) if user.status == "kicked": @@ -67,7 +67,7 @@ async def start(b, m): else: - if Var.UPDATES_CHANNEL is not None: + if Var.UPDATES_CHANNEL != "None": try: user = await b.get_chat_member(Var.UPDATES_CHANNEL, m.chat.id) if user.status == "kicked": From 71500858cb47a5ae01b7b7155dbcbd0104b8f93a Mon Sep 17 00:00:00 2001 From: Avishkar Patil <67785446+avipatilpro@users.noreply.github.com> Date: Mon, 24 May 2021 17:56:12 +0530 Subject: [PATCH 2/4] Initial Commit From f58ed7d98a2fd61759a1d3934ec1ab1397843aa6 Mon Sep 17 00:00:00 2001 From: Avishkar Patil <67785446+avipatilpro@users.noreply.github.com> Date: Mon, 24 May 2021 17:56:56 +0530 Subject: [PATCH 3/4] Initial Commit --- WebStreamer/bot/plugins/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebStreamer/bot/plugins/stream.py b/WebStreamer/bot/plugins/stream.py index 14141f1..80f2501 100644 --- a/WebStreamer/bot/plugins/stream.py +++ b/WebStreamer/bot/plugins/stream.py @@ -20,7 +20,7 @@ async def private_receive_handler(c: Client, m: Message): Var.BIN_CHANNEL, f"#NEW_USER: \n\nNew User [{m.from_user.first_name}](tg://user?id={m.from_user.id}) Started !!" ) - if Var.UPDATES_CHANNEL is not None: + if Var.UPDATES_CHANNEL != "None": try: user = await c.get_chat_member(Var.UPDATES_CHANNEL, m.chat.id) if user.status == "kicked": From f6a8423027edc0fbb41470431036ec59cef83745 Mon Sep 17 00:00:00 2001 From: Avishkar Patil <67785446+avipatilpro@users.noreply.github.com> Date: Mon, 24 May 2021 18:01:05 +0530 Subject: [PATCH 4/4] Initial Commit --- app.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app.json b/app.json index ea9e86f..83396a1 100644 --- a/app.json +++ b/app.json @@ -15,7 +15,7 @@ "repository": "https://github.com/avipatilpro/FileStreamBot/", "success_url": "/", "logo": "https://telegra.ph/file/9d63060a06c6fc6def1da.png", - "website": "avifilestreambot.herokuapp.com", + "website": "avipatilweb.me", "env": { "ENV": { "description": "Set this to True if you don't want to crash the bot", @@ -35,6 +35,7 @@ }, "BIN_CHANNEL": { "description": "The BIN Channel ID. Read the readme for more info about this var" + }, "DATABASE_URL": { "description": "MongoDB URI for saving User IDs when they first Start the Bot. We will use that for Broadcasting to them. I will try to add more features related with Database. If you need help to get the URI you can ask in Support Group: https://t.me/linux_repo" @@ -48,7 +49,7 @@ }, "UPDATES_CHANNEL": { "description": "Put a Public Channel Username, so every user have to Join that channel to use the bot. Must add bot to channel as Admin to work properly.", - "required": false + }, "SLEEP_THRESHOLD": { "description": "Floodwait Sleep timer. Read the readme for more info about this var", @@ -76,7 +77,7 @@ "required": false }, "SESSION_NAME": { - "description": "Any Session Name for Bot", + "description": " Session Name for Bot [ Add AvishkarPatil ]", "required": false } },