vault backup: 2024-10-03 18:49:49

Affected files:
.obsidian/workspace.json
Python Telegram Bot.md
This commit is contained in:
ed barz 2024-10-03 18:49:49 +02:00
parent 9acea1f8f0
commit 3dc1baf94d
2 changed files with 31 additions and 7 deletions

View File

@ -30,9 +30,21 @@
"source": false "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" "direction": "vertical"
@ -98,7 +110,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "Python FastAPI.md", "file": "Python Telegram Bot.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@ -115,7 +127,7 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
"file": "Python FastAPI.md", "file": "Python Telegram Bot.md",
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
} }
@ -138,7 +150,7 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "Python FastAPI.md" "file": "Python Telegram Bot.md"
} }
} }
}, },
@ -181,11 +193,12 @@
"copilot:Copilot Chat": false "copilot:Copilot Chat": false
} }
}, },
"active": "21582480bbd67502", "active": "21dba9a52985a36c",
"lastOpenFiles": [ "lastOpenFiles": [
"Python Telegram Bot.md",
"Python FastAPI.md",
"Taylor Swift - the 1.md", "Taylor Swift - the 1.md",
"Rust.md", "Rust.md",
"Python FastAPI.md",
"Product Colors.md", "Product Colors.md",
"Debian.md", "Debian.md",
"Corbia spider.md", "Corbia spider.md",
@ -196,7 +209,6 @@
"How to load osm pbf files in PostgreSQL.md", "How to load osm pbf files in PostgreSQL.md",
"Untitled 2.md", "Untitled 2.md",
"ComfyUI Fundamentals.md", "ComfyUI Fundamentals.md",
"Untitled.md",
"ComfyUI.md", "ComfyUI.md",
"Alpine - How to....md", "Alpine - How to....md",
"Alpine.js DOCS.md", "Alpine.js DOCS.md",

12
Python Telegram Bot.md Normal file
View File

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