Merge Beta with Stable releases #1
@ -4,7 +4,6 @@ from traceback import print_exc
|
||||
from app import app, isAnAdmin
|
||||
from typing import Any, List, Literal, Union
|
||||
from pyrogram.types import User, ChatMember, ChatPrivileges, Chat, Message, Photo, Video, Document, Animation, Voice, ForceReply, ReplyKeyboardMarkup
|
||||
from pyrogram.client import Client
|
||||
from pyrogram.errors import bad_request_400
|
||||
from dateutil.relativedelta import relativedelta
|
||||
from modules.database import col_tmp, col_users, col_context, col_warnings, col_applications, col_sponsorships, col_messages
|
||||
@ -214,7 +213,7 @@ class HoloUser():
|
||||
"""Set label in destination group
|
||||
|
||||
### Args:
|
||||
* app (`Client`): Pyrogram client
|
||||
* chat (`Chat`): Telegram chat
|
||||
* label (`str`): Label you want to set
|
||||
"""
|
||||
self.label = label
|
||||
@ -227,7 +226,7 @@ class HoloUser():
|
||||
"""Reset label in destination group
|
||||
|
||||
### Args:
|
||||
* app (`Client`): Pyrogram client
|
||||
* chat (`Chat`): Telegram chat
|
||||
"""
|
||||
self.label = ""
|
||||
self.set("label", "")
|
||||
|
@ -1,11 +1,9 @@
|
||||
from datetime import datetime
|
||||
from os import sep
|
||||
from time import time
|
||||
from app import app
|
||||
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, ReplyKeyboardRemove
|
||||
from pyrogram import filters
|
||||
from classes.holo_user import HoloUser
|
||||
from modules.utils import configGet, configSet, jsonLoad, jsonSave, locale, logWrite
|
||||
from modules.utils import configGet, locale, logWrite
|
||||
from modules.handlers.confirmation import confirm_yes
|
||||
from modules.handlers.welcome import welcome_pass
|
||||
from modules.database import col_tmp, col_applications
|
||||
|
@ -1,6 +1,5 @@
|
||||
from app import app, isAnAdmin
|
||||
from pyrogram import filters
|
||||
from pyrogram.types import ChatPrivileges
|
||||
from modules.utils import should_quote, find_user, configGet
|
||||
from classes.holo_user import HoloUser
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
from os import sep
|
||||
from app import app, isAnAdmin
|
||||
from pyrogram import filters
|
||||
from pyrogram.errors import bad_request_400
|
||||
from classes.holo_user import HoloUser
|
||||
from modules.utils import jsonLoad, jsonSave, logWrite, locale, configGet, should_quote
|
||||
from modules.database import col_messages
|
||||
from modules.utils import logWrite, locale, configGet, should_quote
|
||||
|
||||
# Message command ==============================================================================================================
|
||||
@app.on_message(~ filters.scheduled & filters.command(["message"], prefixes=["/"]))
|
||||
|
@ -1,5 +1,4 @@
|
||||
from app import app
|
||||
from os import sep
|
||||
from pyrogram import filters
|
||||
from pyrogram.types import ReplyKeyboardMarkup
|
||||
from modules.utils import locale, logWrite
|
||||
|
@ -1,11 +1,9 @@
|
||||
from datetime import datetime
|
||||
from os import sep
|
||||
from app import app, isAnAdmin
|
||||
import asyncio
|
||||
from pyrogram import filters
|
||||
from pyrogram.types import ForceReply, ReplyKeyboardMarkup, Message
|
||||
from pyrogram.types import Message
|
||||
from classes.holo_user import HoloUser
|
||||
from modules.utils import configGet, configSet, jsonLoad, jsonSave, locale, logWrite, should_quote
|
||||
from modules.utils import configGet, logWrite
|
||||
from modules.database import col_messages
|
||||
|
||||
async def message_involved(msg: Message) -> bool:
|
||||
|
@ -1,8 +1,7 @@
|
||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||
from datetime import datetime
|
||||
from os import fsdecode, listdir, sep
|
||||
from app import app
|
||||
from modules.utils import configGet, jsonLoad, locale, logWrite
|
||||
from modules.utils import configGet, locale, logWrite
|
||||
from dateutil.relativedelta import relativedelta
|
||||
from modules.database import col_applications
|
||||
|
||||
|
Reference in New Issue
Block a user