NotificaMe Hub icon

NotificaMe Hub

Integração com NotificaMe Hub API

Overview

This node allows you to send a text message to a specific recipient or channel on Telegram via the NotificaMe Hub API. It is useful for automating notifications, alerts, or updates directly to Telegram users or channels from your n8n workflows. Common scenarios include sending automated status updates, alerting team members of important events, or integrating Telegram messaging into customer support processes.

Example use cases:

  • Sending order confirmations to customers via Telegram.
  • Notifying a Telegram group/channel about new leads or tickets.
  • Alerting administrators about system errors or workflow completions.

Properties

Display Name Type Description
ID Do Canal String ID do canal do Telegram
ID Do Destinatário String ID do destinatário no Telegram
Mensagem String Texto da mensagem a ser enviada

All properties are required for this operation.

Output

The output will be a JSON object containing the result of the message-sending operation. While the exact structure depends on the NotificaMe Hub API response, it typically includes fields such as:

{
  "success": true,
  "messageId": "123456789",
  "timestamp": "2024-06-01T12:34:56Z",
  "recipientId": "987654321",
  "channelId": "-1001122334455",
  "message": "Texto enviado"
}
  • success: Indicates if the message was sent successfully.
  • messageId: Unique identifier for the sent message.
  • timestamp: When the message was sent.
  • recipientId: The Telegram user ID that received the message.
  • channelId: The Telegram channel ID (if applicable).
  • message: The content of the sent message.

Note: The actual output may vary depending on the API's implementation.

Dependencies

  • External Service: Requires access to the NotificaMe Hub API.
  • API Credentials: You must configure the notificamehubApi credential in n8n with valid API keys or tokens.
  • Environment: No special environment variables are needed beyond standard n8n configuration.

Troubleshooting

Common Issues:

  • Invalid Channel or Recipient ID: If the provided IDs are incorrect or do not exist, the message will not be delivered. Double-check the IDs in Telegram.
  • Missing Credentials: If the notificamehubApi credential is not set up or is invalid, the node will fail to authenticate.
  • Message Content Errors: If the message exceeds Telegram's length limits or contains unsupported characters, the API may return an error.

Typical Error Messages:

  • "Authentication failed": Check your API credentials in n8n.
  • "Recipient not found" or "Channel not found": Verify the IDs provided.
  • "Message could not be delivered": Ensure the recipient/channel is accessible and the bot has permission to send messages.

Links and References

Discussion