Commit a74bc803 authored by Pranav's avatar Pranav
Browse files

Minor changes to previous commit

parent 8c427f7a
......@@ -2,14 +2,15 @@ version: "3.9"
services:
telegram_bot:
build: .
container_name: telegram_bot
build: .
env_file:
- .env
environment:
- DATA_DIR=/app/data
volumes:
- ./session_name.session:/app/session_name.session
- ./data:/app/data
- data:/app/data
restart: always
command: python services/telegram_listener.py
volumes:
data:
......@@ -33,7 +33,7 @@ JSON_PATH = DATA_DIR / f"messages_{timestamp}.json"
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",
"has_media", "media_type", "file_name", "file_size_kb",
"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