postIntegrationsTelegramConnectWithHttpInfo method
Mints a short, single-use deep-link code bound to the caller's org and returns the t.me link the console navigates to.
Mints a short, single-use deep-link code bound to the caller's org and returns the t.me link the console navigates to. Org-authed: a caller with no validated principal is 403 (same gate as the framework connect). The code is stored as an oauth_nonce (org,telegram); the webhook's /start handler claims it to bind chat→org. It is short (128-bit hex) so it fits Telegram's 64-char start payload limit.
Note: This method returns the HTTP Response.
Implementation
Future<Response> postIntegrationsTelegramConnectWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/v1/integrations/telegram/connect';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}