Skip to main content

React to Telegram messages with emoji -- one tool call, zero ceremony

Project description

hermes-plugin-telegram-reactions

A Hermes Agent plugin that adds emoji reactions to Telegram messages. One tool call, one HTTP request, zero ceremony.

What it does

Adds a set_reaction tool that reads the current message's chat_id and message_id from the gateway's session environment variables. The agent just passes an emoji -- no need to figure out message IDs or chat IDs manually.

User: that's awesome!
Agent: [reacts with 🔥] Glad you liked it!

Install

pip (recommended)

pip install hermes-plugin-telegram-reactions

Restart Hermes and the tool appears automatically.

Manual (directory plugin)

mkdir -p ~/.hermes/plugins/telegram-reactions
# Copy the plugin files there:
cp hermes_plugin_telegram_reactions/__init__.py ~/.hermes/plugins/telegram-reactions/
cp hermes_plugin_telegram_reactions/tool.py ~/.hermes/plugins/telegram-reactions/

Requirements

  • Hermes Agent with Telegram gateway configured and running
  • aiohttp (included as a dependency)

The plugin only activates when a Telegram bot token is detected. It's invisible on CLI or other platforms.

How it works

Step What happens
Agent calls set_reaction(emoji="🔥") Single tool call
Plugin reads HERMES_SESSION_CHAT_ID and HERMES_SESSION_MESSAGE_ID Set by the gateway automatically
Single POST to telegram.org/bot{token}/setMessageReaction One HTTP request
Done.

No getUpdates, no message polling, no extra commands.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hermes_plugin_telegram_reactions-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file hermes_plugin_telegram_reactions-1.0.0.tar.gz.

File metadata

File hashes

Hashes for hermes_plugin_telegram_reactions-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d8f039260c18f61f5264e311c3434ff198ea09e7d776af0294bff3b74ddc9694
MD5 6cda36873c61a21b624e72d0932e36cd
BLAKE2b-256 aea700d3af0226599b05d7f7950b816744e99d937b18bf51f87ca68ac226ace8

See more details on using hashes here.

File details

Details for the file hermes_plugin_telegram_reactions-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hermes_plugin_telegram_reactions-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f97d4d2ffce4efd37bee016335e8260a76fd0849d62229a6d71beaea09e6c90b
MD5 a96dad8af10aeb44de5f2d13fd5048ec
BLAKE2b-256 435eab64cc351d1aa3ed0d870eb24a1fa2c971f32bc553baf50f76ea565b0eec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page