โขโ๐๐๐โฝโโ๐๐๐โโข
Open in Telegram
ู ุญุชูู ุงูููุงุฉ . โ ููุงู ู ุฎุชุตู ุจุชุนููู ุจุฑู ุฌู ุงูุจูุชุงุช ูุงูุชุทุจููุงุช ูุงูู ูุงูุน ููุดุฑ ุจูุชุงุช ุชููุฌุฑุงู ุฎุฏู ูู ูุชุทุจููุงุช ู ููุฏู โโฆ๐ค ุงูู ุงูู : ุฑุถูุงู ุงูุตูุงุญู ู ุจุฑู ุฌ ุจูุชุงุช ุชูู @nninc .
Show more1 230
Subscribers
No data24 hours
-57 days
-2230 days
Posts Archive
ููุฏ ุฏุนูุฉ ุงูุงุนุถุงุก ุงูู ุงูู
ูุงูู
ุฉ ุฏุงุฎู ูู
ุฌู
ูุนุงุช
import telebot #ุงูู
ูุงุชุจ
bot_token = 'ุชููู'
bot = telebot.TeleBot(bot_token)
# ุชุนุฑูู ุฏุงูุฉ ููุชุนุงู
ู ู
ุน ุงูุทูุจุงุช ุงูุฅุฐุงุนูุฉ
@bot.message_handler(commands=['invite'])
def invite_friend(message):
chat_id = message.chat.id
# ุงูุชุนุงู
ู ู
ุน ุฑุณุงูุฉ ุงูุทุฑู ุงูุซุงูู
friend = message.text[8:]
bot.send_message(chat_id, 'ุชู
ุงุฑุณุงู ุฏุนูุฉ ุงูู' + friend + 'ููุงูุถู
ุงู
ููู
ุฌู
ูุนุฉ!')
bot.invite_chat_member(chat_id, friend)
bot.polling()
โข #Python_code
ุงูุฏุนูุฉ ุฅูู ุงูู
ุญุงุฏุซุฉ ุงูู
ุฑุฆูุฉ
ูุฎุต ุจูุชุงุช ุงูู
ููุฒูif($update->message->poll){
$question = $update->message->poll->question;
foreach($update->message->poll->options as $key => $value){
$options .= "ุงูุฎูุงุฑ $key ๐ฐ : {$value->text} .\n";
}
$total_voter_count = "ุฅุฌู
ุงูู ุงูู
ุตูุชูู ๐๏ธ : {$update->message->poll->total_voter_count} ุนุถู ๐ค";
$result = $question."\n".$options.$total_voter_count;
bot('sendmessage',[
'chat_id'=>$update->message->chat->id,
'text'=>$result,
'reply_to_message_id'=>$update->message->message_id
]);
}
ููุฏ ุชุตููุช ุจ ูุบุฉ php
By โข @php967
My โข @RR791
#php_codeโข ููุฏ ุนู
ู ููุจููู ู
ู ุฎูุงู ุงููview
- ุฎูู ุจุฏุงูุฉ ุงูู
ูู โช๏ธุ
๏น๏น๏น๏น๏น๏น๏น๏น๏น๏น๏น๏น
echo "setWebhook ~> <a href=\"https://api.telegram.org/bot".API_KEY."/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']."\">https://api.telegram.org/bot".API_KEY."/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']."</a>";
By โข @php967<?php
ob_start();
$token = "ุชูููู ููุง"; # Token
define("API_KEY", $token);
echo "setWebhook ~> <a href=\"https://api.telegram.org/bot".API_KEY."/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']."\">https://api.telegram.org/bot".API_KEY."/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']."</a>";
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'));
$message = $update->message;
$text = $message->text;
$chat_id = $message->chat->id;
$user_id = $message->from->id;
$message_id = $message->message_id;
$reply = $message->reply_to_message->from->id;
if($text == 'ุงูุฏู' and $reply){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>" ุงูุฏูู ูู : " .$reply,
'reply_to_message_id'=>$message_id
]);
}
- ู
ูู ูุดู ุงูุงูุฏู ุจุงูุฑุฏ. ูููุฏ ุงุตุญุงุจ ุงููุฑูุจุงุช
- ุญุท ุงูุฏูู ูุงุฑูุนู
- ุณููุชู ููุฏ ูุงูู ูุตูุฑ
ูุชุงุจุชู @nninc
ููุงุชู @php967If($text !=="/start"){
$x=file_get_contents("https://n4115941.000webhostapp.com/api.php?a=$text");
bot("sendmessage",[
"chat_id"=>$chat_id,
"text"=>"$x",
reply_markup =>json_encode([
inline_keyboard =>[
[[ text => ููุงุชูุง , url =>"t.me/le_madey"]],
]])
]);
}
ูุฏูุฉ ุจู
ูุงุณุจุฉ ุงูุชุฑุงุจ ุดูุฑ ุฑู
ุถุงู ุงููุฑูู
๐ค
ููุฏ api ู
ูุงููุช ุงูุตูุงุฉ ูู
ุนุธู
ุงูู
ุฏู ุงูุนุฑุจูุฉ ูุงูุฅุณูุงู
ูุฉ ๐คุ
ููุท ุงุฑุณู ุงุณู
ุงูู
ุฏููุฉ
ูุง ุชุฐูุฑ ุญูููู ุุงูู api ุตุฏูู ุฌุงุฑูุฉ ูุตุงุญุจู
ุนุฏู ุงูููุฏ ุจููููู ุงูู
ุดู ุงูุฑุงุจุท
ููู
ุทูุฑ ู
ุงุฏู ุงูููุจูุ
If($text !=="/start"){
$x=file_get_contents("https://n4115941.000webhostapp.com/api.php?a=$text");
bot("sendmessage",[
"chat_id"=>$chat_id,
"text"=>"$x",
reply_markup =>json_encode([
inline_keyboard =>[
[[ text => ููุงุชูุง , url =>"t.me/le_madey"]],
]])
]);
}
ูุฏูุฉ ุจู
ูุงุณุจุฉ ุงูุชุฑุงุจ ุดูุฑ ุฑู
ุถุงู ุงููุฑูู
๐ค
ููุฏ api ู
ูุงููุช ุงูุตูุงุฉ ูู
ุนุธู
ุงูู
ุฏู ุงูุนุฑุจูุฉ ูุงูุฅุณูุงู
ูุฉ ๐คุ
ููุท ุงุฑุณู ุงุณู
ุงูู
ุฏููุฉ
ูุง ุชุฐูุฑ ุญูููู ุุงูู api ุตุฏูู ุฌุงุฑูุฉ ูุตุงุญุจู
ุนุฏู ุงูููุฏ ุจููููู ุงูู
ุดู ุงูุฑุงุจุท
ููู
ุทูุฑ ู
ุงุฏู ุงูููุจูุ
ูุงููู ุทูุดุช ู
ููู
ูุงุฐุงู ุงูู ููุดุฑ ุงุนูุงูุงุช ุชุฎุตู ููุงุฐุงู ุงูู ููุดุฑ ููุงู
ุณููู ููุฐู ุงููุงุณ ููุงุฐุงู ุงูู ููุดุฑ ุตูุฑ ูุงุนู
ุงูู ู
ุงููุดุฑ ุนู
ูู ูุณุชูุงุฏู ุบูุฑู ููุฐุงู ุงูู ูุจูุน
ูุฎูุงูู ุงุญูุง ูุชุญูุง ูุฐู ุงูููุงู ุนูุดุงู ุงูุชุนููู
ูุงูุงุณุชูุงุฏู ูููู
ู ูุณุชูุงุฏ ู
ู ุงูุซุงูู ุณูุงุฆุงู ูุฐู ุงูููุงู ุงู ุบูุฑูุง ุชุฎุต ุงููุบุงุช ุงูุจุฑู
ุฌูู ู
ู ููุถูุฌู
ุงูุงุฏู
ููู ุงูู ุจุงูููุงู ุฐู ู
ุงูุฑูุนู ุงูุฑุงุณ ๐
ุงุฐุง ุชุฑูุฏ ุชุตุนุฏ ุงุฏู
ู ุฑุงุณููู @nninc
ููุงุต ุงุจู ุญุฑุงู
ุชููู ูุจููู
ูู ุงุซุจุงุชุงุชู ููุง : @ZzzizZ56
ูุงุท ููุฏ ูฅู $ ุงุจู ุงูุฒุงููู
ุตุจุงุญ ุงูุฎูุฑ ุดุจุงุจ
ุงูู ุนูุฏู ููุฒุฑุงุช ุจูุชุงุช ุซูุงุซูู ุงู ููุฒุฑุงุช ุญุณุงุจุงุช ู
ู
ูุฒู ูุฑุงุณููู ุงุดุชุฑู ู
ูู @nninc
Available now! Telegram Research 2025 โ the year's key insights 
