import telebot import random TOKEN = 'REDACTED - PLEASE CHANGE' bot = telebot.TeleBot(TOKEN) responses = [ "مرحبًا! كيف يمكنني مساعدتك اليوم؟", "مرحبًا بك! لا تتردد في طرح أي سؤال.", "مرحبًا في بوتنا! نتمنى أن تستمتع بتجربتك.", ] @bot.message_handler(commands=['start']) def handle_start(message): random_response = random.choice(responses) bot.send_message(message.chat.id, random_response) bot.polling()
Hey @SlHlSlHy welcome to the forums!
Thank you for your post and sorry that you are experiencing issues. However, we may not be able to help you with this issue if you do not complete the template fields fully.
Without a code excerpt and/or the link to your Repl there won’t be much we can do to help you. A screenshot of the expected output would also be appreciated.
The more information you provide at the start, the easier it will be to identify the problem.
not sure what the issue is, but it looks like you did not add your token. See below.
Try adding a token and see if whatever error you are getting continues.
They did but us moderators edited it out and hid the edit so people cant take their token and use it themselves