O'zbek PHP
161 subscribers
18 photos
11 videos
10 files
12 links
πŸ‘¨β€πŸ’» Takliflar boΚ»lsa: @omirbayev_xvk & @OdiDev
βœ‰οΈ Murojaat boΚ»lsa: @omirbayev_xvk & @OdiDev
πŸ€– Asosiy bot: Tez Orada
πŸ‘¨β€πŸ’» Dasturchilar: @omirbayev_xvk & @OdiDev
πŸ‘₯ Muhokama boΚ»lsa: @Ozbekphp_chati
Download Telegram
Yaxshi..
111
import telebot
import requests
import os

TOKEN = "Bot_tokin_yozing"

bot = telebot.TeleBot(TOKEN)

HTML = "HTML"


@bot.message_handler(commands=['start'])
def start(message):
bot.send_message(
message.chat.id,
"<tg-emoji emoji-id='5798587088077066898'>πŸ‘»</tg-emoji> Salom Menga (Qr-kod) yuboring men uni ichida nima boriligini aniqlab beraman.",
parse_mode=HTML
)


@bot.message_handler(content_types=['photo'])
def qr(message):

try:
file = bot.get_file(message.photo[-1].file_id)

img = bot.download_file(file.file_path)

with open("qr.png", "wb") as f:
f.write(img)


r = requests.post(
"https://api.qrserver.com/v1/read-qr-code/",
files={
"file": open("qr.png", "rb")
},
timeout=15
)


result = r.json()[0]["symbol"][0]["data"]


if result:
bot.send_message(
message.chat.id,
"<tg-emoji emoji-id='5852804431644465571'>πŸ‘»</tg-emoji> QR topildi:\n\n<code>"+result+"</code>",
parse_mode=HTML
)

else:
bot.send_message(
message.chat.id,
"<tg-emoji emoji-id='5855064567989673201'>πŸ‘»</tg-emoji> QR topilmadi",
parse_mode=HTML
)


except Exception as e:
bot.send_message(
message.chat.id,
"<tg-emoji emoji-id='5447644880824181073'>πŸ‘»</tg-emoji> O'qishda xato",
parse_mode=HTML
)


if os.path.exists("qr.png"):
os.remove("qr.png")



@bot.message_handler(content_types=['text'])
def text_reply(message):

bot.send_message(
message.chat.id,
"<tg-emoji emoji-id='5978817028352381016'>πŸ‘»</tg-emoji> Siz yozdingiz:\n\n<code>"
+ message.text +
"</code>",
parse_mode=HTML
)


bot.infinity_polling()

πŸ–Ό Qr-kodni skayner qiladigon bot kodi

πŸ‘¨β€πŸ’»Dasturchi: @OdiDev
πŸš€ Manba: @Ozbekphp
Please open Telegram to view this post
VIEW IN TELEGRAM
2221111
Forwarded from .
βœ‰οΈ Endi Telegram Premium va ⭐️star sotuvda!

βœ‰οΈ 3 oylik - 175.000 so'm
βœ‰οΈ 6 oylik - 225.000 so'm
βœ‰οΈ 12 oylik - 365.000 so'm


Telegram stars⭐️
⭐️ 50 - 12.000 so'm
⭐️ 75 - 17.000 so'm
⭐️ 100 - 22.000 so'm
⭐️ 150 - 32.000 so'm
⭐️ 250 - 50.000 so'm
⭐️ 500 - 100.000 so'm
⭐️ 1000 - 200.000 so'm
⭐️ 2500 - 530.000 so'm
⭐️ 5000 - 1.030.000 so'm

Premium obunasini va starlar akkauntingizga kirmasdan, β€œsovgβ€˜a” koβ€˜rinishida ulab beramiz.


@omirbayev_xvk

β€’ Ishonchli β€’ Tezkor β€’ Hamyonbop
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ˜ͺπŸ’
Please open Telegram to view this post
VIEW IN TELEGRAM
222
This media is not supported in your browser
VIEW IN TELEGRAM
1 com qvoramizmi😒
Please open Telegram to view this post
VIEW IN TELEGRAM
yutganga stars stop 11 tada ❀
Please open Telegram to view this post
VIEW IN TELEGRAM
32
πŸ† KONKURS TUGADI

1. @xmanxku

πŸ‘₯ Jami ishtirokchilar: 11
πŸ“… 22-06-2026 09:13:57
πŸ”₯
Please open Telegram to view this post
VIEW IN TELEGRAM
311
yutganga stars stop 15 tada
221
Sizlarda ham issiqmi πŸ˜‚
πŸ† KONKURS TUGADI

1. @xmanxku

πŸ‘₯ Jami ishtirokchilar: 15
πŸ“… 22-06-2026 09:45:20
Prizni sal kechro beraman🌟
Please open Telegram to view this post
VIEW IN TELEGRAM
22
πŸ”₯
Please open Telegram to view this post
VIEW IN TELEGRAM
1
import telebot
import yt_dlp
import os

TOKEN = 'Bot_tokin_yozing'
bot = telebot.TeleBot(TOKEN)

@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Salom πŸ‘‹\nMenga Instagram reels yoki video havolasni yuboring men uni yuklab beraman.")

@bot.message_handler(func=lambda message: 'instagram.com' in message.text)
def download_instagram_video(message):
url = message.text
msg = bot.reply_to(message, "⏳ Video yuklanmoqda iltimos kuting...")

ydl_opts = {
'outtmpl': 'video_%(id)s.%(ext)s',
'format': 'best',
'quiet': True,
'http_headers': {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
}
}

try:
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
info = ydl.extract_info(url, download=True)
filename = ydl.prepare_filename(info)

with open(filename, 'rb') as video:
bot.send_video(
chat_id=message.chat.id,
video=video,
reply_to_message_id=message.message_id
)

bot.delete_message(message.chat.id, msg.message_id)
os.remove(filename)

except Exception as e:
bot.delete_message(message.chat.id, msg.message_id)
bot.reply_to(message, "❌ Kechirasiz videoni yuklab olishda xatolik yuz berdi. Iltmos qaytatdan harakat qlib ko'ring")

@bot.message_handler(func=lambda message: 'instagram.com' not in message.text)
def handle_other_messages(message):
bot.reply_to(message, "Iltimos, faqat Instagram video havolasini yuboring.")

if __name__ == "__main__":
print("Bot ishga tushdi...")
bot.polling(none_stop=True)

😎 Instagram dan video yuklab beruvchi bot kod

πŸ“š Kerakli kutubhona
pip install pyTelegramBotAPI yt-dlp

πŸ‘¨β€πŸ’» Dasturchi: @OdiDev
πŸš€ Manba: @rxworks | @ozbekphp
Please open Telegram to view this post
VIEW IN TELEGRAM
11
Bugun oyinda kim yutadi ? πŸ‡ΊπŸ‡ΏvsπŸ‡΅πŸ‡Ή
Anonymous Poll
54%
πŸ‡ΊπŸ‡Ώ
28%
πŸ‡΅πŸ‡Ή
18%
πŸ‡ΊπŸ‡ΏπŸ˜€πŸ‡΅πŸ‡Ή durrang
Please open Telegram to view this post
VIEW IN TELEGRAM
1111
Please open Telegram to view this post
VIEW IN TELEGRAM
1
Bugun tarixiy o'yin: O'zbekiston vs Portugaliya

Sinfdoshlar bilan Semechka, kolani olib tomosha qiladigan joyi lekin. Sizning tahminiy hisobingiz nechi? yon bosmasdan kuchlarga qarab yozing))

Hamma πŸ‡ΊπŸ‡Ώ3:2πŸ‡΅πŸ‡Ή hisobini kutyabdimi)
Please open Telegram to view this post
VIEW IN TELEGRAM