From 3dc1baf94d5f03ebfd6c3b709b1bee7c09982aa7 Mon Sep 17 00:00:00 2001
From: ed <ed@brz9.dev>
Date: Thu, 3 Oct 2024 18:49:49 +0200
Subject: [PATCH] vault backup: 2024-10-03 18:49:49

Affected files:
.obsidian/workspace.json
Python Telegram Bot.md
---
 .obsidian/workspace.json | 26 +++++++++++++++++++-------
 Python Telegram Bot.md   | 12 ++++++++++++
 2 files changed, 31 insertions(+), 7 deletions(-)
 create mode 100644 Python Telegram Bot.md

diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json
index f056933..4738f9e 100644
--- a/.obsidian/workspace.json
+++ b/.obsidian/workspace.json
@@ -30,9 +30,21 @@
                 "source": false
               }
             }
+          },
+          {
+            "id": "21dba9a52985a36c",
+            "type": "leaf",
+            "state": {
+              "type": "markdown",
+              "state": {
+                "file": "Python Telegram Bot.md",
+                "mode": "source",
+                "source": false
+              }
+            }
           }
         ],
-        "currentTab": 1
+        "currentTab": 2
       }
     ],
     "direction": "vertical"
@@ -98,7 +110,7 @@
             "state": {
               "type": "backlink",
               "state": {
-                "file": "Python FastAPI.md",
+                "file": "Python Telegram Bot.md",
                 "collapseAll": false,
                 "extraContext": false,
                 "sortOrder": "alphabetical",
@@ -115,7 +127,7 @@
             "state": {
               "type": "outgoing-link",
               "state": {
-                "file": "Python FastAPI.md",
+                "file": "Python Telegram Bot.md",
                 "linksCollapsed": false,
                 "unlinkedCollapsed": true
               }
@@ -138,7 +150,7 @@
             "state": {
               "type": "outline",
               "state": {
-                "file": "Python FastAPI.md"
+                "file": "Python Telegram Bot.md"
               }
             }
           },
@@ -181,11 +193,12 @@
       "copilot:Copilot Chat": false
     }
   },
-  "active": "21582480bbd67502",
+  "active": "21dba9a52985a36c",
   "lastOpenFiles": [
+    "Python Telegram Bot.md",
+    "Python FastAPI.md",
     "Taylor Swift - the 1.md",
     "Rust.md",
-    "Python FastAPI.md",
     "Product Colors.md",
     "Debian.md",
     "Corbia spider.md",
@@ -196,7 +209,6 @@
     "How to load osm pbf files in PostgreSQL.md",
     "Untitled 2.md",
     "ComfyUI Fundamentals.md",
-    "Untitled.md",
     "ComfyUI.md",
     "Alpine - How to....md",
     "Alpine.js DOCS.md",
diff --git a/Python Telegram Bot.md b/Python Telegram Bot.md
new file mode 100644
index 0000000..7a029ad
--- /dev/null
+++ b/Python Telegram Bot.md	
@@ -0,0 +1,12 @@
+
+## Setup WebHook
+
+`https://api.telegram.org/bot<bot-token>/setWebhook?url=<webhook-url>`
+
+So it your token is `43289:GOOGOOGAGA44` and your FastAPI endpoint is `https://bot.foo.bar/webhoot/v1`
+
+Then all you have to do is to visit the page:
+
+`https://api.telegram.org/bot43289:GOOGOOGAGA44/setWebhook?url=https://bot.foo.bar/webhoot/v1`
+
+And it will be set.
\ No newline at end of file