diff --git a/hikka/langpacks/en.yml b/hikka/langpacks/en.yml index 65b8b37..ca1af47 100644 --- a/hikka/langpacks/en.yml +++ b/hikka/langpacks/en.yml @@ -229,7 +229,14 @@ presets: settings: name: "Settings" + choose_installation: "" installation: "ā–Ŗļø The installation is very easy! Just enter the following in your servers terminal:\n
sudo apt update && sudo apt upgrade -y && sudo apt install git && sudo apt install python3-pip && git clone https://github.com/coddrago/Heroku && cd Heroku && pip install -r requirements.txt && python3 -m hikka
\n😐 If you dont have sudo access, simply remove the initial steps.\n\n🄳 Lets go over a few arguments:\n\nšŸ” The --root argument allows you to run Heroku as a root user.\n\nšŸŒŽ The --no-web argument enables login to your account directly in the terminal, rather than through a link {}.lhr.life.\n\n🤲 However, if you want to migrate from hikariatama Hikka, download this module:\n
{prefix}dlm https://raw.githubusercontent.com/coddrago/modules/main/SwitchToHeroku.py
\nIt completely safe and will help you upgrade to Heroku automatically" + termux_install: "😲 How to install Heroku on Termux?\nā¬œļø Download Termux from the link . āš ļø The version from Play Market will not work!\nā¬œļø Copy the command into it: termux-wake-lock && export AIOHTTP_NO_EXTENSIONS=1 && pkg upgr -y && pkg install tur-repo && pkg update && pkg install python3.10 && pkg i wget ncurses-utils python3.10 -y && pkg update && pkg install openssl -y && pkg install git && clear && git clone https://github.com/coddrago/Heroku && cd Heroku && pip install -r requirements.txt && python3.10 -m hikka --no-web\nā¬œļø Answer "y" to everything the script asks\nā¬œļø Follow the instructions in the script.\n\nā¬œļø Where to get API_ID and API_HASH? šŸŽ¬ Video" + vds_install: "
sudo apt update && sudo apt upgrade -y && sudo apt install git && sudo apt install python3-pip && git clone https://github.com/coddrago/Heroku && cd Heroku && pip install -r requirements.txt && python3 -m hikka
" + railway_install: "Image for RailWay:\nhttps://railway.com/template/2YO_QL?referralCode=RfzFur\n\nBe careful! Any userbots are officially prohibited on RailWay, if your account is banned, neither the creator nor other people are to blame for this." + jamhost_install: "Proceed to @jamhostbot, type /pay and follow its instructions" + module_switch: "
dlm https://raw.githubusercontent.com/coddrago/modules/main/SwitchToHeroku.py
" + userland_install: "Install UserLAnd from the link\n\nOpen it, choose Ubuntu —> Minimal —> Terminal\n\nWait for the distribution to install, you can pour some tea\n\nAfter successful installation, a terminal will open in front of you, write there:\n
sudo apt update && sudo apt upgrade -y && sudo apt install python3 git python3-pip -y && git clone https://github.com/coddrago/Heroku && cd Heroku && sudo pip install -r requirements.txt && python3 -m hikka
\n\nAt the end of the installation, a link will appear, follow it and enter your account details to log in.\n\nVoila! You have installed Heroku on UserLAnd." too_many_args: "🚫 Too many args" blacklisted: "šŸ‘ Chat {} blacklisted from userbot" unblacklisted: "šŸ‘ Chat {} unblacklisted from userbot" diff --git a/hikka/modules/settings.py b/hikka/modules/settings.py index 3c5a9b5..167d37a 100644 --- a/hikka/modules/settings.py +++ b/hikka/modules/settings.py @@ -292,7 +292,9 @@ class CoreMod(loader.Module): args = utils.get_args_raw(message) - if not args: + if not args and not self.inline.form( + self.strings("choose_installation") + ): await self.client.send_file( message.peer_id, "https://imgur.com/a/HrrFair.png", @@ -309,5 +311,3 @@ class CoreMod(loader.Module): await utils.answer(message, self.strings["module_switch"]) elif "-u" in args: await utils.answer(message, self.strings["userland_install"]) - - await message.delete()