# FeatureTelegramAccountDTO

DTO for Telegram Account configuration (project)

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**apiHash** | **string** | Telegram API Hash (from https://my.telegram.org) - write only, not returned in responses. Required on create, optional on update (null/empty means keep existing value). | [optional] [default to undefined]
**apiId** | **number** | Telegram API ID (from https://my.telegram.org) | [default to undefined]
**authErrorMessage** | **string** | Error message if auth failed | [optional] [readonly] [default to undefined]
**authStatus** | **string** | Current authorization status | [optional] [readonly] [default to undefined]
**availableChats** | [**Array&lt;TelegramChatDTO&gt;**](TelegramChatDTO.md) | Available chats from this account (read-only, synced from backend-telegram) | [optional] [readonly] [default to undefined]
**connected** | **boolean** | Is the Telegram client currently connected | [optional] [readonly] [default to undefined]
**includePrivateChats** | **boolean** | Include private chats in the available chats list (default: false, only groups/channels are listed) | [optional] [default to false]
**lastSyncAt** | **string** | Last sync timestamp | [optional] [readonly] [default to undefined]
**phoneNumber** | **string** | Phone number with country code (e.g., +41790000000) | [default to undefined]
**regionId** | **number** | Region ID where this Telegram client should run | [default to undefined]
**restartAuth** | **boolean** | Set to true to restart authentication flow (use when session expired or auth failed) | [optional] [default to undefined]
**twoFactorPassword** | **string** | Two-factor authentication password (if enabled) | [optional] [default to undefined]
**verificationCode** | **string** | SMS verification code (write-only, for completing auth) | [optional] [default to undefined]

## Example

```typescript
import { FeatureTelegramAccountDTO } from 'js-metacopier-api';

const instance: FeatureTelegramAccountDTO = {
    apiHash,
    apiId,
    authErrorMessage,
    authStatus,
    availableChats,
    connected,
    includePrivateChats,
    lastSyncAt,
    phoneNumber,
    regionId,
    restartAuth,
    twoFactorPassword,
    verificationCode,
};
```

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
