Giter VIP home page Giter VIP logo

telegram-replies-only-bot's Introduction

telegram-replies-only-bot

This bot will remove chat messages that are not replies.

Useful for when you have an open chat for channel comments, but want to keep conversations attached to posts.

Setup

Make the wrangler.toml file out of wrangler.example.toml template, add account_id setting if you have access to multiple accounts, and replace placeholders:

  • %%LOGS%% - an id of KV to store error logs to
  • %%SETTINGS%% - an id of KV to read settings from

In the %%SETTINGS%% KV on Cloudflare define the allowed-chats key with a list of comma-separated chat IDs

Make the .dev.vars file out of .dev.example.vars template, and replace placeholders:

  • %%HOOK_PATH%% - a secret webhook path, that Telegram server will call, in /hook format
  • %%TELEGRAM_API_TOKEN%% - Telegram Bot API token

Build

Run npm run build

Development

Run npm run dev

Deployment

Set up secrets:

  • npx wrangler secret put HOOK_PATH
  • npx wrangler secret put TELEGRAM_API_TOKEN

Run npm run deploy

Open the /status page of the deployed instance, to trigger bot hook registration on Telegram.

telegram-replies-only-bot's People

Contributors

glukki avatar renovate-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

b4ck5p4c3

telegram-replies-only-bot's Issues

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Rate Limited

These updates are currently rate limited. Click on a checkbox below to force their creation now.

  • Update dependency @rollup/plugin-typescript to v8.3.2
  • Update dependency ip-cidr to v3.0.7
  • Update dependency @rollup/plugin-commonjs to v21.1.0
  • Update dependency prettier to v2.6.2
  • Update dependency tslib to v2.4.0
  • Update actions/checkout action to v3
  • Update cloudflare/wrangler-action action to v2
  • Update dependency @rollup/plugin-commonjs to v22
  • Update dependency husky to v8

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

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.