Giter Site home page Giter Site logo

jimmylv / telegroam Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 3.0 1.52 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 0.21% TypeScript 99.79%

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]]
- BibiGPT API URL:: https://bibigpt.co/api/open/[apiToken]
- Trusted Media Proxy:: https://tg.aipkm.com/tg
- Latest Update ID::

How to get your BibiGPT.co Open API URL? https://aitodo.co/docs/bibigpt-api 5. Make a block with the text {{[[roam/js]]}}. 6. 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://tg.aipkm.com/main.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

Stargazers

 avatar Hsuching avatar karlz avatar Tenvi avatar  avatar θŒƒδΈ‰ηƒ avatar Jackson.Yan avatar xiangchili avatar GitStart avatar  avatar Jatto avatar fishyer avatar NKLIU avatar ipruning avatar SIX, KK avatar gandli avatar yeshu avatar  avatar  avatar scramjetFoam avatar  avatar

Watchers

James Cloos avatar  avatar  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.