refactor(stars): simplify reply format and adjust delay
Build and Push (dev) / build (push) Successful in 37s
Build and Push (main) / build (push) Successful in 34s

This commit is contained in:
2026-08-23 07:45:36 +05:00
parent b8bb61f071
commit 9d72df1ef6
+3 -4
View File
@@ -286,13 +286,12 @@ class TelegramStarsBot:
if poster_user_id:
replies = self.config._load_replies()
for reply_options in replies:
await asyncio.sleep(self.config.api_delay)
reply_message = f"[userids={poster_user_id};align=left]{random.choice(reply_options)}[/userids]"
reply_message = random.choice(reply_options)
await self.lolz_api.create_comment(post_id, reply_message)
await asyncio.sleep(self.config.api_delay)
if self.notification_bot:
await self.notification_bot.success(
link=f"https://t.me/{channel}/{message_id}",