Bot for Notifications and Broadcasts in Mobile App

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Bot for Notifications and Broadcasts in Mobile App
Simple
~2-3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1054
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Implementing Bot for Notifications and Broadcasts in Mobile Application

Telegram bot as broadcast channel works better than email: open rate 70–90% vs 20–25%. But sending 50,000 messages at once means Telegram bans bot for flood. Correct broadcast implementation accounts for rate limits and job queue.

Telegram Bot API Limits You Can't Ignore

Telegram allows maximum 30 messages per second for regular bot, no more than 20 messages per minute in single chat. Exceeding returns 429 Too Many Requests with retry_after field.

So 50,000 recipients = minimum ~28 minutes pure sending at correct rate limiting. Simple loop with sendMessage fails on first sizable broadcast.

Correct approach: job queue (Bull + Redis or RabbitMQ). Each message — separate queue task, worker processes at controlled speed (25 tasks/sec with exponential backoff on 429).

Broadcast System Architecture

Server: Node.js + Bull Queue + Redis. Admin via mobile app creates broadcast (text, media, audience segment) → task enters queue → worker sends at proper speed → broadcast status updates in real time.

Mobile app — management panel: creating broadcast with rich text editor, selecting audience segments, scheduling by time, viewing stats (sent/delivered/errors).

Audience segments stored in PostgreSQL: tags, activity last N days, interface language. SQL query forms chat_id list for segment right before sending.

Push Notifications in Mobile App for Admin

When broadcast completes or error occurs (e.g., bot temporarily blocked), app notifies admin. Standard FCM push:

  • "Broadcast #42 completed: 48,231 / 50,000 delivered" — type normal
  • "Error: bot blocked by users (>30%)" — type high

On client (Flutter) use flutter_local_notifications for FCM notifications in foreground state, firebase_messaging for background/terminated.

Broadcast Analytics

Basic metric — delivery rate. Telegram doesn't return read confirmation (no read receipts for bot messages in private chats), but returns errors: 403 Forbidden — user blocked bot, 400 Bad Request: chat not found — user deleted account.

These errors auto-mark users inactive and exclude from next broadcasts — important for database hygiene.

Full system development (server + mobile management app) — 3–5 weeks. Integrating broadcast module into existing bot and app — 1–2 weeks.