vault backup: 2024-10-03 18:49:49
Affected files: .obsidian/workspace.json Python Telegram Bot.md
This commit is contained in:
parent
9acea1f8f0
commit
3dc1baf94d
|
@ -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",
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue