๐ฏ๐ข๐ฌ๐ฎ๐š๐ฅ ๐œ๐จ๐๐ž๐ซ | ๐ฉ๐ซ๐จ๐ ๐ซ๐š๐ฆ๐ฆ๐ž๐ซ๐ฌ


Kanal geosi va tili: Oโ€˜zbekiston, Oโ€˜zbekcha
Toifa: Telegram


Loyihalar bo'yicha: @visualcoderuz

ะกะฒัะทะฐะฝะฝั‹ะต ะบะฐะฝะฐะปั‹  |  ะŸะพั…ะพะถะธะต ะบะฐะฝะฐะปั‹

Kanal geosi va tili
Oโ€˜zbekiston, Oโ€˜zbekcha
Statistika
Postlar filtri


๐Ÿ‘‹ Salom.

๐Ÿ”— Istalgan turdagi saytning backend (orqa) qismini ishlab chiqaman, frontendda foydalanish uchun.

๐Ÿง‘โ€๐Ÿ’ป @pycouz


import asyncio
from datetime import datetime
from telethon import TelegramClient
from telethon.tl.functions.account import UpdateProfileRequest

api_id = ""
api_hash = ""
phone = ""
session = "hour"
nick = "visualcoder"


async def update_profile():
client = TelegramClient(session=session, api_id=api_id, api_hash=api_hash)
await client.start(phone=phone)

while True:
time = datetime.now().strftime("%H:%M")
name = f"{nick}: {time}"
bio = f"Hozirgi vaqt: {time}"

await client(UpdateProfileRequest(first_name=name, about=bio))
await asyncio.sleep(60)

try:
asyncio.run(update_profile())
except:
print("o'chirildi")


๐Ÿ“Ž Pythonda telegram profilga soat o'rnatish uchun kod.
๐Ÿ‘‡๐Ÿป Kerakli kutubxonalar:

pip install asyncio datetime telethon

๐Ÿ”— Manba: @visualcoders


#Instagram'dan yuklovchi API

function insta($url) {
$api = "https://x.wwi.su/x/instagram/";
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => $api."?post=$url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERAGENT => "PHPiB",
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
header('Content-Type: application/json');

echo insta($_GET["url"]);


Eslatma Moskva yoki umuman Rossiya serverlari uchun copy() yoki file_get_contents() dan foydalanib faylga yuklash umuman foydasiz agar telegram botingiz bo'lsa shunchaki urlni tog'rima tog'ri jo'natadigan qiling.


i1musicbot.zip
9.2Kb
๐Ÿ–ผ๏ธ โ€ข @i1MusicBot ะบะพะดะธ ั‚ำฏะปะธา› !

๐Ÿ–ผ๏ธ โ€ข าšำฏัˆะธะผั‡ะฐะปะฐั€:
๐Ÿ–ผ๏ธ โ€ข ะะดะผะธะฝ ะฟะฐะฝะตะปัŒ + ะฅะฐะฑะฐั€ ัŽะฑะพั€ะธัˆ, ะผะธะปะปะธะพะฝ ะฐะทะพะณะฐ าณะฐะผ ะถะฐะฒะพะฑ ะฑะตั€ะฐะดะธะณะฐะฝ. ะขำฏะปะธา› ัˆะฐะบะปะดะฐ. ะฐั€ั…ะธะฒะดะฐ ะฟะฐั€ะพะป ะนำฏา›โ˜บ๏ธ
๐Ÿ–ผ๏ธ โ€ข ะ’ะธะดะตะพะฝะธ ัŽะบะปะฐะฑ ะพะปะธัˆ ะธะผะบะพะฝะธัั‚ะธ าณะฐะผ า›ำฏัˆะธะปะดะธ.

๐Ÿ–ผ๏ธ โ€ข config.php ะฝะธ ำฏะทะธะฝะณะธะทะณะฐ ะผะพัะปะฐะฑ ำฏะทะณะฐั€ั‚ะธั€ะธัˆะธะฝะณะธะท ำฏะทะธ ะตั‚ะฐั€ะปะธ ะฑะพัˆา›ะฐ ะตั€ะธะณะฐ ั…ะตั‡ะฝะฐั€ัะฐ ะบะธั€ะธั‚ะธัˆ ัˆะฐั€ั‚ ัะผะฐั ะฒะฐ cron.php ะฝะธ 1 ะผะธะฝัƒั‚ะปะธะบ cron า›ะธะปะธัˆะธะฝะณะธะท ัˆะฐั€ั‚.!


๐Ÿ–ผ๏ธ โ€ข ะšะพะดะฝะธ ะดำฏัั‚ะปะฐั€ะธะฝะณะธะทะณะฐ, ะบะฐะฝะฐะปะธะฝะณะธะทะณะฐ ัŽะฑะพั€ะธะฑ ะบะฐะฝะฐะปะฝะธ า›ำฏะปะปะฐะฑ า›ัƒะฒะฒะฐั‚ะปะฐะฝะณ.!!

๐Ÿ˜ญะšะพะดะฝะธ ะฑะธะปะฐะผะฐะฝ ะถัƒะดะฐ ะบำฏะฟั‡ะธะปะธะบ ัะพั‚ะธัˆะณะฐ ำฏั‚ะฐะดะธ ัะฝะดะธ (ำฏั‚ะธัˆะณะฐะฝ ะฐะปะปะฐา›ะฐั‡ะพะฝ, ะบำฏั€ะดะธะผ), ะฐะดะผะธะฝ ะฟะฐะฝะตะป ั‘ะบะธ ะฑะพัˆา›ะฐ า›ะธัะผะธะณะฐ ะพะทะณะธะฝะฐ ำฏะทะณะฐั€ั‚ะธั€ะธัˆ ะบะธั€ะธั‚ะธะฑ ะฑัƒ ัั…ัˆะธะผะฐั ั‚ะตะบะธะฝะณะฐ ัƒะปะฐัˆะธัˆะธะฝะณะธะท ัˆะฐั€ั‚.!!!


#GoogleTranslator API

function translate($text, $from, $to) {
$text = urlencode($text);
$api = "https://x.wwi.su/x/translator/";
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => $api."?text=$text&from=$from&to=$to",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERAGENT => "PHPiB",
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
header('Content-Type: application/json');

echo translate($_GET["text"], $_GET["from"], $_GET["to"]);

to - tarjima bo'ladigan til
from - qaysi tildan tarjima bo'lishi avtomatik qilish uchun shunchaki bo'sh qoldiring
text - tarjima bo'ladigan til


Xar bir til kodlari: https://en.m.wikipedia.org/wiki/List_of_ISO_639_language_codes


index.php
16.5Kb
@i1MusicBot

3 ta til qo'shildi, ovoz orqali qidiruvgaham bir ikki ozgarishlar kiritildi, kamtarona statistika, kengi yangilanish albatta admin panel bilan bo'ladi !


index.php
12.2Kb
Ishlashi 100%
Demo: @I1MusicBot

Yaxshilikka ishlasin, Kenroq admin panel ham tashlab yuboraman.

Kodni sotish taqiqlanadi, insof bilan ishlaylik !!!!


Foydalanilgan APIlar

https://t.me/visualcoders/2253
https://t.me/visualcoders/2254
https://t.me/visualcoders/2253


@i1MusicBot kodi tashlashga arzirlimikin?๐Ÿค” comment


#Shazam API

Notanish musiqani ma'lumotlarini qidirish uchun API:

function recognize($url) {
ย ย ย  $api = "https://x.wwi.su/x/recognize/";
ย ย ย  $curl = curl_init();
ย ย ย  curl_setopt_array($curl, [
ย ย ย ย ย ย ย  CURLOPT_URL => $api."?url=$url",
ย ย ย ย ย ย ย  CURLOPT_RETURNTRANSFER => true,
ย ย ย ย ย ย ย  CURLOPT_USERAGENT => "PHPiB",
ย ย ย ย ย ย ย  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
ย ย ย ย ย ย ย  CURLOPT_CUSTOMREQUEST => "GET",
ย ย ย  ]);
ย ย ย  $response = curl_exec($curl);
ย ย ย  curl_close($curl);
ย ย ย  return $response;
}
header('Content-Type: application/json');

echo recognize($_GET["url"]);
Batafsil:


#YouTube dan video/audio yuklovchi API

function download($url, $quality, $option) {
$api = "https://x.wwi.su/x/download/";
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => $api."?option=download&url=$url&quality=$quality",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERAGENT => "PHPiB",
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
header('Content-Type: application/json');

echo download($_GET["url"], $_GET["quality"], $_GET["option"]);

Batafsil: https://x.wwi.su/blog/youtube-dan-yuklab-oluvchi-kod!/


#YouTube dan so'z bo'yicha video/musiqa qidiruvchi api

function search($query) {
$api = "https://x.wwi.su/x/recognize/";
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => $api."?url=$query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERAGENT => "PHPiB",
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
header('Content-Type: application/json');

echo recognize($_GET["query"]);

Batafsil: https://x.wwi.su/blog/youtube-dan-video-qidiruvchi-api!/




๐Ÿ’ฅ Kyper Post Bot yangilandi.

๐Ÿ“Ž Imkoniyatlar ko'paytirildi. Endi xuddi pastdagi kabi 2 xil tugma qo'shishingiz mumkin. Oddiy tugmadagi ma'lumotni kanalga obuna bo'lmaguncha ko'ra olmaysiz.

โš™๏ธ Foydalanib ko'ring va xatoliklar bo'lsa
@visualcoderuz'ga xabar bering.


๐Ÿ”— Foydalanish:

$city = "urganch";

$result = json_decode(file_get_contents("https://api.visualcoder.ru/ramazon/index.php?city=$city"), true);

$current_time = $result[0]["result"]["current_time"];

๐Ÿ™‚ Qolganini o'zingiz eplarsiz.


๐Ÿ”— https://api.visualcoder.ru/ramazon/index.php?city=urganch

โ„น๏ธ Kunlik ramazon taqvimini ko'rsatadigan API. 11 - mart sanasidan boshlab har kuni ma'lumotlar avtomatik yangilanib boradi.

๐Ÿ”ฅ Reaksiya bosib keting.


@android_appsbot Foydalanib ko'ring ๐Ÿ‘‹




๐Ÿ”— @KyperPostBot foydalanib ko'ramiz.


๐ŸŒ™ Foydali Loyiha.

Namoz vaqtlari - yurtimizning barcha shahar va tumanlari uchun namoz vaqtlari haqida sizga ma'lumotlar beradi. Viloyatlar a'ro shahar yoki tumaningizni ham tanlashingiz mumkin.

๐ŸŒ• Albatta foydalanib ko'ring.


๐Ÿ’ฅ @KyperPostBot - Foydalanib ko'ramiz do'stlar,

Yangiladim ๐Ÿ†™

20 ta oxirgi post koโ€˜rsatilgan.