Skip to content

Bahhh123/botpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Based Checker Bot For Telegram

Python Based Card Checker Multi Functional Bot For Telegram

Features

  • 10 + Gates
  • Code In Python
  • etc.

Demo

<iframe src='https://gfycat.com/ifr/FavoriteThoseCrocodileskink' frameborder='0' scrolling='no' allowfullscreen width='640' height='403'></iframe>

Deployment

Download Python

Getting Redis Endpoint And Password

  • Make account on Redis database
  • Make subscription with any name and RedisJSON as module get public Endpoint
  • Copy Public endpoint. (looks like redis-15602.c114.us-east-1-4.ec2.cloud.redislabs.com:15602) get password
  • Copy Default user password. (looks like 1YnkEFFxrK7VrEWKo1AjuDW2LwAsEcWn)
Examples:
REDIS_URL = 'redis-15602.c114.us-east-1-4.ec2.cloud.redislabs.com'
REDIS_PORT = 15602
REDIS_PASS = '1YnkEFFxrK7VrEWKo1AjuDW2LwAsEcWn'

Replace This Examples With Your Public endpoint and password

Getting MongoDB Connection Url

  • Make account on MongoDB
  • Then make a free database with any name.
  • Add 0.0.0.0 as a ip and your username and password Browse Collections
  • Click On Browse Collections. Create Database
  • Click On Create Database.
  • Paste Database name to bot and Collection name to main.
  • Click on Create
  • Then come back to main screen
  • Click on Connect then Click on Choose a connection method
  • Copy your connection string. (looks like mongodb+srv://root:<password>@cluster0.jwf5a.mongodb.net/myFirstDatabase?retryWrites=true&w=majority)
Examples:
# Replace <password> with the password for the root user. Replace myFirstDatabase with the name of the database that connections will use by default. Ensure any option params are [URL encoded](https://dochub.mongodb.org/core/atlas-url-encoding).
MONGO_URI = 'mongodb+srv://root:[email protected]/myFirstDatabase?retryWrites=true&w=majority'
#Dont Use This URI.

Requirements

  • PC, LAPTIOP, etc.

  • PYTHON installed in locally

  • MONGO_URI, REDIS_URL, REDIS_PORT and REDIS_PASS

  • BRAIN

    1. Get Bot token from Botfather (The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11).
    2. Login to your Telegram account with the phone number of the developer account to use.
    3. Click under API Development tools.
    4. A Create new application window will appear. Fill in your application details. There is no need to enter any URL, and only the first two fields (App title and Short name) can currently be changed later.
    5. Click on Create application at the end. Remember that your API hash is secret and Telegram won’t let you revoke it. Don’t post it anywhere!

Note

This API ID and hash is the one used by your application, not your phone number. You can use this API ID and hash with any phone number or even for bot accounts.

Get API_ID AND API_HASH from my.telegram.org

Deployment

Make Sure You have: MONGO_URI, REDIS_URI, REDIS_PASS, REDIS_PORT, API_ID, API_HASH, BOT_TOKEN.

Connecting Database to bot

  • Open values.py
  • Edit as follows.

Adding API_ID , API_HASH, BOT_TOKEN

  • Open main.py
  • Edit as follows.

Starting Bot

pip install -r requirements.txt
python3 -m main.py

Authors

Support:

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages