BaleMessenger icon

BaleMessenger

Interact with Bale Messenger API

Overview

The "Get Me" operation of the BaleMessenger node's Bot resource is a simple method used to test the bot's authentication token. It retrieves basic information about the bot itself, confirming that the provided API token is valid and the bot is accessible. This operation is beneficial when setting up or debugging your bot integration to ensure that the connection to the Bale Messenger API is correctly established.

Practical example:

  • After entering your bot's API token in n8n credentials, you can use this operation to verify that the token works by fetching the bot's profile details such as its username and ID.

Properties

Name Meaning
(No additional input properties specific to "Get Me") The operation does not require any extra parameters beyond selecting the operation itself.

Note: The node supports many other properties for different operations and resources, but for the "Bot - Get Me" operation, no additional input properties are needed.

Output

The output JSON contains the bot's information as returned by the Bale Messenger API's getMe method. This typically includes fields such as:

  • id: The unique identifier for the bot.
  • is_bot: Boolean indicating that the user is a bot.
  • first_name: The bot's first name.
  • username: The bot's username.
  • Other metadata related to the bot's profile.

The output does not include binary data for this operation.

Example output structure:

{
  "id": 123456789,
  "is_bot": true,
  "first_name": "MyBot",
  "username": "my_bot_username"
}

Dependencies

  • Requires an active Bale Messenger API token credential configured in n8n.
  • Uses the official Bale Messenger API endpoint (https://tapi.bale.ai/bot) via the node-telegram-bot-api library adapted for Bale Messenger.
  • No additional external services or environment variables are required specifically for this operation.

Troubleshooting

  • Invalid Token Error: If the API token is incorrect or expired, the node will fail to retrieve the bot information. Verify that the API token credential is correct and has not been revoked.
  • Network Issues: Connectivity problems to the Bale Messenger API endpoint may cause timeouts or errors. Ensure your server has internet access and can reach https://tapi.bale.ai.
  • API Changes: If Bale Messenger updates their API, some fields might change or become deprecated. Check the official Bale Messenger API documentation if unexpected errors occur.

Links and References


This summary focuses exclusively on the "Bot" resource with the "Get Me" operation as requested.

Discussion