Skip to content
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@

* [![Contact](https://img.shields.io/static/v1?label=Contact&message=On+Telegram&color=critical)](https://t.me/Cynitesupport)

## Deploy

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/TechnicalCynite/Channel-Post-Filter)
10 changes: 10 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
return 'Bharat'


if __name__ == "__main__":
app.run()
14 changes: 7 additions & 7 deletions info.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
API_ID = 18156600
API_HASH = "15862aff26ae5165ce6991382780a458"
BOT_TOKEN = "5895738935:AAE3CcWv1IQA2eclX9fdHEdJC2298FXRZRg"
SESSION = "BQEVDDgAqAeqpwh6ISGOHhApFeAW2aOQ1fgvqNm5kH5dR2DFH3AGfjSAG6gtsq4Mz2Ra6uekSou5X1Breuqjs-DTnHtHNfRVDj3RB86iRFlIF1mA7R4kHDvGF-qVFGMbUjePCSFarxFZch-AHNN4SspYH_i3KHN5h_juhSOSlT5O2iVGIq2CNp22_aPxWkifsBrQnUuyJ3tKTy7_HQ734ICQ5RATZtWtMdO0kCUbY6TyhgYJ0L8jm7AnsqnEmBdM2UkF4fuuasDrOmDocrm39vbITKNgjnucAODx2AtY8bSD5qNDx-BH_vIORzuGF72wqzU19kDzlpyb_-Uqx483blPHyKfOQgAAAAFhSwkGAA"
DATABASE_URI = "mongodb+srv://channelbot:channelbot@cluster0.anurlrs.mongodb.net/?retryWrites=true&w=majority"
LOG_CHANNEL = -1001884373226
ADMIN = 1883570185
API_ID =
API_HASH = ""
BOT_TOKEN = ""
SESSION = ""
DATABASE_URI = ""
LOG_CHANNEL =
ADMIN =
CHANNEL = "@CyNiTeBaCkUp"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions plugins/newgroup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from info import *
from utils import *
from asyncio import sleep
from pyrogram import Client, filters

@Client.on_message(filters.group & filters.new_chat_members)
async def new_group(bot, message):
bot_id = (await bot.get_me()).id
member = [u.id for u in message.new_chat_members]
if bot_id in member:
await add_group(group_id=message.chat.id,
group_name=message.chat.title,
user_name=message.from_user.first_name,
user_id=message.from_user.id,
channels=[],
f_sub=False,
verified=False)
m=await message.reply(f"Thanks for adding me in {message.chat.title} ✨\n\nPlease Get Access By /verify\n\n")
text=f"#NewGroup\n\nGroup: {message.chat.title}\nGroupID: `{message.chat.id}`\nAddedBy: {message.from_user.mention}\nUserID: `{message.from_user.id}`"
await bot.send_message(chat_id=LOG_CHANNEL, text=text)
await sleep(60)
await m.delete()
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ cinemagoer
aiohttp
aiofiles
asyncio
psutil
Flask==2.2.2
gunicorn==20.1.0
1 change: 1 addition & 0 deletions run cmd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gunicorn app:app & python3 main.py
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.1