Skip to content

Sending Messages Bot is a powerful tool that allows you to send messages to different users directly from a database, all managed through another Telegram bot. With seamless integration and efficient message distribution, it simplifies communication with your audience.

Notifications You must be signed in to change notification settings

vladyslav-crunch/sending-messages-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sending-messages-bot

Sending Messages Bot is a powerful tool that allows you to send messages to different users directly from a database, all managed through another Telegram bot. With seamless integration and efficient message distribution, it simplifies communication with your audience.

Telegram Manager and Spam Bot Setup Guide

This guide will help you set up both a Telegram Manager and a Spam Bot using Python and the Telegram Bot API.

Manager Bot Setup

Step 1: Create a Manager Bot

  1. Open Telegram and search for "@BotFather" or use this link to open the BotFather chat.

  2. Start a chat with BotFather and create a new bot by following the instructions. Once your bot is created, you will receive a token. Copy this token; you'll need it later.

Step 2: Obtain API Credentials

  1. Visit the Telegram Apps page and log in with your Telegram account.

  2. Enter your phone number and follow the verification process to obtain your App api_id and api_hash. Also, provide an App title and a Short name.

Step 3: Configure the .env File

  1. Open the .env file in the root directory of your project.

  2. Modify the .env file, replacing <MANAGER_APP_ID>, <MANAGER_API_HASH>, <MANAGER_BOT_TOKEN> and <MANAGER_BOT_USERNAME> with the values you obtained in the previous steps:

  3. Save the .env file.

Spam Bot Setup

Step 1: Switch to the Spam Bot Account

  1. Log in to the Telegram account that you want to use for the Spam Bot.

Step 2: Obtain API Credentials

  1. Visit the Telegram Apps page and log in with your Telegram account.

  2. Enter your phone number and follow the verification process to obtain your Spam Bot's App api_id and api_hash. Provide an App title and Short name as well.

Step 3: Configure the .env File for Spam Bot

  1. Open the .env file in the root directory of your project.

  2. Modify the .env file to include the API credentials for the Spam Bot. Replace SPAM_BOT_USERNAME, <SPAM_BOT_APP_ID>, and <SPAM_BOT_API_HASH> with the values obtained for the Spam Bot

  3. Save the .env file.

Install Requirements

  1. Open your terminal or command prompt.

  2. Navigate to the root directory of your project.

  3. Run the following command to install all the required dependencies from requirements.txt:

pip install -r requirements.txt

Running the Bots

Running the Manager Bot:

  1. Open your terminal or command prompt.

  2. Navigate to the root directory of your project.

  3. Run the following command to start the Manager Bot:

py ./services/manager/manager.py

Running the Spam Bot:

  1. Open your terminal or command prompt.

  2. Navigate to the root directory of your project.

  3. Run the following command to start the Spam Bot:

py ./services/spambot/spam_bot.py
  1. Enter the phone number associated with the Spam Bot account and complete the authentication process.

About

Sending Messages Bot is a powerful tool that allows you to send messages to different users directly from a database, all managed through another Telegram bot. With seamless integration and efficient message distribution, it simplifies communication with your audience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages