diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..fd4f2b066 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +.DS_Store diff --git a/app.json b/app.json index 3252378af..87bcac672 100644 --- a/app.json +++ b/app.json @@ -7,9 +7,9 @@ "Save restricted content", "bot" ], - "repository": "https://github.com/vasusen-code/SaveRestrictedContentBot", + "repository": "https://github.com/nileshya/SaveRestrictedContentBot", "website": "", - "success_url": "https://t.me/DroneBots", + "success_url": "https://t.me/tdbuf3", "env": { "API_HASH": { "description": "Your API HASH from my.telegram.org", diff --git a/app.py b/app.py new file mode 100644 index 000000000..a926a9617 --- /dev/null +++ b/app.py @@ -0,0 +1,10 @@ +from flask import Flask +app = Flask(__name__) + +@app.route('/') +def hello_world(): + return 'GreyMatters' + + +if __name__ == "__main__": + app.run() diff --git a/main/plugins/pyroplug.py b/main/plugins/pyroplug.py index 1e608e86a..8110a8184 100644 --- a/main/plugins/pyroplug.py +++ b/main/plugins/pyroplug.py @@ -33,7 +33,7 @@ async def get_msg(userbot, client, bot, sender, edit_id, msg_link, i): msg_link = msg_link.split("?single")[0] msg_id = int(msg_link.split("/")[-1]) + int(i) height, width, duration, thumb_path = 90, 90, 0, None - if 't.me/c/' or 't.me/b/' in msg_link: + if 't.me/c/' in msg_link or 't.me/b/' in msg_link: if 't.me/b/' in msg_link: chat = str(msg_link.split("/")[-2]) else: diff --git a/requirements.txt b/requirements.txt index 48fcbc6ff..d7ffda53d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,6 @@ cryptg tgcrypto pyrogram python-decouple +Flask==2.2.5 +gunicorn==21.2.0 +aiohttp==3.8.5 diff --git a/run cmd.txt b/run cmd.txt new file mode 100644 index 000000000..dc874b6b7 --- /dev/null +++ b/run cmd.txt @@ -0,0 +1 @@ +gunicorn app:app & python -m main