Traceback (most recent call last):
File "teles.py", line 2506, in <module>
bot.polling(none_stop=True)
File "/home/dir/.local/lib/python3.5/site-packages/telebot/__init__.py", line 394, in polling
self.__non_threaded_polling(none_stop, interval, timeout)
File "/home/dir/.local/lib/python3.5/site-packages/telebot/__init__.py", line 445, in __non_threaded_polling
self.__retrieve_updates(timeout)
File "/home/dir/.local/lib/python3.5/site-packages/telebot/__init__.py", line 280, in __retrieve_updates
self.process_new_updates(updates)
File "/home/dir/.local/lib/python3.5/site-packages/telebot/__init__.py", line 317, in process_new_updates
self.process_new_messages(new_messages)
File "/home/dir/.local/lib/python3.5/site-packages/telebot/__init__.py", line 339, in process_new_messages
self._notify_command_handlers(self.message_handlers, new_messages)
File "/home/dir/.local/lib/python3.5/site-packages/telebot/__init__.py", line 1802, in _notify_command_handlers
self._exec_task(message_handler['function'], message)
File "/home/dir/.local/lib/python3.5/site-packages/telebot/__init__.py", line 467, in _exec_task
task(*args, **kwargs)
File "teles.py", line 55, in start
ref_id = message.text.split("?start=")[1] #получаем id реферала
IndexError: list index out of range
get_id = message.text.split(' ')[1]
но все равно получаю
IndexError: list index out of range