🇹🇷 Mail.ru’dan telegram’a dosya aktaran bot.
🇬🇧 A bot that upload files from mail.ru to telegram.
Demo in telegram: @MailruDownBot 🔥 Repo: HuzunluArtemis/MailruDownBot
Features
- Task Quee
- Auth users or public
- Limit download size
- Force Subscribe
- Upload with custom filename
- Custom thumbnail for each user. Use: /save /clear /show
- Server stats & Dyno usage for heroku. Use: /stats
- Logger, Pinger, Shell executer
To-Do
- Add download status like upload status
- Add folder download
Bot Commands (Set in @BotFather)
1
2
3
4
5
6
7
8
start - bot help
save - reply a photo to save thumbnail
clear - clear thumbnail
show - show thumbnail
ping - check bot online status
stats - bot statistics
shell - execute shell command ❗ admin only
log - send bot logs ❗ admin only
Environment Variables
BOT_TOKEN
: Telegram Bot Token. Example:3asd2a2sd32:As56das65d2as:ASd2a6s3d26as
APP_ID
: Telegram App ID. Example:32523453
API_HASH
: Telegram Api Hash. Example:asdasdas6d265asd26asd6as1das
AUTH_IDS
: Auth only some groups or users. If you want public, leave it empty or give0
. Example:-100656 56191 -10056561
OWNER_ID
: Bot’s owner id. Send/id
tot.me/MissRose_bot
in private to get your id.MAX_FILESIZE
: Allowed max filesize in bytes. Default is telegram’s maximum filesize.USE_ARIA2
: Use aria2 for downloads. Faster. Example:False
Default:True
LOG_CHANNEL
: Log all downloads for spammers etc. Give channel id or simply your id.HEROKU_API_KEY
: For dyno usage in /stats - Optional.HEROKU_APP_NAME
: For dyno usage in /stats - Optional.CHANNEL_OR_CONTACT
: your users contact link. give your username. example: HuzunluArtemisFORCE_SUBSCRIBE_CHANNEL
: forcesub channel. optional. give channel id like-1006616516165
or channel username likeHuzunluArtemis
- Dont use heroku-20 or heroku-18. Use container. Use button.
FORCE_DOC_UPLOAD
: Force send all files as document. Without compress videos, photos etc. Example:True
Default:False
PROGRESS
: Progress string with 6 variables. Seeconfig.py
.PROGRESSBAR_LENGTH
: Progressbar length. Seeconfig.py
.FINISHED_PROGRESS_STR
: Finished Progress Char. Default:●
UN_FINISHED_PROGRESS_STR
: Unfinished Progress Char. Default:○
JOIN_CHANNEL_STR
: Join channel warning string. Seeconfig.py
.YOU_ARE_BANNED_STR
: Banned user string. Seeconfig.py
.JOIN_BUTTON_STR
: Join button string. Seeconfig.py
.
Deploy
Deploy to Heroku:
- Open me in new tab
- Fill required variables
- Fill app name (or dismiss)
Deploy to Local:
- install python to your machine
git clone https://gitlab.com/HuzunluArtemis/MailruDownBot
cd MailruDownBot
pip install -r requirements.txt
python bot.py
Deploy to Vps:
git clone https://gitlab.com/HuzunluArtemis/MailruDownBot
cd MailruDownBot
- For Debian based distros
sudo apt install python3 && sudo snap install docker
- For Arch and it’s derivatives:
sudo pacman -S docker python
Lisans
You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Yorumlar yüklenmezse JavaScript'i etkinleştir.