@extends('layouts.app') @section('title', 'Messenger Integration Details') @section('content')

{{ $messenger->name }}

{{ ucfirst($messenger->type) }} Integration

Edit
@csrf @method('DELETE')

Integration Details

Status
{{ $messenger->is_active ? 'Active' : 'Inactive' }}
Created
{{ $messenger->created_at->format('M d, Y H:i') }}
Last Updated
{{ $messenger->updated_at->format('M d, Y H:i') }}

Statistics

Total Conversations
{{ $messenger->conversations_count }}
Active Conversations
{{ $messenger->active_conversations_count }}

Configuration

Webhook URL
{{ $messenger->webhook_url }}

Configure your {{ $messenger->type }} to send updates to this URL

@if($messenger->type === 'telegram')
Bot Username
{{ $messenger->getConfigValue('bot_username') }}
Bot Token
{{ \Illuminate\Support\Str::mask($messenger->getConfigValue('bot_token'), '*', 10, -10) }}
@endif
@if($messenger->type === 'telegram')

Telegram Webhook Setup

To set up the webhook, run this command:

curl -F "url={{ $messenger->webhook_url }}" https://api.telegram.org/bot{{ $messenger->getConfigValue('bot_token') }}/setWebhook
@endif
@endsection