GithubHelp home page GithubHelp logo

3rdnature / telegram-push Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sduoduo233/telegram-push

0.0 0.0 0.0 1.05 MB

Webhook notification bot for Telegram

Python 7.67% TypeScript 75.69% HTML 16.65%

telegram-push's Introduction

Telegram 消息推送机器人

开发

  1. 安装 nodejs npm
  2. clone 项目
  3. npm install
  4. 创建 KV 和生成 wrangler.toml: python3 deploy.py

部署

  1. 点这个

Deploy to Cloudflare Workers

  1. 登陆 Github

Deploy to Cloudflare Workers

  1. 登陆 Cloudflare

Configure Cloudflare Account

打开这个链接,然后找到 Account ID 填进去: Account ID

然后打开这个连接,新建一个 API Token,模板选 Edit Cloudflare Workers

Create API Token

设置一下 Account 和 Zone,然后点创建: Create API Token

然后把 API Token 填进去: https://files.yourblog.eu.org/bf69b9e3-7a6b-42d1-9891-74ce0f127b12.png

  1. Deploy with GitHub Actions

这一步按照提示来就行 https://files.yourblog.eu.org/0fbb37a8-8818-4f53-a56b-51585b5b6044.png

  1. 这时候你刚刚 Fork 的仓库会有一个正在运行的 Action,如果没有的话可以手动运行一下

https://files.yourblog.eu.org/8baaf541-4a65-4c88-8563-d6d7bc3b5ff2.png

  1. 等这个 Action 运行完就可以在 Cloudflare 面板看到刚刚部署的 Worker

https://files.yourblog.eu.org/8bffbece-4935-4225-875d-4e2ec0c3448f.png

  1. Bot Father 创建一个机器人

https://files.yourblog.eu.org/3bfcdf2d-6bd7-44c6-a001-3f614ad50c74.png

  1. 打开你的 Cloudflare Worker,然后会看到一个安装页面:

https://files.yourblog.eu.org/8991eeef-583e-4767-9638-3aea195b9c1e.png

把你 Bot 的 Token 输进去,然后点安装

  1. 然后就可以推送消息了

https://files.yourblog.eu.org/aa0f3df3-8571-47f9-b382-24ab67f2d445.png

curl "https://YOUR_WORKER_DOMAIN/push?key=YOUR_KEY&msg=YOUR_MESSAGE"

telegram-push's People

Contributors

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