Compare commits

...
1 Commits
Author SHA1 Message Date
YoursFunny af561ed0a0 fix pers_data 2024-03-22 23:03:04 +08:00
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -27,5 +27,5 @@
.python-version .python-version
LICENSE LICENSE
README.md README.md
pers_data pers.pkl
cert/ cert/
+1 -1
View File
@@ -1,6 +1,6 @@
**/.idea **/.idea
__pycache__/ __pycache__/
cert/ cert/
pers_data pers.pkl
docker-compose.yml docker-compose.yml
x.py x.py
+1 -1
View File
@@ -16,6 +16,6 @@ services:
WEBHOOK_SECRET_TOKEN: 'secret-token' WEBHOOK_SECRET_TOKEN: 'secret-token'
# LOG_LEVEL: 'WARNING' # LOG_LEVEL: 'WARNING'
volumes: volumes:
- ./pers_data: /app/pers_data - ./pers.pkl: /app/pers.pkl
# - ./cert:/app/cert # - ./cert:/app/cert
container_name: tgxmb container_name: tgxmb
+1 -1
View File
@@ -105,7 +105,7 @@ async def post_shutdown(application: Application) -> None:
def main(): def main():
defaults = Defaults(parse_mode=ParseMode.HTML, allow_sending_without_reply=True) defaults = Defaults(parse_mode=ParseMode.HTML, allow_sending_without_reply=True)
persistence = PicklePersistence(filepath='pers_data') persistence = PicklePersistence(filepath='pers.pkl')
application = (ApplicationBuilder() application = (ApplicationBuilder()
.token(common.BOT_TOKEN) .token(common.BOT_TOKEN)
.defaults(defaults) .defaults(defaults)