Skip to content

Commit

Permalink
#21 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Teomit authored Mar 7, 2023
1 parent 04a1e34 commit 68638ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import List, Optional

import yaml
import re

from module.cloud_drive import CloudDrive, CloudDriveConfig
from module.filter import Filter
Expand Down Expand Up @@ -268,6 +269,8 @@ def get_file_name(
res += f"{caption}"
if res == "":
res = f"{message_id}"
forbidden_symbols = '[<>:"/\\|?*]'
res = re.sub(forbidden_symbols, '_', res)
return res

def need_skip_message(
Expand Down

0 comments on commit 68638ae

Please sign in to comment.