Загрузить файлы в «/»

This commit is contained in:
sigma_goyda_boy_goyda_boy 2025-02-23 13:02:28 +01:00
commit 73b943dc72
2 changed files with 26 additions and 0 deletions

2
config.py Normal file
View File

@ -0,0 +1,2 @@
TOKEN = "7974187449:AAECsqeFnf_HtHYyDs3YyD51k-DPK284LXw"
admin_id = 5104553402

24
main.py Normal file
View File

@ -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()