Giter Site home page Giter Site logo

rclonetelegram's Introduction

Telegram Backend for RClone (Still Under Development) Broken at the moment

Project is Dead

This is a backend for RClone that allows you to use Telegram as a remote storage service.

Installation

To use this backend, you need to have RClone installed. You can download the latest version of RClone from their official website.

To use this backend, you also need to have a Telegram bot and chat ID. You can create a bot and obtain the chat ID by following the instructions in Telegram's Bot API documentation.

Once you have RClone and a Telegram bot set up, you can install this backend by running the following command:

go install github.com/greengeckowizard/RcloneTelegram@latest

Configuration

To use this backend, you need to add it to your RClone configuration file. You can do this by running the following command:

rclone config

Then, follow the prompts to configure the backend. You will need to provide your Telegram bot token and chat ID.

Here's an example configuration:

[mytelegram]
type = telegram
token = <your-telegram-bot-token>
chat_id = <your-telegram-chat-id>

You can replace "mytelegram" with any name you like.

How to Test

Since this code is still in development, it is recommended that you test it thoroughly before using it for production purposes.

To test the backend, you can try running the following RClone commands:

rclone lsf mytelegram:/

This should list the contents of your Telegram chat.

rclone copy /path/to/local/file mytelegram:/remote/path

This should upload the local file to your Telegram chat.

rclone copy mytelegram:/remote/path /path/to/local/file

This should download the remote file from your Telegram chat to the local file system.

Note that the Telegram backend only supports files up to 2GB in size.

rclonetelegram's People

Contributors

birdup000 avatar fe80grau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rclonetelegram's Issues

How to create the configuration?

ubuntu@everon02:~$ go install github.com/greengeckowizard/RcloneTelegram@latest
go: github.com/greengeckowizard/RcloneTelegram@latest: github.com/greengeckowizard/[email protected]: parsing go.mod:
        module declares its path as: rclonetelegram
                but was required as: github.com/greengeckowizard/RcloneTelegram

Teledrive or telegram does not appear in rcloneTelegram:

Enter name for new remote.
name> teledrive

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
 1 / 1Fichier
   \ (fichier)
 2 / Akamai NetStorage
   \ (netstorage)
 3 / Alias for an existing remote
   \ (alias)
 4 / Amazon Drive
   \ (amazon cloud drive)
 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS, Qiniu and Wasabi
   \ (s3)
 6 / Backblaze B2
   \ (b2)
 7 / Better checksums for other remotes
   \ (hasher)
 8 / Box
   \ (box)
 9 / Cache a remote
   \ (cache)
10 / Citrix Sharefile
   \ (sharefile)
11 / Combine several remotes into one
   \ (combine)
12 / Compress a remote
   \ (compress)
13 / Dropbox
   \ (dropbox)
14 / Encrypt/Decrypt a remote
   \ (crypt)
15 / Enterprise File Fabric
   \ (filefabric)
16 / FTP
   \ (ftp)
17 / Google Cloud Storage (this is not Google Drive)
   \ (google cloud storage)
18 / Google Drive
   \ (drive)
19 / Google Photos
   \ (google photos)
20 / HTTP
   \ (http)
21 / Hadoop distributed file system
   \ (hdfs)
22 / HiDrive
   \ (hidrive)
23 / In memory object storage system.
   \ (memory)
24 / Internet Archive
   \ (internetarchive)
25 / Jottacloud
   \ (jottacloud)
26 / Koofr, Digi Storage and other Koofr-compatible storage providers
   \ (koofr)
27 / Local Disk
   \ (local)
28 / Mail.ru Cloud
   \ (mailru)
29 / Mega
   \ (mega)
30 / Microsoft Azure Blob Storage
   \ (azureblob)
31 / Microsoft OneDrive
   \ (onedrive)
32 / OpenDrive
   \ (opendrive)
33 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ (swift)
34 / Oracle Cloud Infrastructure Object Storage
   \ (oracleobjectstorage)
35 / Pcloud
   \ (pcloud)
36 / Put.io
   \ (putio)
37 / QingCloud Object Storage
   \ (qingstor)
38 / SMB / CIFS
   \ (smb)
39 / SSH/SFTP
   \ (sftp)
40 / Sia Decentralized Cloud
   \ (sia)
41 / Storj Decentralized Cloud Storage
   \ (storj)
42 / Sugarsync
   \ (sugarsync)
43 / Transparently chunk/split large files
   \ (chunker)
44 / Union merges the contents of several upstream fs
   \ (union)
45 / Uptobox
   \ (uptobox)
46 / WebDAV
   \ (webdav)
47 / Yandex Disk
   \ (yandex)
48 / Zoho
   \ (zoho)
49 / premiumize.me
   \ (premiumizeme)
50 / seafile
   \ (seafile)

compile, Cannot find name 'rclone', express

 tsc --project tsconfig.json 
telegram-backend.ts:93:26 - error TS2304: Cannot find name 'rclone'.

93       const client = new rclone.Client();
                            ~~~~~~

telegram-backend.ts:115:26 - error TS2304: Cannot find name 'rclone'.

115       const client = new rclone.Client();
                             ~~~~~~


Found 2 errors in the same file, starting at: telegram-backend.ts:93

The compile command complains about can't find express, rclone.
Installing express with
npm install express
solves that part.
What package do I need for rclone? Tried
npm install rclone
and other similar named packages, does not work.

ARM64 version

It works in version so that ARM64. When I try to install it I get an error

Thank you very much and a great project

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.