Commit a74bc803 authored by Pranav's avatar Pranav
Browse files

Minor changes to previous commit

parent 8c427f7a
...@@ -2,14 +2,15 @@ version: "3.9" ...@@ -2,14 +2,15 @@ version: "3.9"
services: services:
telegram_bot: telegram_bot:
build: .
container_name: telegram_bot container_name: telegram_bot
build: .
env_file: env_file:
- .env - .env
environment:
- DATA_DIR=/app/data
volumes: volumes:
- ./session_name.session:/app/session_name.session - ./session_name.session:/app/session_name.session
- ./data:/app/data - data:/app/data
restart: always restart: always
command: python services/telegram_listener.py command: python services/telegram_listener.py
volumes:
data:
...@@ -33,7 +33,7 @@ JSON_PATH = DATA_DIR / f"messages_{timestamp}.json" ...@@ -33,7 +33,7 @@ JSON_PATH = DATA_DIR / f"messages_{timestamp}.json"
sentiment_analyzer = pipeline("sentiment-analysis") sentiment_analyzer = pipeline("sentiment-analysis")
# These are the headers for the csv file. # These are the headers for the Json file.
HEADER = ["chat_id", "message_id", "sender_id", "timestamp", "text", HEADER = ["chat_id", "message_id", "sender_id", "timestamp", "text",
"has_media", "media_type", "file_name", "file_size_kb", "has_media", "media_type", "file_name", "file_size_kb",
"views", "reactions", "sentiment"] "views", "reactions", "sentiment"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment