Initial Commit

Test
This commit is contained in:
Avishkar Patil
2021-06-03 11:28:58 +05:30
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@@ -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":

View File

@@ -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":

View File

@@ -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
}
},