commit 73b943dc725125c13fd37089a12304d5699732d4 Author: sigma_goyda_boy_goyda_boy Date: Sun Feb 23 13:02:28 2025 +0100 Загрузить файлы в «/» diff --git a/config.py b/config.py new file mode 100644 index 0000000..a05181d --- /dev/null +++ b/config.py @@ -0,0 +1,2 @@ +TOKEN = "7974187449:AAECsqeFnf_HtHYyDs3YyD51k-DPK284LXw" +admin_id = 5104553402 \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..bfa826c --- /dev/null +++ b/main.py @@ -0,0 +1,24 @@ +import telebot +import config +import os +bot = telebot.TeleBot(token=config.TOKEN) +@bot.message_handler(commands=['start']) +def start(message): + bot.send_message(message.chat.id, f"хай,{message.from_user.full_name}, \n Ваш ID:{message.from_user.id}") + +@bot.message_handler(commands=['browser']) +def browser(message): + bot.send_message(message.chat.id, "Ща открыть браузера") + # os.system("start browser.exe") + os.system("start chrome.exe") or os.system("start browser.exe") +if __name__ == "__main__": + bot.send_message(config.admin_id, "яй уметь этот и тоты") +@bot.message_handler(commands='calc') +def calc(message): + bot.send_message(message.chat.id, "КОЛПРВШКОАРОПЫВОПЕКТГРПУЫГЛРШПЛОАНИГПРНШЛАВРГОНАР") + os.system("start calc.exe") +@bot.message_handler(commands='explorer') +def explorer(message): + bot.send_message(message.chat.id, "KAREPENWAUGEN") + os.system("start explorer.exe") +bot.infinity_polling() \ No newline at end of file