I am runnig my code but it doesnt work:
import telebot
import webbrowser
import passgenerator
bot = telebot.TeleBot(“7497440348:AAEzg7LC75MH2NggSXK0u45gy3BV7W1ZPt4”)
@bot.message_handler(commands=[‘start’])
def main(message):
bot.send_message(message.chat.id,f”Привет {message.from_user.first_name}!”)
@bot.message_handler(commands=[‘site’,’website’])
def site(message):
webbrowser.open(“https://www.codewars.com/dashboard”)
@bot.message_handler(commands=[‘generate_new_pass’])
def generate(message):
password = passgenerator.generate_pass()
bot.send_message(message.chat.id,f”Ваш рароль:{password}”)
bot.polling(none_stop=True)
I dont know what i should do
Darim Sultanov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.