Skip to content

aminiyt1/Anonymous-Chat-Cloudflare-Worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Anonymous-Chat-Cloudflare-Worker

Anonymous Chat Cloudflare Worker Telegram Bot

  1. First, create a Python Worker in Cloudflare, delete all the existing code, and paste the code you got from the link above.
  2. Then, go to Storage & Databases and create a new database (the name doesn’t matter).
  3. Enter the database and open the console.

Copy the code below:

CREATE TABLE users (
 "id" integer PRIMARY KEY,
 "telegram_user_id" text,
 "rkey" text,
 "target_user" text
);
  1. Then, go to the Worker and in the Settings, under Bindings, bind the database you created with the name db.
  2. Create a bot on Telegram using @BotFather.
  3. For BOT_TOKEN, put the token of your bot.
  4. For BOT_ID, use the bot's ID without the @.
  5. Click on Visit.
  6. The Worker will open in your browser. Add /init at the end of the URL, for example: https://yourworker.username.workers.dev/init and press Enter to set the webhook.

About

Anonymous Chat Cloudflare Worker Telegram Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages