forked from MrMissx/Telegram_Forwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This version is not backward compatible. These needs a different config file to run the bot. Read readme to learn more
- Loading branch information
Showing
23 changed files
with
672 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,5 +62,5 @@ target/ | |
|
||
# Bot config file | ||
# DO NOT REMOVE THIS FILE FROM .gitignore | ||
config.py | ||
.env | ||
chat_list.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
FROM python:3.8-alpine | ||
FROM python:3.10-slim-bullseye | ||
|
||
ENV LANG=C.UTF-8 | ||
WORKDIR /app | ||
|
||
RUN apk update && apk add --no-cache alpine-sdk \ | ||
python3-dev \ | ||
libffi-dev \ | ||
openssl-dev \ | ||
&& rm -rf /var/cache/apk/* | ||
COPY ./ /app/ | ||
RUN pip install poetry | ||
RUN poetry config virtualenvs.create false | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir -r /app/requirements.txt | ||
COPY pyproject.toml poetry.lock ./ | ||
|
||
WORKDIR /app/ | ||
CMD ["python3 -m forwarder"] | ||
RUN poetry install --only main | ||
|
||
COPY . . | ||
|
||
CMD ["poetry", "run", "forwarder"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"source": -10012345678, | ||
"destination": [ | ||
-10012345678, | ||
-10012345678 | ||
] | ||
}, | ||
{ | ||
"source": -10012345678, | ||
"destination": [ | ||
-10012345678, | ||
-10012345678 | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
version: "3.7" | ||
version: "3.9" | ||
|
||
services: | ||
|
||
telegram-forwarder: | ||
image: telegram-forwarder-bot | ||
stdin_open: true | ||
tty: true | ||
restart: always | ||
restart: unless-stopped | ||
build: | ||
context: . | ||
environment: | ||
- TZ=$TZ | ||
- ENV=$ENV | ||
- API_KEY=$BOT_TOKEN | ||
- OWNER_ID=$OWNER_ID | ||
- FROM_CHATS=$FROM_CHATS | ||
- TO_CHATS=$TO_CHATS | ||
- WORKERS=$WORKERS | ||
command: python3 -m forwarder | ||
dockerfile: Dockerfile | ||
env_file: | ||
- .env |
Oops, something went wrong.