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/setWebhook?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