Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 609 Bytes

File metadata and controls

29 lines (15 loc) · 609 Bytes

FileToLinkbot

a Telegram bot for Convert Files to link

if you want run on linux i recommend ubuntu 20 or above

You need python 3.8 or above

you need install some packages for run this code

1 - install nginx if you are running on linux - apt install nginx

2 - apt install python3-pip

3 - pip install pyrogram

4 - pip install tgcrypto

download and copy code into /var/www

cd /var/www

change api_id , api_hash and token in config.py

python3 bot.py

  • if you don't have domain , you can set equal domain to server in config.py
  • Change ads_channels in config.py and add bot into channel as admin