This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_KillSwitch/main.py
Stanislav Mykhailenko 1c510c1de8
Implement file manager
2023-02-01 19:38:20 +02:00

18 lines
408 B
Python

# Project: Telegram PC kill switch bot
# Author: Stanislav Mykhailenko
# License: Unlicense
import ctypes, sys
from googledrive import authenticate
from tg import startBot
def main() -> None:
if ctypes.windll.shell32.IsUserAnAdmin():
startBot()
else:
ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv), None, 1)
if __name__ == '__main__':
authenticate()
main()