@TimsohOyinbot(@PhoenixSyntax).zip
    5 KB
  Please open Telegram to view this post
    VIEW IN TELEGRAM
  index(@PhoenixSyntax.php
    5 KB
  Anonim chat
Please open Telegram to view this post
    VIEW IN TELEGRAM
  if($text=="/creat"){
    $link = bot('createInvoiceLink',[
        'title' => "Telegram Stars",
        'description' => "Donate qilish",
        'payload' => "add",
        'currency' => 'XTR',
        'start_parameter'=>'pay',
        'photo_url' => "https://telegra.ph/file/0f4d11055570ba7c2d65a.jpg",
        'photo_width' => 320,
        'photo_height' => 320,
        'prices' => json_encode([[
            'label' => "@PhoenixSyntax",
            'amount' => "10" // 10 stars
            ]
        ]),
    ])->result;
    bot('sendmessage',[
        'chat_id'=>$chat_id,
        'text'=>"ok: $link"
    ]);
}π Telegram Stars ni url yani link koβrinishida toβlash
Please open Telegram to view this post
    VIEW IN TELEGRAM
  1
  
  Phoenix Syntax
π’ Kanal: @PhoenixSyntax π₯ Guruh: @PhoenixSyntaxChat
if($text=="/stars"){
    bot('sendPaidMedia',[
        'chat_id'=>"@PhoenixSyntax",
        'star_count'=>5, // 5 ta stars
        'media'=>json_encode([
            ['type'=>"photo",'media'=>"Rasm manzili"],
            ['type'=>"video",'media'=>"Video manzili"]
        ]),
        'caption'=>"π’ Kanal: @PhoenixSyntax",
        'reply_markup'=>json_encode([
            'inline_keyboard'=>[
                [['text'=>"π’ Kanal",'url'=>"https://t.me/PhoenixSyntax"]],
            ]
        ]),
    ]);
}βΉοΈ Rasm yoki video ni pullik media qilib yuborish, faqat kanallarga yuborsa bo'ladi shaxshiy chat yoki guruhga hozircha yuborib bo'lmaydi
Please open Telegram to view this post
    VIEW IN TELEGRAM
  if($text=="/tekshirish"){
    $boost = bot('getUserChatBoosts',[
        'chat_id'=>"@PhoenixSyntax", // Kanal useri yoki id 
        'user_id'=>$user_id
    ])->result->boosts;
    if(count($boost)>=1){
        $result = "Siz kanalga ".count($boost)." ta ovoz bergansiz";
    }else{
        $result = "Yo'q siz kanalga ovoz bermagansiz";
    }
    bot('sendmessage',[
        'chat_id'=>$chat_id,
        'text'=>$result
    ]);
}βΉοΈ Agar bot kanalda admin bo'lmasa tekshira olmaydi(haa bu anig'u )
Please open Telegram to view this post
    VIEW IN TELEGRAM
  π₯2β€1π1
  