Git Product home page Git Product logo

ifthat-bot's Introduction

ifthat-bot

Telegram 真是开发者的乐土,加密传输,永久免费,丰富的 Api,以及最重要且强大的bot生态等等,太多的优点,说不过来。
考虑到 https://file.ifthat.com 在手机上不方便上传文件,刚好看了一些 telegram bot 的文档,就打算用它来做个 bot,使用原始的 api 有点麻烦,所以使用一下大佬的轮子node-telegram-bot-api
在 botfather 上创建了一个bot, @ifthat_bot,打算实现以下功能

  • 上传不同类型的文件
  • 上传文本
  • 显示文本

install && run

git clone https://github.com/allenliu123/ifthat-bot.git
cd ifthat-bot
npm install
export TOKEN=[YOUR_BOT_TOKEN]
npm run start

上传文件

只需要发送你的文件到@ifthat_bot,就可以保存到 https://file.ifthat.com ,目前可发送文件类型为,图片,文件,音频,视频

image
image

上传文本

发送文字,就可以保存,可到 https://file.ifthat.com 查看

image
image

显示文本

/show 指令可以显示文本
image

ifthat-bot's People

Contributors

allenliu123 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.