Skip to content

Cloudflare-Powered URL Shortener Telegram Bot Created by Ashlynn Repository, this Telegram bot utilizes AR own Shorturl apis to provide a streamlined and efficient URL shortening service. The project is open-source and designed for seamless integration and ease of use, enabling users to manage short URLs directly through Telegram

License

Notifications You must be signed in to change notification settings

Itz-Ashlynn/shorturlbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ShortURL Cloudflare Bot Code

This repository contains code to deploy a ShortURL bot on Cloudflare Workers using worker.js

Prerequisites

  • A Telegram bot token from @BotFather
  • A Cloudflare account with Workers enabled

1 Configuration

Set up your Telegram bot:

  • Obtain your bot token from @BotFather.
  • Set the TOKEN variable in worker.js with your bot's token.

Deployment Steps

  • Go to the Cloudflare dashboard, navigate to Workers, and create a new Worker.
  • Copy the code from worker.js and paste it into the Worker editor.

Deploy the Worker:

Save and deploy the Worker. Cloudflare will assign a URL to your Worker.

Webhook Registration:

  • Access /registerWebhook endpoint to register your Telegram webhook.
  • Use /unRegisterWebhook to remove the webhook if needed.

Endpoints

  • /endpoint: Main webhook endpoint for handling Telegram updates.
  • /registerWebhook: Registers the bot's webhook with Telegram.
  • /unRegisterWebhook: Unregisters the bot's webhook.

Credits

Made by Ashlynn Repository

If you find this project useful, please consider giving it a ⭐ on GitHub! Your support helps improve and maintain this repository. Forking the repo is also encouraged – feel free to customize and enhance the code to fit your own needs.

About

Cloudflare-Powered URL Shortener Telegram Bot Created by Ashlynn Repository, this Telegram bot utilizes AR own Shorturl apis to provide a streamlined and efficient URL shortening service. The project is open-source and designed for seamless integration and ease of use, enabling users to manage short URLs directly through Telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published