Skip to content

Commit

Permalink
feat: 支持下载讨论组
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyoha committed Jan 17, 2024
1 parent 33e00df commit a395601
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386,linux/ppc64le
target: compile-image
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/telegram_media_downloader_compile:latest
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/telegram_media_downloader_compile:${{ github.ref_name }}

- name: Build and push runtime-image
uses: docker/build-push-action@v4
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ FROM python:3.11.2-alpine As runtime-image

WORKDIR /app

COPY --from=tangyoha/telegram_media_downloader_compile /usr/bin/rclone /app/rclone/rclone
COPY --from=tangyoha/telegram_media_downloader_compile:download /usr/bin/rclone /app/rclone/rclone

COPY --from=tangyoha/telegram_media_downloader_compile /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=tangyoha/telegram_media_downloader_compile:download /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages


RUN apk add --no-cache openblas-dev ffmpeg
Expand Down
2 changes: 1 addition & 1 deletion module/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ async def download_from_link(client: pyrogram.Client, message: pyrogram.types.Me
if download_message:
await direct_download(_bot, entity.id, message, download_message)
else:
client.send_message(
await client.send_message(
message.from_user.id,
f"{_t('From')} {entity.title} {_t('download')} {message_id} {_t('error')}!",
reply_to_message_id=message.id,
Expand Down

0 comments on commit a395601

Please sign in to comment.