Вот ошибка когда нет юзернейма: 2019-11-29 12:24:40,619 - telegram.utils.promise - ERROR - An uncaught error was raised while running the promise Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/telegram/utils/promise.py", line 57, in run self._result = self.pooled_function(*self.args, **self.kwargs) File "telebot.py", line 317, in man username = re.sub("[_]", "\_", update.message.from_user.username) File "/usr/local/lib/python3.7/re.py", line 192, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or bytes-like object
Обсуждают сегодня