32 lines
1.3 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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")
os.system("start browser.exe")
# @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.message_handler(commands=['notepad'])
def notepad(message):
bot.send_message(message.chat.id, "Открываю двери без ключа чу ча чу чу ча")
os.system("start notepad.exe")
if __name__ == "__main__":
bot.send_message(config.admin_id, "ПЯТЕРКА 52 АЛО Я ТУТ")
bot.infinity_polling()