Skip to content

4riful/Send2ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Send2ChatBot Logo

Send2ChatBot πŸ€–

GitHub stars GitHub issues

Send2ChatBot is a versatile 🌟 Bash script that simplifies the process of sending messages and files to popular chatbot platforms, including Telegram and Discord. This script provides an intuitive command-line interface for seamless communication with your audience.

Send2ChatBot Demo

Features πŸš€

  • Cross-Platform Messaging: Effortlessly send messages and files to both Telegram and Discord.
  • Customizable Configuration: Configure API keys, chat IDs, and webhooks via the user-friendly config.yaml file.
  • Intuitive Usage: A command-line interface that accommodates a wide range of users.
  • Visual Feedback: A built-in progress indicator for monitoring file uploads.

Getting Started πŸ› οΈ

Prerequisites πŸ“‹

  • Bash shell (usually available by default on Linux and macOS)

Installation βš™οΈ

  1. Clone the Repository:

    git clone https://github.com/your-username/Send2ChatBot.git
    

Configure config.yaml:

Create a configuration file named config.yaml in the ~/.custom_path/ directory. Fill in the necessary details for both Telegram and Discord:

telegram:
  api_key: "YOUR_TELEGRAM_API_KEY"
  chat_id: "YOUR_TELEGRAM_CHAT_ID"

discord:
  webhook_url: "YOUR_DISCORD_WEBHOOK_URL"

Make the Script Executable:

chmod +x Send2ChatBot.sh

Usage πŸ“¦

To send a file to Telegram:
./Send2ChatBot.sh -t /path/to/your/file.txt

To send a file to Discord:
./Send2ChatBot.sh -d /path/to/your/file.txt

To use a custom config file use -c flag 
./Send2ChatBot.sh -d -c custom_config.yaml /path/to/your/file.txt

Use the following flags to specify the destination:

  • -t: Send the file to Telegram.
  • -d: Send the file to Discord.
  • No flag: If configurations exist for both platforms, the file will be sent to both. asciicast

Note: Before using the script to send messages and files, ensure that you've properly configured your config.yaml file with the necessary API keys, chat IDs, and webhook URLs. Make sure to replace /path/to/your/file.txt with the actual path to the file you want to send.

Contributing πŸ‘₯

Contributions are welcome! Feel free to open issues and submit pull requests.

License πŸ“„

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages