Skip to content

Commit

Permalink
fix: use BOT_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
WingLim committed Nov 15, 2021
1 parent c04d1b5 commit ff0f861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Bot } from 'grammy'

const { BOT_TOKEN, BOT_WEBHOOK } = process.env
const { BOT_TOKEN, BOT_URL } = process.env

const bot = new Bot(BOT_TOKEN)

console.log('Setting Webhook')
let res = await bot.api.setWebhook(BOT_WEBHOOK)
let res = await bot.api.setWebhook(`${BOT_URL}/api/bot`)
console.log(res)

0 comments on commit ff0f861

Please sign in to comment.