RepositoryJavaScriptCHThụy Sĩ
lukefx

lukefx/hubot-telegram

Hubot adapter for Telegram

160sao
41fork
11issue
1lượt xem

🔌 Kết nối Hubot với Telegram qua adapter chính thức

Hubot adapter duy nhất hỗ trợ đầy đủ Telegram Bot API, từ polling đến webhook, kèm middleware gửi media.

hubot-telegram là adapter cho phép Hubot giao tiếp với Telegram Bot API. Cài đặt qua npm, cấu hình token từ BotFather, chạy bằng bin/hubot -a telegram. Hỗ trợ polling tự động hoặc webhook tùy chọn.

✨ Điểm nổi bật

  • Polling/Webhook linh hoạt: cấu hình bằng TELEGRAM_INTERVAL hoặc TELEGRAM_WEBHOOK
  • Gửi nhiều loại media: sendPhoto, sendAudio, sendDocument, sendVideo, sendSticker, sendVideoNote, sendVoice, sendMediaGroup, sendChatAction
  • Markdown & bàn phím tùy chỉnh: truyền reply_markup và định dạng tin nhắn qua options
  • Hỗ trợ inline query: lắng nghe sự kiện inline_query trên đối tượng robot.telegram
  • Middleware mở rộng Response: các phương thức Telegram được gắn trực tiếp vào đối tượng res

💡 Vì sao đáng chú ý

Không chỉ là một adapter truyền thống, hubot-telegram tích hợp toàn bộ API media của Telegram thông qua middleware, giúp bạn gửi ảnh, video, sticker... mà không cần viết code gọi API thủ công. Đặc biệt hữu ích khi xây dựng bot đa năng trên nền tảng Hubot nhưng cần khai thác hết tiềm năng của Telegram.


#Hubot #Telegram #Bot #Adapter #JavaScript #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
loafoe/hubot-matteruser

Hubot adapter for Mattermost using Web API and Websockets

194
Jan 17, 2025
RepositoryJavaScript
xmppjs/hubot-xmpp

XMPP adapter for Hubot

181
Dec 30, 2022
Repository
AZeC4/TelegramGroup

2026最新悄咪咪收集的10000+个Telegram群合集,附全网最有趣好用的机器人BOT🤖【dianbaodaohang.com】

24.1k
Nov 1, 2026
RepositoryPython
eternnoir/pyTelegramBotAPI

Python Telegram bot api.

8.8k
Oct 31, 2026
RepositoryGo
iyear/tdl

📥 A Telegram toolkit written in Golang

8.3k
Nov 20, 2026
Repository
itgoyo/TelegramGroup

2026最新悄咪咪收集的10000+个Telegram群和频道合集,附全网最有趣好用的机器人BOT🤖,聚合电报导航、电报推荐各种高质量站点。

6.5k
Oct 27, 2026
RepositoryJava
rubenlagus/TelegramBots

Java library to create bots using Telegram Bots API

5.6k
Nov 17, 2026
RepositoryTypeScript
groupultra/telegram-search

🔍 导出并模糊搜索 Telegram 聊天记录 | Export and fuzzy search your Telegram chat history

4.2k
Nov 17, 2026
RepositoryPHP
php-telegram-bot/core

PHP Telegram Bot based on the official Telegram Bot API

4.0k
Nov 18, 2026