Skip to main content
function useLinkTelegram(): {
  linkTelegram: () => Promise<void>;
  oauthState:   | null
     | OAuthFlowState;
};
A hook for linking a Telegram account to the current user. This is a convenience wrapper around useLinkOAuth for Telegram provider.

Returns

{
  linkTelegram: () => Promise<void>;
  oauthState:   | null
     | OAuthFlowState;
}
An object containing the linkTelegram function and oauthState.
NameType
linkTelegram()() => Promise<void>
oauthState| null | OAuthFlowState