T
T
TupaBan Dev2020-10-17 23:13:35
Python
TupaBan Dev, 2020-10-17 23:13:35

ValueError: invalid literal for int() with base 10: '' What's wrong?

Hello everyone, what is the error in the code:

if message.chat.id > 0:
      bot.send_message(int(user), str(message.chat.id) + " (" + message.chat.first_name + ")" + ": " + message.text[message.text.find(' '):])


Error: ValueError: invalid literal for int() with base 10: ''

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
milssky, 2020-10-17
@milssky

empty string in user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question