We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What version of pyTelegramBotAPI are you using? 4.0.0
What OS are you using? GNU/Linux 5.14.2-arch1-2
What version of python are you using? 3.9.7
import telebot bot = telebot.TeleBot(token) search = [] @bot.message_handler(commands='start') def start(message): bot.send_message(message.chat.id, 'Just use /find command!') @bot.message_handler(commands='find') def find(message): if message.chat.id not in search: bot.send_message(message.chat.id, 'Finding...') search.append(message.chat.id) print(search) else: bot.send_message(message.chat.id, 'Shut up!') @bot.message_handler(commands='stop') def stop(message): if message.chat.id in search: bot.send_message(message.chat.id, 'Stopping...') search.remove(message.chat.id) print(search) else: bot.send_message(message.chat.id, 'You are not in search!') bot.polling()
The text was updated successfully, but these errors were encountered:
"commands" should be LIST
(commands=['start'])
Sorry, something went wrong.
No branches or pull requests
System info
What version of pyTelegramBotAPI are you using?
4.0.0
What OS are you using?
GNU/Linux 5.14.2-arch1-2
What version of python are you using?
3.9.7
Code
Screenshot
The text was updated successfully, but these errors were encountered: