25### 4. Fork this val & run it
26
27Save your own private version of a `telegram` function to your account by forking this val: https://www.val.town/v/pomdtr.telegram
28
29### 5. Send a test message!
1Migrated from folder: openai/samples/functions/chatSampleFunctionTagging
1Migrated from folder: openai/samples/functions/chatSampleFunctionExtraction
1Migrated from folder: openai/samples/functions/chatSampleFunctionMultiple
1Migrated from folder: openai/samples/functions/schemasWeather
1Migrated from folder: openai/samples/functions/chatSampleFunctionSingle
6
7```js
8function testThisExpressUrl(req, res) {
9 let url = @stevekrouse.thisExpressURL();
10 res.send(`<a href="${url}">${url}</a>`);
6
7```typescript
8async function publishMyFeed() {
9 try {
10 return @pdebie.publishYoutubeToLemmy({
11import { email } from "https://esm.town/v/std/email?v=13";
12
13export default async function (interval: Interval) {
14 const bookingInfo = await resyBot( {
15 slug: 'amaro-bar',
1# Pug HTML Template Renderer
2This function is equivalent to [`pug.render`](https://pugjs.org/api/reference.html#pugrendersource-options-callback) - it takes a Pug template string and renders it to an HTML string. `import(npm:pug)` doesn't work in Val.Town due to Pug's usage of `new Function`, which is forbidden for security reasons, so this function uses Val.Town's `eval` API instead.
3
4## Example
A helper function to build a file's email
Simple functional CSS library for Val Town
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",