Actions116
- 💬 Chats Actions
- 👤 Contacts Actions
- 👥 Groups Actions
- Get Info Admin Only
- Set Messages Admin Only
- Get Messages Admin Only
- Get Invite Code
- Revoke Invite Code
- Get Participants
- Add Participants
- Remove Participants
- Promote To Admin
- Demote To Admin
- Create Group
- Get Groups
- Join Info Group
- Join Group
- Refresh Groups
- Get Group
- Delete Group
- Leave Group
- Get Chat Picture
- Set Picture
- Delete Picture
- Set Description
- Set Subject
- Set Info Admin Only
- 🖥️ Sessions Actions
- 🆔 Profile Actions
- 🖼️ Screenshot Actions
- 📤 Chatting Actions
- 📢 Channels Actions
- 🟢 Status Actions
- ✅ Presence Actions
- 🏷️ Labels Actions
- 🔍 Observability Actions
- 🔑 Auth Actions
Overview
This node operation blocks a contact in a messaging or communication platform. It is useful for scenarios where you want to prevent a specific contact from sending messages or interacting with you. For example, you might use this node to block spam contacts or unwanted users automatically based on certain triggers.
Use Case Examples
- Automatically block a contact when they send a spam message.
- Block a contact based on user input or external criteria in a workflow.
Properties
| Name | Meaning |
|---|---|
| Session | The session identifier used to authenticate and specify the user session for the blocking action. |
| Contact Id | The unique identifier of the contact to be blocked. |
| Request Options | Additional options to customize the request such as batching, SSL certificate validation, proxy settings, and timeout. |
Output
JSON
success- Indicates whether the contact was successfully blocked.contactId- The ID of the contact that was blocked.message- Additional information or status message about the block operation.
Dependencies
- Requires an authenticated session to perform the block operation, typically via an API key or session token.
Troubleshooting
- Ensure the session ID is valid and active; invalid sessions will cause authentication errors.
- Verify the contact ID is correct and exists; invalid contact IDs will result in failure to block.
- Check network settings if using proxy or custom SSL options to avoid connection issues.
- Timeout errors may occur if the server is slow or unresponsive; consider increasing the timeout setting.