Success make admin panel bot #488
Replies: 6 comments
-
you need to put the python file in same env file location . MY_TELEGRAM_BOT_TOKEN=594xxxx413:AAEC8xxxxxLuw9XEMlPA so you put telegram bot token so you in that bot can use to show or add users id and there budgets after add user you need to restart the main.py bot this env bot need to install python 13 , i use virtual enviroment to do that in windows 11 like this : go to same env directory and open terminal and do this : then run the envbot.py |
Beta Was this translation helpful? Give feedback.
-
here the code : https://github.com/khanfar/controlenvbot |
Beta Was this translation helpful? Give feedback.
-
This script now includes the commands /adduser, /deleteuser, and /editbudget, along with the original /showusers command. Each command has basic error handling and usage instructions here the code : https://github.com/khanfar/controlenvbot/tree/main |
Beta Was this translation helpful? Give feedback.
-
now i make another bot that control start and stop the main.py , because when i add user or edit user budget or delete user from telegram i need to stop the main.py and start again . so now i add remote start and stop main.py from telegram too ... so now im fully remotly can see all users , add users delete users , edit user budget . so when i like add user , i do after that stop then start . the bot of stop and start is here : https://github.com/khanfar/remote-on-off-python |
Beta Was this translation helpful? Give feedback.
-
Hi, i sucsess make admin panel bot that i can show and add users in env file and add there budget from telegram bot that put in same env file directory in python code,
here the code : https://github.com/khanfar/controlenvbot
Beta Was this translation helpful? Give feedback.
All reactions