Code Monkey home page Code Monkey logo

telegram-referral-bot's Introduction

Telegram Referral Bot

Help to add telegram accounts with referral code to bots which have referral system

Installation

pip install -r requirements.txt

Setup

1. Open .env file and edit values

Description for fileds

BOT_NAME - public name of bot without @ symbol (example_random_bot)

COUNT - amount of account which will be used, integer value

REFER_ID - your referal ID which you got from bot (t.me/example_random_bot?start=12345 , set only 12345)

DELAY_MIN - minimum delay in seconds between working each account

DELAY_MAX - maximum delay in seconds between working each account

AUTH - set 1 if you don't have sessions files in folder ./sessions otherwise 0

RUN - set 1 if you have session files and want start script

2. Put tokens into file tokens.txt in format

session_name:API_ID:API_HASH

(How get API_ID and API_HASH follow https://my.telegram.org autorize, create application and you will get credentials)

3. Put proxies into file proxy.txt

There are 3 diffrent format for proxies (ONLY SOCKS5)

NO PROXY (leave file empty)
IP:PORT
IP:PORT:LOGIN:PASSWORD

If you don't have session files in folder sessions you must set params AUTH=1 , RUN=1, otherwise AUTH=0, RUN=1

4. Run file bot.py

python bot.py

5. After run script you should autorize on each account then you will get session files into folder sessions and bot starts add with your referal code

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Involved libraries

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.