Skip to content
This repository has been archived by the owner on Oct 11, 2018. It is now read-only.

savely-krasovsky/ProxyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProxyBot

Ready to deploy SOCKS5 server and Telegram Bot with embedded database to store users credentials. Great for deployment and using in small communities and chats.

Config

To start using bot you need _config.yml file:

# Required params
token: telegram_bot_token
addr: fdqn_or_ip

# Optionally you can change port, but 1080 is default
port: 1080

# In private mode, bot will require adding user manually, else it will just register anyone automatically
private: true

# Also you can change limit of maximum users, 100 is default
limit: 100

# Connections limit per user
connsperuser: 10

# Setting admin id will give access to admin commands
adminid: 123456

# Only for development with restricted api.telegram.org
proxy:
    addr: fdqn_or_ip
    port: 1080
    username: user
    password: pass
    
# Verbose logs
verbose: false

Commands

  • /start - automatically registers new user (if bot is not in private mode) or just shows you actual credentials
  • /redeem {invitation code} - redeems invitation code and registers user
  • /update {username} {password} - updates user's creds, without args generates default pair
  • /remove - totally removes user from database

Admins only:

  • /make_invitation - makes invitation that can be redeemed only once

About

Ready to deploy SOCKS5 server and Telegram Bot with embedded database to store users credentials.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages