codered
Speed Demon
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
300 XP
[0].text.strip()
return comment_text
@app.on_message(filters.group)
def comment_sender(client, message):
if message.caption or message.text:
post_text = message.caption if message.caption else message.text
comment = generate_comment(post_text)
message.reply_text(comment, reply_to_message_id=message.id)
logger.info(f"Comment: {comment}")
else:
logger.info("There is no text in the comment.")
if __name__ == '__main__':
logger.info(f"Bot is running")
app.run()
return comment_text
@app.on_message(filters.group)
def comment_sender(client, message):
if message.caption or message.text:
post_text = message.caption if message.caption else message.text
comment = generate_comment(post_text)
message.reply_text(comment, reply_to_message_id=message.id)
logger.info(f"Comment: {comment}")
else:
logger.info("There is no text in the comment.")
if __name__ == '__main__':
logger.info(f"Bot is running")
app.run()