mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c0ee8b491
|
||
|
|
af561ed0a0
|
+1
-1
@@ -27,5 +27,5 @@
|
||||
.python-version
|
||||
LICENSE
|
||||
README.md
|
||||
pers_data
|
||||
data/
|
||||
cert/
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
**/.idea
|
||||
__pycache__/
|
||||
cert/
|
||||
pers_data
|
||||
data/
|
||||
docker-compose.yml
|
||||
x.py
|
||||
|
||||
@@ -16,6 +16,6 @@ services:
|
||||
WEBHOOK_SECRET_TOKEN: 'secret-token'
|
||||
# LOG_LEVEL: 'WARNING'
|
||||
volumes:
|
||||
- ./pers_data: /app/pers_data
|
||||
- ./data: /app/data
|
||||
# - ./cert:/app/cert
|
||||
container_name: tgxmb
|
||||
|
||||
@@ -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_data')
|
||||
persistence = PicklePersistence(filepath='data/pers.pkl')
|
||||
application = (ApplicationBuilder()
|
||||
.token(common.BOT_TOKEN)
|
||||
.defaults(defaults)
|
||||
|
||||
Reference in New Issue
Block a user