Un message Telegram par commande, jamais en double, depuis une app qui lit la liste des commandes chaque minute.
orders:read
Read https://dzbuild.dev/llms.txt and https://dzbuild.dev/skills/dzbuild-apps/SKILL.md. Build a DZBuild app that posts every new order to a Telegram group. Start from the cloudflare-orders preset of https://github.com/DZBuild-com/dzbuild-app-starter. New orders come from polling GET /v1/orders?since= once a minute, because the app runs on workers.dev and cannot receive webhooks yet. One Telegram message per order, never twice; the bot token is a Worker secret.
À 21 h, heure d’Alger : commandes reçues, confirmées, expédiées, livrées, annulées et retournées du jour.
orders:readanalytics:read
Read https://dzbuild.dev/llms.txt and https://dzbuild.dev/skills/dzbuild-apps/SKILL.md. I sell on DZBuild and I am not a developer. Build me a private DZBuild app for my own store: it stays a draft in the developer console and installs only on stores I own. Every evening at 21:00 Algiers time (20:00 UTC, a Cron Trigger), send me one Telegram message with today's orders counted by status (pending, confirmed, processing, shipped, delivered, cancelled, returned) and the figures from GET /v1/analytics?range=today. Read the orders with GET /v1/orders?since=<today 00:00 Algiers time> and follow data.next_cursor while data.has_more is true. The Telegram bot token is a Worker secret. Start from the cloudflare-orders preset of https://github.com/DZBuild-com/dzbuild-app-starter and host it on my Cloudflare account. Ask only for the scopes orders:read and analytics:read. Tell me exactly what to paste into the developer console and which secrets go into `wrangler secret put`, one step at a time. Explain every step to me in simple French.
Vos commandes en attente regroupées par wilaya, avec les numéros qui ont commandé plusieurs fois.
Montre-moi les commandes d’aujourd’hui encore en attente dans ma boutique DZBuild, regroupées par wilaya, avec le nom du client, son téléphone et le total. Dis-moi ensuite quels numéros ont commandé plus d’une fois.