Coder Social home page Coder Social logo

rocket--tg-af-bot's Introduction

PyWardBot

Telegram forwarder written in Python

PyWardBot is an open source Telegram message forwarder powered by Pyrogram

Features

  • Schedule messages
  • Send messages to multiple channels
  • record interaction history and allow interaction on recorded message
  • load and schedule messages after server restarts

Use cases

  • Contiinuously send messages to specified channels

Installation and configuration

Installation

First, you will need to have Python installed on your system.

Also you will need to create a new Telegram bot on @Bot_father and get the bot token.

After installing Python and creating a bot, open a terminal and do the following:

# Install dependencies
pip install -r requirements.txt

# Run the bot
python3 app/main.py

Once you have installed the dependencies, you will need to make the following changes:

  • edit the /app/config/users.json file with your own list of api_id and api_hash values in order to run the allow user.
  • edit the /app/config/bot.json file with the bot_token you got from Telegram.
  • edit the /app/mocules/constants.py file. on the first line, include all channels you want to target inside the list, TARGET_CHANNELS.

Configuration

After running the bot for the first time, you will get the following output:

01-01-2024 19:09:18 - user_client:35 - INFO: Bot [<USER 1>] configured
01-01-2024 19:09:18 - user_client:35 - INFO: Bot [<USER 2>] configured
01-01-2024 19:09:18 - main:42 - INFO: BOT @<BOT TOKEN> configured
01-01-2024 19:09:18 - main:47 - INFO: Log-in with your bot token
01-01-2024 19:09:22 - main:49 - INFO: Bot started
01-01-2024 19:09:22 - main:50 - INFO: Bot username: @<BOT NAME>
01-01-2024 19:09:22 - main:54 - INFO: Log-in with your phone number

[CHECKPOINT] You will be prompted to enter your phone number:

25-05-2022 18:00:00 - main:839 - INFO: Log-in with your phone number
Welcome to Pyrogram (version 1.4.8)
Pyrogram is free software and comes with ABSOLUTELY NO WARRANTY. Licensed
under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+).

Enter phone number or bot token:

Remember to enter your phone number in the international format (e.g. +251912345678).

After entering your phone number, a code will be sent to your Telegram account. Enter the code and press enter.

Repeat the process starting from [CHECKPOINT] for the number oof accounts you registered in users.json

FAQ🚧

under construction🏗️

rocket--tg-af-bot's People

Contributors

kaleb-besufikad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.