Skip to content

Commit

Permalink
fix neurobots
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-Lekomtsev committed Oct 23, 2024
1 parent ff21397 commit 94b92e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ if (!Deno.env.get("TELEGRAM_BOT_TOKEN")) throw new Error("TELEGRAM_BOT_TOKEN is

export const bot = new Bot(Deno.env.get("TELEGRAM_BOT_TOKEN") || "");
export const handleUpdate = webhookCallback(bot, 'std/http');
```
Пояснение к коду:
• Мы импортируем необходимые модули из библиотеки grammY.
• Проверяем, установлен ли токен бота в переменных окружения.
• Создаем экземпляр бота и функцию для обработки обновлений.
Шаг 7: Настройка OpenAI
В папке _shared создайте папку openai, и в ней два файла: index.ts и client.ts.
```
В client.ts вставьте следующий код:

```typescript
Expand Down

0 comments on commit 94b92e0

Please sign in to comment.