ASFbot
Telegram Bot coded in python to control your ASF instance.
Control your ASF instance anywhere.
Usage:
- Executable: (python3) bot.py
- Arguments:
-token: Telegram API token given by @botfather (mandatory).-alias: Telegram alias of the bot owner. Only this user can send commands to ASF. (mandatory).-host: ASF IPC host (defaults to127.0.0.1)-port: ASF IPC listening port (defaults to1242)-password: ASF IPC password (if you have set one)-verbosity: Log verbosity (DEBUG, INFO, WARN, ERROR)
You can also use environment variables to configure the bot. Environment variables would override any command argument set. The naming is pretty self-explanatory:
TELEGRAM_BOT_TOKEN
TELEGRAM_USER_ALIAS
ASF_IPC_HOST
ASF_IPC_PORT
ASF_IPC_PASSWORD
Once the bot has started and verified the connection to
the ASF instance, you can send commands through your telegram bot using
standard ASF notation (i.e.:
!status asf) or Telegram notation (i.e.: /status asf).
The bot also reads messages containing Steam cd-keys. It will
automatically parse every key and activate them on your accounts with !redeem asf {{parsed_cdkey}} notifying you the process.Quickstart (with docker)
- Create a bot via @botfather.
- Copy and fill the
docker-compose.ymlexample below.
- Start it!
Notes
I recommend running it via its Docker image. Here it is an
example docker-compose.yml to run bot ASF and the bot on Docker. Copy
this to a file named
docker-compose.yml, fill the appropriate missing data:- (1) your ASF/config directory path (remember to include in your ASF.json a permissive IPCPrefix like
http://*:1242/)
- (2) Your Telegram bot token
- (3) Your Telegram user alias
Run
docker-compose up -dP.S.: ARMv7 and ARM64 docker builds are untested. Did you try them? Contact me!
docker-compose.yml
🤗 总结归纳
总结文章的内容
📎 参考文章
ASFBot
dmcallejo • Updated May 10, 2026
- 作者:嘻咦啊呀
- 链接:https://zhcn.xyz/article/Control%20your%20ArchiSteamFarm%20with%20Telegram
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
相关文章






![[转载]iOS 定位修改 · 小白保姆级教程(Shadowrocket 小火箭)](https://www.notion.so/images/page-cover/woodcuts_2.jpg)