Skip to content

Add Custom Preview Component for Telegram Provider #801

@nevo-david

Description

@nevo-david

Overview

The Telegram provider currently uses the default GeneralPreviewComponent instead of a platform-specific preview that matches Telegram's UI/UX.

Current State

  • Provider file: apps/frontend/src/components/launches/providers/telegram/telegram.provider.tsx
  • Using: withProvider(null, undefined, ...) - no custom preview component
  • Falls back to: GeneralPreviewComponent

Needed Implementation

Create a TelegramPreview component that:

  • Matches Telegram's message design (clean messenger layout with blue accents)
  • Shows proper chat bubble interface
  • Displays channel/group context with proper formatting
  • Shows Telegram-specific elements like views, reactions, forwards
  • Includes Telegram's distinctive blue theme and typography
  • Handles different message types (text, media, stickers)
  • Shows proper timestamp and delivery status

Reference

See existing implementations:

  • apps/frontend/src/components/launches/providers/medium/medium.provider.tsx (MediumPreview)
  • apps/frontend/src/components/launches/providers/devto/devto.provider.tsx (DevtoPreview)

Technical Details

  • Component should be added as second parameter in withProvider(null, TelegramPreview, ...)
  • Should implement FC<{ maximumCharacters?: number }> interface
  • Use useIntegration() hook to access post content and settings

Priority

Medium - Telegram is a major messaging platform with broadcasting features

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions