fetcher/telegram

Description:
  • Fetch proofs using Telegram groups

Source:

Fetch proofs using Telegram groups

Example

import { fetcher } from 'doipjs';
const data = await fetcher.telegram.fn({ user: 'alice', chat: 'alice_identity_proof' });

Members

(static, constant) timeout :number

Description:
  • Default timeout after which the fetch is aborted

Source:
Default Value:
  • 5000

Default timeout after which the fetch is aborted

Type:
  • number

Methods

(static) fn(data, optsopt) → {Promise.<(object|string)>}

Description:
  • Execute a fetch request

Source:
Parameters:
Name Type Attributes Description
data object

Data used in the request

Properties
Name Type Attributes Description
chat string

Telegram public group name (slug)

user string

Telegram username

fetcherTimeout number <optional>

Optional timeout for the fetcher

opts module:types~VerificationConfig <optional>

Options used to enable the request

Returns:

The fetched Telegram object

Type
Promise.<(object|string)>