Skip to content

πŸ€– Dev-Automators-Telegram-Bot is a community-driven Telegram bot that welcomes users and supports extensible commands. It offers webhook & long-polling support, making it flexible for automation. Open-source and beginner-friendly, it encourages collaboration while ensuring a professional and structured coding environment. πŸš€βœ¨

License

Notifications You must be signed in to change notification settings

tanned366/Dev-Automators-Telegram-Bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev-Automators-Telegram-Bot

Welcome to Dev-Automators-Telegram-Bot – a community-driven Telegram bot project!

This bot is designed to greet users with a warm welcome and serve as a foundation for adding new, useful commands. We encourage open-source contributions to expand its capabilities while ensuring that all content remains legal, professional, and free from slang or inappropriate language.

Features

  • Greeting Users: The bot welcomes users as they join or interact.
  • Extensible Commands: Community members can propose and add new commands.
  • Open Source Collaboration: Follow our contribution guidelines to enhance the bot!

How to Get Started

1. Fork & Clone the Repository

To get started, fork this repository on GitHub and then clone it to your local system.

Fork the Repository:

Click the "Fork" button on this repo to create your own copy.

Clone Your Fork:

Open a terminal and run the following command:

git clone https://github.com/<your-username>/Dev-Automators-Telegram-Bot.git
cd Dev-Automators-Telegram-Bot

2. Get Your Bot Token from BotFather

To run this bot, you'll need a bot token from Telegram's BotFather.

Steps to Get Your Token:

  1. Open BotFather in Telegram.
  2. Start a chat and send the command /newbot.
  3. Follow the prompts to set a name and username for your bot.
  4. Once created, BotFather will provide you with a bot token in this format:
    123456789:ABCDEFghijklmnopqrstuvwxyz
    
  5. Save this token, as you will need it to run the bot.

3. Set Up Your Environment

Once you have your bot token, create a .env file in the project directory (Dev-Automators-Telegram-Bot folder) and paste your bot token like this:

BOT_TOKEN=123456789:ABCDEFghijklmnopqrstuvwxyz

This ensures that your bot token remains secure and isn't exposed in the source code.

Install Required Packages

Run the following command to install all dependencies:

pip install -r requirements.txt

4. Set Up Ngrok for Webhooks (Not needed for now, skip it)

If your bot uses webhooks, you'll need to expose your local server to the internet using Ngrok.

1. Create an Ngrok Account

  • Sign Up:
    Visit: Ngrok Signup

  • Email Verification & Details:
    After verifying your Gmail, you'll be prompted to enter some details. Use the following:

    • How would you describe yourself? β†’ Student / Hobbyist (Building for fun)
    • What are you interested in using ngrok for? β†’ Testing Webhooks on local
    • Are you using ngrok for? β†’ Development
  • Continue:
    Click the Continue button to proceed.

2. Download and Install Ngrok

  • Choose Your Platform:

  • Download the Zip File:
    Under the Installation section of the ngrok dashboard, click on the Download tab. A ZIP file will begin downloading.

  • Extract the File:
    Extract the ZIP file. You will find a single file named ngrok (or ngrok.exe on Windows).

  • Move the File:
    Cut and paste the ngrok file into your bot project's folder (Dev-Automators-Telegram-Bot folder).

  • Launch Ngrok:
    Open the Ngrok application from your project folder.

3. Configure Your Authentication Token

  • Find Your Auth Token:
    Go back to your Ngrok dashboard (Ngrok Dashboard) and locate the command under the configuration section. It will look similar to:
    ngrok config add-authtoken <token>
  • Apply the Token:
    Copy this command, paste it into the Ngrok terminal, and press Enter. (This is a one-time setup process.)

4. Start Tunneling Your Local Server

  • Open a Tunnel:
    In your terminal, run the following command:
    ngrok http 5000
    The 5000 port is set as the default. If your Flask (or similar) server is running on a different port, replace 5000 with the correct port number:
    ngrok http <PORT>
    (Replace <PORT> with the port your local server is using.)

By following these steps, you'll successfully set up Ngrok to expose your local development server. πŸŽ‰


How to Contribute

To contribute, please follow our standard open-source workflow:

1. Create a New Branch

Always work on a new branch for your contribution.

git checkout -b add-new-command

2. Read the Contribution Guidelines

Please review our CONTRIBUTORS.md for detailed instructions and the expected format for your contributions.

3. Make Your Changes

  • Update or add command functionality in the code.
  • Append your contribution in the designated file (see below in the CONTRIBUTORS.md).

4. Commit and Push Your Changes

git add .
git commit -m "Added new command: [Your Command Name] -> by [Your Name] - [Your Roll Number]"
git push origin add-new-command

5. Submit a Pull Request

Go to your fork on GitHub and open a pull request to merge your changes into the main repository.


Guidelines

  • Be Professional: All contributions must be legal and free from slang or inappropriate language.
  • Follow the Format: Adhere to the guidelines provided in CONTRIBUTORS.md for adding your details or new commands.
  • Communication: If you encounter any issues or have questions, please ask in the group.

Happy contributing and happy coding! πŸš€
β€” DevInnovators Team

About

πŸ€– Dev-Automators-Telegram-Bot is a community-driven Telegram bot that welcomes users and supports extensible commands. It offers webhook & long-polling support, making it flexible for automation. Open-source and beginner-friendly, it encourages collaboration while ensuring a professional and structured coding environment. πŸš€βœ¨

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%