Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helper_funcs/chat_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# the Strings used for this "thing"
from translation import Translation

from pyrogram import Client, Filters
from pyrogram import Client, filters

# the Telegram trackings
from chatbase import Message
Expand Down
6 changes: 3 additions & 3 deletions plugins/custom_thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from helper_funcs.chat_base import TRChatBase
import database.database as sql

@pyrogram.Client.on_message(pyrogram.Filters.command(["generatecustomthumbnail"]))
@pyrogram.Client.on_message(pyrogram.filters.command(["generatecustomthumbnail"]))
async def generate_custom_thumbnail(bot, update):
if update.from_user.id in Config.BANNED_USERS:
await update.reply_text("You are B A N N E D")
Expand Down Expand Up @@ -80,7 +80,7 @@ async def generate_custom_thumbnail(bot, update):
)


@pyrogram.Client.on_message(pyrogram.Filters.photo)
@pyrogram.Client.on_message(pyrogram.filters.photo)
async def save_photo(bot, update):
if update.from_user.id in Config.BANNED_USERS:
await bot.delete_messages(
Expand Down Expand Up @@ -116,7 +116,7 @@ async def save_photo(bot, update):
)


@pyrogram.Client.on_message(pyrogram.Filters.command(["deletethumbnail"]))
@pyrogram.Client.on_message(pyrogram.filters.command(["deletethumbnail"]))
async def delete_thumbnail(bot, update):
if update.from_user.id in Config.BANNED_USERS:
await bot.delete_messages(
Expand Down
6 changes: 3 additions & 3 deletions plugins/help_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def GetExpiryDate(chat_id):
return expires_at


@pyrogram.Client.on_message(pyrogram.Filters.command(["help", "about"]))
@pyrogram.Client.on_message(pyrogram.filters.command(["help", "about"]))
async def help_user(bot, update):
# logger.info(update)
TRChatBase(update.from_user.id, update.text, "/help")
Expand All @@ -43,7 +43,7 @@ async def help_user(bot, update):
reply_to_message_id=update.message_id
)

@pyrogram.Client.on_message(pyrogram.Filters.command(["start"]))
@pyrogram.Client.on_message(pyrogram.filters.command(["start"]))
async def start(bot, update):
# logger.info(update)
TRChatBase(update.from_user.id, update.text, "/start")
Expand All @@ -54,7 +54,7 @@ async def start(bot, update):
)


@pyrogram.Client.on_message(pyrogram.Filters.command(["upgrade"]))
@pyrogram.Client.on_message(pyrogram.filters.command(["upgrade"]))
async def upgrade(bot, update):
# logger.info(update)
TRChatBase(update.from_user.id, update.text, "/upgrade")
Expand Down
4 changes: 2 additions & 2 deletions plugins/rename_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import pyrogram
logging.getLogger("pyrogram").setLevel(logging.WARNING)
from pyrogram import Client, Filters
from pyrogram import Client, filters

from helper_funcs.chat_base import TRChatBase
from helper_funcs.display_progress import progress_for_pyrogram
Expand All @@ -34,7 +34,7 @@
from database.database import *


@pyrogram.Client.on_message(pyrogram.Filters.command(["rename"]))
@pyrogram.Client.on_message(pyrogram.filters.command(["rename"]))
async def rename_doc(bot, update):
if update.from_user.id in Config.BANNED_USERS:
await update.reply_text("You are B A N N E D")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ git+git://github.com/google/chatbase-python.git
hachoir
numpy
Pillow
https://github.com/pyrogram/pyrogram/archive/asyncio-dev.zip
requests
tgcrypto
sqlalchemy
psycopg2-binary
Pyrogram==1.0.6