@extends('layouts.adminlte.adminlte') @section('title') Bot @endsection @section('content_header') @parent

Bot

@endsection @section('modals') @endsection @section('content') @yield('modals')
{{--

Firstly, add {{'@' . $bot_in_use_username}} to your channel/group, then type /start in {{'@' . $bot_in_use_username}} and add the channel/group from there. Then add the channel/group here.

--}}

You can add your channel/group by username (with or without the leading @) or by ID.

You want to add your channel/group by ID but you don't know its ID? Use this bot!

@if (auth()->user()->user_type == 'agent')
@elseif (auth()->user()->user_type == 'admin')
@endif @csrf

@if (auth()->user()->user_type == 'admin') @endif @foreach($channels as $channel) @if (auth()->user()->user_type == 'admin') @endif {{-- --}} @endforeach @foreach($groups as $group) @if (auth()->user()->user_type == 'admin') @endif @endforeach
Autopost Country ID Title UsernameAgent
{{cc2co($channel->country)}} {{$channel->channel_id}} {{$channel->title}} @if ($channel->username) {{'@' . $channel->username}} @endif {{$agents[$channel->agent_id]->name}}
{{cc2co($group->country)}} {{$group->group_id}} {{$group->title}} @if ($group->username) {{'@' . $group->username}} @endif {{$agents[$group->agent_id]->name}}
@endsection @section('css') @parent @endsection @section('js') @parent @if (auth()->user()->user_type == 'admin') @endif @endsection