Aviksaikat / Tanpachiro-bot

Telegram file uploader bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tanpachiro Bot πŸ€–πŸŽ₯

Tanpachiro Bot is a Telegram bot that can upload video files to a chat. It can also upload all the videos in a specified directory. With some slight modifications, you can make it upload as you want. With a local bot API server you can also make it support files upto 2GB in size.

Working Demo πŸ’»πŸ“±

demo.mp4

Getting Started πŸš€

  1. Clone the repository.
  2. Install the required packages:
git clone https://github.com/Aviksaikat/Tanpachiro-bot
cd Tanpachiro-bot
pip install -r requirements.txt
  1. Create a config.toml file in the root directory of the project and add your Telegram bot token:
[telegram]
bot_token = "YOUR_BOT_TOKEN"

Additional

  • Install Telegram Bot API server to increase the uplaod file size upto 2GB. Default is around 60 MB which is useless. Check out the github page for instructions.
  1. Run the bot:
python bot.py

Commands πŸ“

  • /start: Start the bot and get a welcome message.
  • /dir <directory_name>: Upload all the video files in the specified directory.

Usage 🎬

  1. Send a video file to the bot to upload it to the chat.
  2. Use the /dir command followed by the directory name to upload all the video files in that directory.

Contributing 🀝

Contributions are welcome! If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix:

git checkout -b new-branch-name

  1. Make your changes and commit them:

git commit -m "Description of your changes"

  1. Push your changes to your fork:

git push origin new-branch-name

  1. Create a pull request.

TODO

  • Recursively get all the video files
  • Add for uploading in groups & channels
  • Add more options

Issues πŸ›

If you find any bugs or issues with the bot, please report them on the Issues page of the repository.

License πŸ“œ

This project is licensed under the MIT License.

About

Telegram file uploader bot

License:MIT License


Languages

Language:Python 100.0%