Загрузить файлы в «/»
This commit is contained in:
commit
73b943dc72
2
config.py
Normal file
2
config.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
TOKEN = "7974187449:AAECsqeFnf_HtHYyDs3YyD51k-DPK284LXw"
|
||||||
|
admin_id = 5104553402
|
24
main.py
Normal file
24
main.py
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user