add-telegram

Add Telegram channel integration to Nanobot with async python-telegram-bot v20+.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/mk-knight23/AI-Agent-Nanobot --skill add-telegram-mk-knight23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-telegram
Source: https://github.com/mk-knight23/AI-Agent-Nanobot/tree/main/skills/add-telegram
Command: npx skills add https://github.com/mk-knight23/AI-Agent-Nanobot --skill add-telegram-mk-knight23

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adds Telegram channel support so Nanobot can receive, filter, and respond to Telegram messages without blocking the main asyncio runtime.

Core Features & Use Cases

  • Adds an async python-telegram-bot v20+ channel implementation that integrates with Nanobot's event loop.
  • Registers the TelegramChannel in the channel router, wires trigger-word filtering, and ensures thread-safe dispatch for handler execution.
  • Use Case: Deploy a Telegram bot that accepts commands prefixed with your trigger word and forwards them to Nanobot for processing.

Quick Start

Add a Telegram bot token from BotFather to your environment, run the add-telegram skill to generate the channel code, set TELEGRAM_BOT_TOKEN and NANOBOT_TRIGGER, and start Nanobot to begin receiving messages.

Frequently Asked Questions about add-telegram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a Telegram bot to receive and respond to messages asynchronously?

To connect a Telegram bot for asynchronous messaging, you apply a BotFather token to generate an async python-telegram-bot v20+ handler, enabling non-blocking message reception and thread-safe dispatch within an asyncio runtime.

How does trigger-word filtering work for Telegram bot messages?

Trigger-word filtering works by setting the NANOBOT_TRIGGER environment variable, which ensures the Telegram channel only processes incoming messages prefixed with your specified trigger word before forwarding them for dispatch.

What environment variables do I need to set up a Telegram channel integration?

Setting up a Telegram channel integration requires the TELEGRAM_BOT_TOKEN and NANOBOT_TRIGGER environment variables. The token authenticates your bot with BotFather, while the trigger variable defines the command prefix for message filtering.

Can I use python-telegram-bot v20+ with an existing asyncio event loop?

Yes, python-telegram-bot v20+ integrates with an existing asyncio event loop. The channel implementation registers with the router and ensures thread-safe dispatch for handler execution without blocking the runtime.

What is the best way to deploy a Telegram bot that forwards commands for processing?

The best way to deploy a Telegram bot for command forwarding is to generate an async channel implementation, wire trigger-word filtering, update the channel registry configuration, and start the runtime to receive messages.

Why does my Telegram bot block the main event loop during message handling?

Your Telegram bot blocks the main event loop if it lacks an async handler. This integration uses an async python-telegram-bot v20+ implementation to ensure thread-safe dispatch and non-blocking message reception within the asyncio runtime.