English
Open in Telegram

Thread How can I schedule tasks in TGCloud serverless JavaScript, like deleting messages after 5 minutes, sending delayed remin…

4 messages · –
🕸
How can I schedule tasks in TGCloud serverless JavaScript, like deleting messages after 5 minutes, sending delayed reminders, and scheduled DMs, even when the bot is idle? Is there any solution for this? A serverless bot needs a wake-up trigger to run scheduled tasks while idle. Without a native trigger or external scheduler, it cannot reliably execute jobs at the scheduled time.
  1. B
    Wait for the event sleep(300) delete event The bot needs to be running the whole time to listen for the event, then to sleep and delete it
  2. M
    sleep тут не спасёт если инстанс реально засыпает , нужен отдельный триггер, который разбудит воркер в нужный момент. иначе напоминания и удаление будут плавать по времени
    1. A
      1. English discussion of bot development only.
BBot DevelopmentBot Development@BotDevelopment · group · Tech
1 006members11writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count