Skip to content

deluxghost/simple-asf-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple ASF Bot

Send commands to ASF in Telegram.

Requirements

  • Python 3.6+
  • aiotg
  • ASF_IPC

Installation

git clone https://github.com/deluxghost/simple-asf-bot
cd simple-asf-bot
pip3 install -r requirements.txt

Configuration

Edit simple.conf:

[telegram]
bot_token = 987654321:XXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXX  ; The API token of your Telegram bot
admin_id = 123456789  ; Your Telegram number ID (not the username)
proxy = socks5://127.0.0.1:1234  ; Proxy URL for Telegram request, empty if you don't use proxy

[ipc]
address = http://127.0.0.1:1242/  ; ASF IPC address
password = PASSWORD  ; ASF IPC password

Getting Started

python3 simple.py simple.conf