Skip to main content

Delete Contact

Deletes a contact from the Telegram client's contact list.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Client Id - The unique identifier of the Telegram client to use for this operation.
  • User Id - The unique identifier of the user to delete from contacts.
  • Access Hash - The access hash of the user to delete from contacts.

How It Works

The Delete Contact node removes a contact from the Telegram client's contact list. When executed, the node:

  1. Validates the provided inputs (Client Id, User Id, and Access Hash)
  2. Creates an InputUser object with the provided User Id and Access Hash
  3. Uses the Telegram client to delete the contact from the user's contact list

Requirements

  • A valid Telegram client session with appropriate permissions
  • Valid User Id and Access Hash of the contact to delete
  • Client Id must match an existing Telegram client session

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Client Id
  • Empty or invalid User Id
  • Empty or invalid Access Hash

Usage Notes

  • The contact will be removed from the Telegram client's contact list
  • The User Id and Access Hash are required to identify the contact to delete
  • These values can typically be obtained from other Telegram nodes that return user information
  • The Client Id must correspond to an active Telegram client session