🇬🇧 Bot that calculates file hashes.
🇹🇷 Dosya toplamları hesaplayan bot.
Demo in Telegram: @FileHashBot 🔥 Repo: HuzunluArtemis/FileHashBot
🇬🇧 Send media and reply with /hash command. You can clear your all files and quee with /clearme, Your process quee will be cleared. If anything is uploading at now, it will be cleared. Be careful.
🇹🇷 Medyanızı gönderin ve /hash ile yanıtlayın. Tüm dosyalarınızı ve sıranızı /clearme ile temizleyebilirsiniz. İşlem sıranız temizlenir. Şu an yüklenen bir şey varsa temizlenir. Dikkatli olun.
Calculates: MD5, SHA1, SHA224, SHA256, SHA512, SHA384
If you want more, open pr or issue.
Setting up config file
Required 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
BOT_USERNAME
: Your bot’s username. without @. Example:FileHashBot
Not Required Variables:
OWNER_ID
: Bot’s owner id. Send/id
tot.me/MissRose_bot
in private to get your id. Required for shell. If you don’t want, leave it empty.ONE_PROCESS_PER_USER
: One process per user. Improves bot performance. Example:0
(False) or1
(True). Default:1
FORCE_SUBSCRIBE_CHANNEL
: Force subscribe channel or group. Example:-1001327202752
or@HuzunluArtemis
. To disable leave it empty. Do not forget to make admin your bot in forcesub channel or group.CHANNEL_OR_CONTACT
: Your bot’s channel or contact username. Example:HuzunluArtemis
HASH_COMMAND
: Hash command. Default:hash
STATS_COMMAND
: Server Stats command. Default:stats
SHELL_COMMAND
: Shell command (only works for owner). Default:shell
CLEARME_COMMAND
: Clear all user files command. Default:clearme
DOWNLOAD_DIR
: Downloading directory. Dont change if you dont know about this. Default:downloads
PROGRESS
: Progress string. Seeconfig.py
or leave it empty.BUFFER_SIZE
: Buffer size for calculate hash. Seeconfig.py
or leave it empty.DOWNLOAD_LIMIT
: File size limit as bytes. Seeconfig.py
. For unlimited give0
FINISHED_PROGRESS_STR
: Finished Progress Char. Default:●
UN_FINISHED_PROGRESS_STR
: Unfinished Progress Char. Default:○
SHOW_PROGRESS_MIN_SIZE_DOWNLOAD
: Progressbar length. Default:25
UNAUTHORIZED_TEXT_STR
: Unauthorized string. Seeconfig.py
.DOWNLOADING_STR
: Downloading string. Seeconfig.py
.START_TEXT_STR
: Start text string. Seeconfig.py
.CLEAR_STR
: Clearme response string. Seeconfig.py
.ONE_PROCESS_PER_USER_STR
: One process for one user response string. Seeconfig.py
.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/FileHashBot
cd FileHashBot
pip install -r requirements.txt
python bot.py
Deploy to Vps:
git clone https://gitlab.com/HuzunluArtemis/FileHashBot
cd FileHashBot
- 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.