Coder Social home page Coder Social logo

fishyer / telegroam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jimmylv/telegroam

0.0 0.0 0.0 1.45 MB

Telegroam: a bridge between Roam and Telegram. ๐Ÿคฉ When Roam Research receives one message, it automatically returns a previously random note ๐Ÿ˜, based on https://github.com/mbrock/telegroam

Home Page: telegroam.vercel.app

JavaScript 100.00%

telegroam's Introduction

Feature

When Roam Research receives one message, it automatically returns a previously random note:

CleanShot 2022-02-18 at 16 14 15@2x

Installation

  1. In Telegram, talk to @BotFather to create a new bot and get an API key for it.
  2. Send something to your bot in a private message.
  3. Make a page in your Roam called [[Telegram Bot]].
  4. Paste these nodes somewhere on the [[Telegram Bot]] page:
- Inbox Name:: [[Inbox]]
- API Key:: insert key you get from Telegram's bot system
  - {{[[TODO]]}} update the Telegram API key above
- Chat Id::
- Serendipity Page:: [[TODO]]
- Trusted Media Proxy:: https://telegram-cors-proxy.herokuapp.com
- Latest Update ID::
  1. Make a block with the text {{[[roam/js]]}}.
  2. Add a nested CHILD block /JavaScript Code Block with this code...
var existing = document.getElementById("telegroam");
if (!existing) {
  var extension = document.createElement("script");
  extension.src = "https://telegroam.vercel.app/src/telegroam.js";
  extension.id = "telegroam";
  extension.async = true;
  extension.type = "text/javascript";
  document.getElementsByTagName("head")[0].appendChild(extension);
}
  1. Press the BIG RED button to enable the script and refresh the page.

Q&A

  1. How to get your Telegram chat id?

option 1: https://t.me/getmyid_bot

This TG bot will send you your telegram user ID, current chat ID and sender ID or chat ID of forwarded message.

20220408-Telegram-001263@2x

option 2: if you are FE dev, just open the Chrome DevTool, as you can see

  1. How to select the block content that Bot is replying to?

Just change the [[TODO]] in Serendipity Page:: [[TODO]] to your own tag, such as [[ZK]] or [[Zettel]]

telegroam's People

Contributors

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