Skip to content

fetchMyContacts

This method provides a list of contact objects identifying all users who previously granted authorization to send them telegram messages. Each contact contains the contact's ETH address as well as the ETH address for the protectedData containing their telegram chat ID.

Usage

ts
const 
contactsList
= await
web3telegram
.
fetchMyContacts
();

Return value

The result object contains a list of contact objects. Each contact represents one user who previously granted you authorization to send them messages.

ts
import { type 
Contact
} from '@iexec/web3telegram';