telegram-bot
Telegram Bot API client for Deno.
import { Bot } from "https://github.com/fdschonborn/telegram-bot/raw/master/mod.ts";
const bot = new Bot("[TOKEN]");
for await (const update of bot.pollUpdates()) {
if (!update.message) {
continue;
}
bot.sendMessage(update.message.chat.id, update.message.text || "That was not a text message.");
}
Author: fdschonborn
Source Code: https://github.com/fdschonborn/telegram-bot
#deno #nodejs #node #javascript