forked from wukibaka/ddns-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
WingLim
committed
Nov 15, 2021
1 parent
c04d1b5
commit ff0f861
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |