File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11
11
@dp .message (User_Check ())
12
12
async def start_handler (msg : types .Message ):
13
13
"""
14
- Handles the /start command to check if the user has joined the required channels.
14
+ Handles the text to check if the user has joined the required channels.
15
15
If the user has not joined, provides a list of channels and their invitation links.
16
16
17
17
Args:
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ async def main():
43
43
# Configure logging
44
44
format = '%(filename)s - %(funcName)s - %(lineno)d - %(name)s - %(levelname)s - %(message)s'
45
45
logging .basicConfig (
46
- # filename=log_file_name, # Uncomment this line to log to a file
47
- level = logging .INFO , # Set the logging level to INFO
46
+ filename = log_file_name , # Save error log on file
47
+ level = logging .ERROR , # Set the logging level to INFO
48
48
format = format , # Set the logging format
49
- stream = sys .stdout # Log to stdout
49
+ # stream=sys.stdout # Log to stdout
50
50
)
51
51
# Run the main function asynchronously
52
52
asyncio .run (main ())
Original file line number Diff line number Diff line change
1
+ # from .throttling import ThrottlingMiddleware
2
+ from cython_code .throttling_middleware import ThrottlingMiddleware
You can’t perform that action at this time.
0 commit comments