رسائل RCS
RCS (خدمات الاتصال الغنية) هو الجيل التالي من المراسلة لأجهزة Android، ويوفر وسائط غنية وتفاعلية وميزات متقدمة تتجاوز SMS التقليدية.
نظرة عامة
يوفر RCS إمكانات مراسلة محسّنة:
- وسائط غنية (صور، فيديو، GIF)
- أزرار وشرائط دوّارة تفاعلية
- إشعارات القراءة ومؤشرات الكتابة
- حدود أعلى لعدد الأحرف (حتى 3072 حرفاً)
- تتبع أفضل للتسليم
- تعريف مرسل بعلامة تجارية
التوافر
- المنصة: أجهزة Android فقط
- الشبكة: يتطلب دعم RCS من مشغّل الاتصالات
- الاحتياط: يتحول تلقائياً إلى SMS إذا كان RCS غير متاح
رسالة RCS أساسية
الطلب
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your RCS message text with rich formatting"
}
المعاملات
| المعامل | النوع | مطلوب | الوصف |
|---|---|---|---|
from | string | نعم | معرّف مرسل أبجدي رقمي |
to | string | نعم | رقم هاتف المستلم (E.164) |
type | string | نعم | يُضبط على "rcs" |
text | string | نعم | محتوى الرسالة (حتى 3072 حرفاً) |
messageData | object | لا | وسائط غنية وأزرار |
أنواع الرسائل
نص فقط
رسالة نصية بسيطة بحد أحرف موسّع:
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Welcome to our service! RCS allows us to send much longer messages with rich formatting and interactive elements."
}
نص + صورة
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Check out our new product!",
"messageData": {
"media": {
"url": "https://example.com/product.jpg",
"type": "image/jpeg",
"height": 600,
"width": 800
}
}
}
نص + صورة + زر
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Summer Sale - Up to 50% off!",
"messageData": {
"media": {
"url": "https://example.com/sale-banner.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Shop Now",
"action": {
"type": "openUrl",
"url": "https://example.com/sale"
}
}
]
}
}
نص + فيديو
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Watch our product demo",
"messageData": {
"media": {
"url": "https://example.com/demo.mp4",
"type": "video/mp4",
"thumbnail": "https://example.com/thumbnail.jpg"
}
}
}
نص + أزرار متعددة
{
"from": "YourService",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your order #12345 is ready for pickup",
"messageData": {
"buttons": [
{
"text": "Track Order",
"action": {
"type": "openUrl",
"url": "https://example.com/track/12345"
}
},
{
"text": "Contact Support",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
},
{
"text": "Cancel Order",
"action": {
"type": "openUrl",
"url": "https://example.com/cancel/12345"
}
}
]
}
}
شريط RCS الدوّار
اعرض عدة عناصر في شريط دوّار قابل للتمرير:
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Featured Products",
"messageData": {
"carousel": {
"cards": [
{
"title": "Product A",
"description": "Premium quality product",
"media": {
"url": "https://example.com/product-a.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Buy Now",
"action": {
"type": "openUrl",
"url": "https://example.com/product-a"
}
},
{
"text": "Details",
"action": {
"type": "openUrl",
"url": "https://example.com/product-a/details"
}
}
]
},
{
"title": "Product B",
"description": "Best seller",
"media": {
"url": "https://example.com/product-b.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Buy Now",
"action": {
"type": "openUrl",
"url": "https://example.com/product-b"
}
}
]
}
]
}
}
}
إجراءات الأزرار
فتح URL
{
"text": "Visit Website",
"action": {
"type": "openUrl",
"url": "https://example.com"
}
}
الاتصال برقم هاتف
{
"text": "Call Us",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
}
إرسال الموقع
{
"text": "Share Location",
"action": {
"type": "shareLocation"
}
}
حدث تقويم
{
"text": "Add to Calendar",
"action": {
"type": "createCalendarEvent",
"title": "Appointment",
"startTime": "2025-01-25T14:00:00Z",
"endTime": "2025-01-25T15:00:00Z"
}
}
مواصفات الوسائط
الصور
- الصيغ: JPEG وPNG وGIF
- الحجم الأقصى: 2MB
- الدقة الموصى بها: 800x600 أو 1200x800
- نسبة الأبعاد: 16:9 أو 4:3
الفيديو
- الصيغ: MP4 و3GP
- الحجم الأقصى: 10MB
- المدة القصوى: دقيقتان
- الدقة الموصى بها: 1280x720
الصوت
- الصيغ: MP3 وAAC
- الحجم الأقصى: 5MB
- المدة القصوى: 5 دقائق
الاحتياط إلى SMS
يتحول RCS تلقائياً إلى SMS عندما:
- لا يدعم المستلم RCS
- يكون RCS معطلاً على جهاز المستلم
- لا تدعم الشبكة RCS
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Check out our new product!",
"messageData": {
"media": {
"url": "https://example.com/product.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Shop Now",
"action": {
"type": "openUrl",
"url": "https://example.com/shop"
}
}
]
},
"fallback": {
"type": "sms",
"text": "Check out our new product! Visit: https://example.com/shop"
}
}
حالات الاستخدام
التجارة الإلكترونية
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your order has been shipped!",
"messageData": {
"media": {
"url": "https://example.com/package.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Track Package",
"action": {
"type": "openUrl",
"url": "https://example.com/track/ABC123"
}
},
{
"text": "Contact Support",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
}
]
}
}
الخدمات المصرفية
{
"from": "YourBank",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Low balance alert: Your account balance is $50",
"messageData": {
"buttons": [
{
"text": "View Balance",
"action": {
"type": "openUrl",
"url": "https://bank.example.com/balance"
}
},
{
"text": "Transfer Money",
"action": {
"type": "openUrl",
"url": "https://bank.example.com/transfer"
}
}
]
}
}
السفر
{
"from": "YourAirline",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your flight is departing in 3 hours",
"messageData": {
"media": {
"url": "https://example.com/boarding-pass.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Check-in",
"action": {
"type": "openUrl",
"url": "https://airline.example.com/checkin"
}
},
{
"text": "Add to Calendar",
"action": {
"type": "createCalendarEvent",
"title": "Flight Departure",
"startTime": "2025-01-25T10:00:00Z"
}
}
]
}
}
أفضل الممارسات
المحتوى
- ✅ استخدم صوراً عالية الجودة (800x600 كحد أدنى)
- ✅ اجعل نص الأزرار قصيراً (2-3 كلمات)
- ✅ وفّر احتياطاً عبر SMS للمحتوى الغني
- ✅ اختبر على أجهزة Android مختلفة
- ❌ لا تتجاوز 4-5 أزرار لكل رسالة
- ❌ تجنب ملفات الفيديو الكبيرة (>5MB)
الوسائط
- استخدم عناوين HTTPS لجميع الوسائط
- حسّن الصور للهاتف المحمول
- أدرج نصاً بديلاً لإمكانية الوصول
- اختبر عناوين URL للوسائط قبل الإرسال
الأزرار
- 4 أزرار كحد أقصى لكل رسالة
- نص دعوة إلى اتخاذ إجراء واضح
- اختبر جميع إجراءات الأزرار
- فكّر في بديل للإجراءات غير المتاحة
العلامة التجارية
- استخدم معرّف مرسل متّسقاً
- أدرج شعار العلامة التجارية عند الاقتضاء
- حافظ على صوت العلامة التجارية ونبرتها
- تأكد من الاتساق البصري
حالة التسليم
يوفر RCS تتبعاً محسّناً للتسليم:
- أُرسلت (Sent): أُرسلت الرسالة إلى مشغّل الاتصالات
- سُلّمت (Delivered): سُلّمت الرسالة إلى الجهاز
- قُرئت (Read): فتح المستلم الرسالة
- فشلت (Failed): فشل التسليم وتم تفعيل الاحتياط
تحقق من الحالة باستخدام نقطة نهاية الحالة.
الخطوات التالية
- رسائل Viber - مراسلة غنية بديلة
- رسائل SMS - مراسلة احتياطية
- التحقق من الحالة - تتبع التسليم
- استراتيجيات الاحتياط - إعداد قنوات احتياطية