Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
software-project-WS25
Telegram Team
Commits
a74bc803
Commit
a74bc803
authored
Oct 30, 2025
by
Pranav
Browse files
Minor changes to previous commit
parent
8c427f7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Desktop/Telegram_Bot/docker-compose.yaml
View file @
a74bc803
...
@@ -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
:
Desktop/Telegram_Bot/services/telegram_listener.py
View file @
a74bc803
...
@@ -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"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment