Answer the question
In order to leave comments, you need to log in
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, 'Отлично!Вы успешно подписались на рассылку ')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question