@QURON_OYATLARI2

@QURON_OYATLARI2

ob_start();

define('API_KEY', '685134822:AAEVwm1UOk9v5JJL_NqSrZI5rULF39VBU5w');


$admin = "474463665"; 


function bot($method,$datas=[]){

  $url = "https://api.telegram.org/bot".API_KEY."/".$method;

  $ch = curl_init();

  curl_setopt($ch,CURLOPT_URL,$url);

  curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);

  curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);

  $res = curl_exec($ch);

  if(curl_error($ch)){

    var_dump(curl_error($ch));

  }else{

    return json_decode($res);

  }

}

$update = json_decode(file_get_contents('php://input'));


$channel = $update->channel_post;

$channel_text = $channel->text;

$channel_mid = $channel->message_id;

$channel_id = $channel->chat->id;

$channel_user = $channel->chat->username;

$chanel_doc = $channel->document;

$channel_audio = $channel->audio;

$channel_audioTitle = $channel_audio->title;

$message_ch = $update->channel_post;

$message_ch_photo = $message_ch->photo;

$channel_id = $channel->chat->id;

$channel_poto = $channel->photo;


if($channel_audio or $channel_poto or $chanel_doc or $channel_text){

   

  $export = bot('exportChatInviteLink',

  ]);

  $a = $export->result;

  bot('editMessageCaption',[

    'caption'=>"[$a]".

    'parse_mode'=> 'Markdown',

    'reply_markup'=>json_encode([

      'inline_keyboard'=>[

        [['text'=>"🎅Do'stlarga ulashish🎅", "url"=>"https://t.me/share/url?url=$a"]],

      ]

    ])

    ]);

}

--Удалённый ккаунт

<?php

ob_start();

define('API_KEY', '685134822:AAEVwm1UOk9v5JJL_NqSrZI5rULF39VBU5w');


$admin = "474463665"; 


function bot($method,$datas=[]){

  $url = "https://api.telegram.org/bot".API_KEY."/".$method;

  $ch = curl_init();

  curl_setopt($ch,CURLOPT_URL,$url);

  curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);

  curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);

  $res = curl_exec($ch);

  if(curl_error($ch)){

    var_dump(curl_error($ch));

  }else{

    return json_decode($res);

  }

}

$update = json_decode(file_get_contents('php://input'));


$channel = $update->channel_post;

$channel_text = $channel->text;

$channel_mid = $channel->message_id;

$channel_id = $channel->chat->id;

$channel_user = $channel->chat->username;

$chanel_doc = $channel->document;

$channel_audio = $channel->audio;

$channel_audioTitle = $channel_audio->title;

$message_ch = $update->channel_post;

$message_ch_photo = $message_ch->photo;

$channel_id = $channel->chat->id;

$channel_poto = $channel->photo;


if($channel_audio or $channel_poto or $chanel_doc or $channel_text){

   

  $export = bot('exportChatInviteLink',

  ]);

  $a = $export->result;

  bot('editMessageCaption',[

    'caption'=>"[$a]".

    'parse_mode'=> 'Markdown',

    'reply_markup'=>json_encode([

      'inline_keyboard'=>[

        [['text'=>"🎅Do'stlarga ulashish🎅", "url"=>"https://t.me/share/url?url=$a"]],

      ]

    ])

    ]);

}

Report Page