One file pyinstaller compilation:
-
with separated .env file settings
pyinstaller GPT_telebot.py --onefile --copy-metadata magic_filter
-
or if this file will be included in execution file, unlock
#application_path = sys._MEIPASS
, thenpyinstaller GPT_telebot.py --onefile --add-data '.env;.' --copy-metadata magic_filter