FAST MTPROTO PROXIES FOR TELEGRAM
Contact : @Esalat
Last updated hace 1 año, 1 mes
📝 telegra.ph/频道内软件使用说明-09-30
👨💻 t.me/PJapkAdminBot
🔴 t.me/PJAPK_Chat
Last updated hace 2 semanas, 5 días
个人企业邮箱代挂 可自备域名 登录 mail.0-c.cc
想要留言
开源机器人 @qxgyzzkmhqbot 使用cloudflare workers部署
```
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
const API_TOKEN = '机器人token@botfather获取'
const channels = [-1001285658397, -1001682213840, -1001950384240, -1002196738831,-1001814462831,-1002227231255,-1001845544423]
async function userInChannels(userId, channels) {
for (let channel of channels) {
const url = https://api.telegram.org/bot${API\_TOKEN}/getChatMember?chat\_id=${channel}&user\_id=${userId}
const response = await fetch(url)
const data = await response.json()
if (data.ok) {
const status = data.result.status
if (!['member', 'administrator', 'creator'].includes(status)) {
return false
}
} else {
return false
}
}
return true
}
async function handleRequest(request) {
const url = new URL(request.url)
const pathname = url.pathname
const params = new URLSearchParams(url.search)
if (pathname === '/webhook') {
const body = await request.json()
const message = body.message
const chatId = message.chat.id
const userId = message.from.id
const command = message.text.trim().toLowerCase()
if (command === "/start") {
const inChannels = await userInChannels(userId, channels)
if (inChannels) {
return sendTelegramMessage(chatId, "成功发送的消息")
} else {
return sendTelegramMessage(chatId, "失败发送的消息")
}
}
}
return new Response('OK')
}
async function sendTelegramMessage(chatId, text) {
const url = https://api.telegram.org/bot${API\_TOKEN}/sendMessage
const body = JSON.stringify({ chat_id: chatId, text: text })
await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: body
})
return new Response('Message sent')
}
```
全网互管 多少人都可以
@ywtnb
1.2版本修复禁网,修复子追闪退
永久网盘 https://www.123pan.com/s/WK8uVv-eVY3A.html
永久公益卡【MA3229B5CF87105D4E63EDB719ADA136
】
发送反馈 @ywtnb
频道 https://t.me/jkojdm
频道 https://t.me/jkojdm
懒居v15四服破解版已上传网盘
置顶网盘!!!
点赞越多更新越快
????
详细信息请点我查看!!详细信息请点我查看!!
详细信息请点我查看!!
????
ps:发布快手点我有奖励
?破解发布频道
https://t.me/jjdbddbd
https://t.me/jjdbddbd
https://t.me/jjdbddbd
必须查看详细信息!!!
FAST MTPROTO PROXIES FOR TELEGRAM
Contact : @Esalat
Last updated hace 1 año, 1 mes
📝 telegra.ph/频道内软件使用说明-09-30
👨💻 t.me/PJapkAdminBot
🔴 t.me/PJAPK_Chat
Last updated hace 2 semanas, 5 días