Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
@bot.message_handler(func=lambda message: True, content_types=['text'])
def echo_message(message):
if message.chat.type == "private":
# личка
if (message.chat.type == "group" or message.chat.type == "supergroup"):
# группа
if message.chat.type == "channel":
# канал
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question