TypeError: can only join an iterable
.bot = telebot.TeleBot(config.TOKEN)
Myfile = open("id users.txt",'a')
def splitting(text):
Mylist = text.split(", ")
return "".join(rd.shuffle(Mylist))
@bot.message_handler(content_types=['text'])
def start_message(message):
bot.send_message(message.chat.id, splitting(message.text))
bot.polling(non_stop=True)
Myfile.close()