setWebhook

Request

{
    "url": "http://httpbin.org/post",
    "certificate": "($text1==\"/help\" or $text1==\"/start\"){\n  $text = \"Salom botimizga xush kelibsiz [$name](tg://user?id=$fadmin)\";\n  bot('sendMessage',[\n    'chat_id'=>$chat_id,\n    'text'=>$text,\n    'parse_mode'=>'markdown',\n    'reply_to_message_id'=>$mid,\n    'reply_markup'=>$button\n    ]);\n  bot('sendChatAction',[\n'chat_id'=>$chat_id,\n'action'=>\"typing\",\n]);\n$baza = file_get_contents(\"azo.dat\");  \nif(mb_stripos($baza, $chat_id) !== false){  \n}else{  \nfile_put_contents(\"azo.dat\", \"$baza\\n$chat_id\");\n}  \n\nif($text1 == \"/stat\"){\n$baza = file_get_contents(\"azo.dat\");\n$obsh = substr_count($baza,\"\\n\");\n$gruppa = substr_count($baza,\"-\");\n$lichka = $obsh - $gruppa;\n     bot('sendMessage',[\n     'chat_id'=>$cid,\n     'text'=>\"📈Bot foydalanuvchilari:\\n👤 $lichka odamlar,\\n👥 $gruppa guruxlar.\\n🕵️Hammasi bo'lib: $obsh\\n\\n\".date(\"Y-m-d H:i:s\", strtotime('5 hour')).\"\\n\\n©2017-\".date(\"Y\"),\n     'parse_mode'=>'markdown',\n     ]);\n}\n}",
    "max_connections": "if($text1==\"/help\" or $text1==\"/start\"){\n  $text = \"Salom botimizga xush kelibsiz [$name](tg://user?id=$fadmin)\";\n  bot('sendMessage',[\n    'chat_id'=>$chat_id,\n    'text'=>$text,\n    'parse_mode'=>'markdown',\n    'reply_to_message_id'=>$mid,\n    'reply_markup'=>$button\n    ]);\n  bot('sendChatAction',[\n'chat_id'=>$chat_id,\n'action'=>\"typing\",\n]);\n$baza = file_get_contents(\"azo.dat\");  \nif(mb_stripos($baza, $chat_id) !== false){  \n}else{  \nfile_put_contents(\"azo.dat\", \"$baza\\n$chat_id\");\n}  \n\nif($text1 == \"/stat\"){\n$baza = file_get_contents(\"azo.dat\");\n$obsh = substr_count($baza,\"\\n\");\n$gruppa = substr_count($baza,\"-\");\n$lichka = $obsh - $gruppa;\n     bot('sendMessage',[\n     'chat_id'=>$cid,\n     'text'=>\"📈Bot foydalanuvchilari:\\n👤 $lichka odamlar,\\n👥 $gruppa guruxlar.\\n🕵️Hammasi bo'lib: $obsh\\n\\n\".date(\"Y-m-d H:i:s\", strtotime('5 hour')).\"\\n\\n©2017-\".date(\"Y\"),\n     'parse_mode'=>'markdown',\n     ]);\n}\n}",
    "allowed_updates": "if($text1==\"/help\" or $text1==\"/start\"){\n  $text = \"Salom botimizga xush kelibsiz [$name](tg://user?id=$fadmin)\";\n  bot('sendMessage',[\n    'chat_id'=>$chat_id,\n    'text'=>$text,\n    'parse_mode'=>'markdown',\n    'reply_to_message_id'=>$mid,\n    'reply_markup'=>$button\n    ]);\n  bot('sendChatAction',[\n'chat_id'=>$chat_id,\n'action'=>\"typing\",\n]);\n$baza = file_get_contents(\"azo.dat\");  \nif(mb_stripos($baza, $chat_id) !== false){  \n}else{  \nfile_put_contents(\"azo.dat\", \"$baza\\n$chat_id\");\n}  \n\nif($text1 == \"/stat\"){\n$baza = file_get_contents(\"azo.dat\");\n$obsh = substr_count($baza,\"\\n\");\n$gruppa = substr_count($baza,\"-\");\n$lichka = $obsh - $gruppa;\n     bot('sendMessage',[\n     'chat_id'=>$cid,\n     'text'=>\"📈Bot foydalanuvchilari:\\n👤 $lichka odamlar,\\n👥 $gruppa guruxlar.\\n🕵️Hammasi bo'lib: $obsh\\n\\n\".date(\"Y-m-d H:i:s\", strtotime('5 hour')).\"\\n\\n©2017-\".date(\"Y\"),\n     'parse_mode'=>'markdown',\n     ]);\n}\n}"
}

Response

5 lines

{
    "ok": false,
    "error_code": 400,
    "description": "Bad Request: bad webhook: HTTPS url must be provided for webhook"
}

Share

Submit by @Hidoyat_Mega_bot

⬅️ Back to Recently Submissions