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