A
A
ARSENIY_TR2021-10-11 13:33:24
Bots
ARSENIY_TR, 2021-10-11 13:33:24

The bot does not respond to messages, but it does respond to commands. What's wrong?

Libraries
import telebot
import config
import random
import telebot
from telebot import types
I have command handlers that work great.
@bot.message_handler(commands=['ALL'])
def set_All(message):
global is_send_All
global is_send_N
global is_send_V
global is_send_P
is_send_All=True
bot.send_message(Here id,'I will send to all groups')

But handler
@ bot.message_handler(content_types = ['text'])
def rassilkap(message):
print(message.chat.id)
global is_send_All
global is_send_1
It does not react in any
way. Unfortunately, it does not react to other types either. The bot has access to messages.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question