UNPKG

@iexec/web3telegram

Version:

Enables secure, blockchain-based messaging by encrypting Telegram user IDs for privacy. It lets users message Ethereum account holders without knowing their Telegram details.

16 lines (15 loc) 857 B
import { AbstractProvider, AbstractSigner, Eip1193Provider } from 'ethers'; import { Contact, FetchUserContactsParams, SendTelegramParams, Web3SignerProvider, Web3TelegramConfigOptions, SendTelegramResponse, FetchMyContactsParams } from './types.js'; export declare class IExecWeb3telegram { private iexec; private ipfsNode; private ipfsGateway; private dataProtectorSubgraph; private dappAddressOrENS; private dappWhitelistAddress; private graphQLClient; constructor(ethProvider?: Eip1193Provider | AbstractProvider | AbstractSigner | Web3SignerProvider | string, options?: Web3TelegramConfigOptions); fetchMyContacts(args?: FetchMyContactsParams): Promise<Contact[]>; fetchUserContacts(args: FetchUserContactsParams): Promise<Contact[]>; sendTelegram(args: SendTelegramParams): Promise<SendTelegramResponse>; }