Giter VIP home page Giter VIP logo

tgstate's Introduction

tgstate

使用Telegram作为存储的图床,最大支持20MB

言简意赅的教程:https://www.csz.net/proj/tgstate/

自夸:

  • 支持粘贴上传
  • 支持一键复制bbcode markdown html代码
  • 储存在自己的频道里,最大支持20MB
  • 提供API接口,方便二次开发

先决条件:

  • 创建机器人获取Bot Token
  • 创建频道,将机器人拉入作为管理员(公开频道,私有频道没有测试)

建议套上CloudFlare 设置 /img/*/d/*完全缓存,并开启always online

测试地址:https://tgtu.ikun123.com/
测试图片:tgState

Docker安装

pull镜像

docker pull csznet/tgstate:latest

启动

docker run -d -p 8088:8088 --name tgstate -e TOKEN=aaa -e CHANNEL=@bbb csznet/tgstate:latest

请提前将aaa和bbb替换为你的bot token和频道地址

二进制安装

下载Linux amd64环境的二进制文件

wget https://github.com/csznet/tgState/releases/latest/download/tgState.zip

解压

unzip tgState.zip && rm tgState.zip

使用方法

 ./tgState -token xxxx -channel @xxxx

其中的xxxx为bot token @xxxx为频道地址

如果需要自定义端口,可以带上-port参数,如

-port 8888

如果不需要首页,只需要API和图片展示页面,则带上-index参数,如

 ./tgState -token xxxx -channel @xxxx -port 8888 -index

tgstate's People

Contributors

csznet avatar

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.