Загрузить файлы в «/»
This commit is contained in:
commit
dabeba8033
2
config.py
Normal file
2
config.py
Normal file
@ -0,0 +1,2 @@
|
||||
TOKEN = "7755784518:AAExEc46j6-ZoNqvcD_8hCf5ZVQ5KqGAWLY"
|
||||
admin_id = 6233870703
|
23
main.py
Normal file
23
main.py
Normal file
@ -0,0 +1,23 @@
|
||||
import telebot
|
||||
import config
|
||||
import os
|
||||
bot = telebot.TeleBot(token=config.TOKEN)
|
||||
@bot.message_handler(commands=["start"])
|
||||
def start(messege):
|
||||
if messege.from_user.id == config.admin_id:
|
||||
bot.send_message(messege.chat.id, f"Привет, {messege.from_user.full_name}, \n Ваш id: {messege.from_user.id}")
|
||||
else:
|
||||
bot.send_messege(messege.chat.id, "Доступ закрыт")
|
||||
bot.infinity_polling()
|
||||
@bot.message_handler(commands=['start'])
|
||||
def browser(messege):
|
||||
if messege.from_user.id == config.admin_id:
|
||||
bot.send_message(messege.chat.id, f"Привет, {messege.from_user.full_name}, \n Ваш id: {messege.from_user.id}")
|
||||
os.system("start.browser.exe")
|
||||
else:
|
||||
bot.send_message(messege.chat.id, "доступ закрыт")
|
||||
|
||||
|
||||
if __name__== "__main__":
|
||||
bot.send_messege(config.admin_id, "я умею это и это")
|
||||
bot.infinity_polling()
|
Loading…
x
Reference in New Issue
Block a user