This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.youtube.com/@behnamonline | |
import websocket | |
import json | |
import os | |
coin = "btc" | |
pair = "usdt" | |
symbol = f"{coin}{pair}".lower() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bind a D1 database to the worker , name it: dblink | |
// run your worker https://.....workers.dev/init to set webhook and create users table | |
const BOT_TOKEN = '7492366949:AAENq_vvsIGOKFJC-2x2TW8A2JpJ2gACLAKC' | |
const HOOK = BOT_TOKEN.split(":")[0] | |
export default { | |
async fetch(request, env, ctx) { | |
const botDB = env.dblink; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
create a KV and bind to your worker -> kv_link | |
*/ | |
const pageUrl = "https://ledc.ir/%D8%AE%D8%A7%D9%85%D9%88%D8%B4%DB%8C%D9%87%D8%A7%DB%8C-%D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87-%D8%B1%DB%8C%D8%B2%DB%8C-%D8%B4%D8%AF%D9%87"; | |
const botToken = "2365785233:AAG7afaplinQtnGgLvfgEgsAhbUQERSSYXFo"; | |
const chatId = "@barghmire"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const BOT_TOKEN = '8253131203:AAFRLN8PiV3cgnztWlFn1W-tbSq6yssHjsA'; // token robot az bot father | |
const BOT_ID = "huhcat_game_bot" // id robot bedoone @ | |
const HOOK = BOT_TOKEN.split(":")[0] | |
export default { | |
async fetch(request, env, ctx) { | |
const url = new URL(request.url); | |
const userAgent = request.headers.get("user-agent") || ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 0.create a python worker | |
# 1.create a D1 database and bind it to your worker -> db | |
# 2.go to D1->the databse->Console and run this sql to create users table | |
# CREATE TABLE users ("id" integer PRIMARY KEY,"telegram_user_id" text,"rkey" text,"target_user" text) | |
# 3.open the worker in browser and -> https://yourworker.username.workers.dev/init to set webhook | |
# https://www.instagram.com/behnamonline | |
# https://www.youtube.com/@behnamonline | |
# https://t.me/behnamonline99 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ozv ejbari telegram bot | |
/* | |
https://www.instagram.com/behnamonline | |
https://www.youtube.com/@behnamonline | |
https://t.me/behnamonline99 | |
https://www.aparat.com/behnam.online | |
*/ | |
/* |