M
M
menma_uzumakie2022-02-19 14:26:20
Python
menma_uzumakie, 2022-02-19 14:26:20

Why is no message displayed?

The message is not displayed after the command in the tg bot

@bot.message_handler(commands=['sub'])
def startJoin(message):
  if not str(message.chat.id) in joinedUsers:
    joinedFile = open('D:\\ras_bot\\joined.txt', 'a')
    joinedFile.write(str(message.chat.id) + '\n')
    joinedUsers.add(message.chat.id)
def mess(message):
  for user in joinedUsers:
    bot.send_message(user, message.text[message.text.find(' '):])
def subded(message):
  bot.send_message(m.chat.id, 'Отлично!Вы успешно подписались на рассылку ')

6210d319c7d31459609563.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2022-02-19
@SoreMix

What specific message should be displayed? There is not even a hint in the function to send anything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question