@extends('crm.layouts.master') @section('title','Messaging') @section('page-css') @endsection @section('main-content')

Messaging

Configure the Telegram bot that forwards CRM events to your team group.

@if(session('success'))
{{ session('success') }}
@endif
@csrf {{-- Telegram Bot Setup --}}
Telegram Bot Configuration
Your bot token from @BotFather. Already pre-filled with @allstocktrading_bot.
Negative number for groups/supergroups, e.g. -1001234567890.
How to get the Group ID:
  1. Add @allstocktrading_bot to your Telegram group as an admin.
  2. Send any message in the group.
  3. Open in browser: https://api.telegram.org/bot8906230124:AAGvSbq-kiNr57VyBN7izjgKkkB-kTsqtzw/getUpdates
  4. Look for "chat":{"id":-100xxxxxxxxxx} — that is your Group ID.
{{-- Bot Commands & Webhook --}}
Bot Commands & Webhook

Register the webhook so the bot can receive commands in your Telegram group. After registering, add @allstocktrading_bot to your group and type a command.

Available Commands
/groupid Bot replies with the current group's Chat ID — paste it into the Group Chat ID field above
/status Bot replies with the current notification settings and which events are active
/help List all available bot commands
{{-- Notification Toggles --}}
Notification Events

Choose which events trigger a Telegram message to your group.

Help Desk Ticket
Client submits a support ticket from portal
Contact Us Form
Visitor submits the website contact form
New Client Registration
A new lead is created in the system
New Deposit
A deposit is recorded for a client
KYC Document Submitted
Client uploads identity documents
Trade Opened
Client opens a new CFD/spot trade
Binary Option Placed
Client places a binary options trade
Client Chat Message
Client sends a message via portal chat
@endsection @section('bottom-js') @endsection