adbenitez / simplebot_downloader

File downloader plugin for SimpleBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Downloader" SimpleBot Plugin

https://pepy.tech/badge/simplebot_downloader

A SimpleBot plugin that allows to download files by email/DeltaChat.

Install

To install run:

pip install simplebot-downloader

Customization

By default the maximum file size allowed is 300MB, to change it, pass the number of bytes as follows:

simplebot -a bot@example.com db -s simplebot_downloader/max_size 10485760

By default the file will be sent in several emails split in chunks of 15728640 Bytes (15MB), to change it:

simplebot -a bot@example.com db -s simplebot_downloader/part_size 10240

By default there is a delay of 60 seconds between each sent chunk, to change it:

simplebot -a bot@example.com db -s simplebot_downloader/delay 120

By default the bot is in "filter" mode, this mean to queue downloads you just send the file link directly, to download with a command instead:

simplebot -a bot@example.com db -s simplebot_downloader/mode command

About

File downloader plugin for SimpleBot

License:Mozilla Public License 2.0


Languages

Language:Python 100.0%