2017-04-06 22:15:59 +02:00
---
title: PWRTelegram chat
description: chat attributes, type and example
---
## Constructor: PWRTelegram chat
### Attributes:
| Name | Type | Required |Description|
2017-08-20 17:35:23 +02:00
|----------|---------------|----------|-----------|
2017-04-06 22:27:31 +02:00
|type|[string](API_docs/types/string.md) | Yes|bot, user, channel, supergroup or chat|
|id|[long](API_docs/types/long.md) | Yes|bot API chat id|
2017-05-27 23:21:14 +02:00
|access\_hash|[long](API_docs/types/long.md) | Optional|access hash of peer|
|first\_name|[string](API_docs/types/string.md) | Optional|First name of the user|
2017-04-06 22:27:31 +02:00
|last\_name|[string](API_docs/types/string.md) | Optional|Last name of the user|
2017-04-21 13:13:24 +02:00
|lang\_code|[string](API_docs/types/string.md) | Optional|Language of the user|
2017-04-06 22:27:31 +02:00
|username|[string](API_docs/types/string.md) | Optional|Username|
|verified|[Bool](API_docs/types/Bool.md) | Optional|Is the peer official?|
|restricted|[Bool](API_docs/types/Bool.md) | Optional|Is the peer restricted to the current user?|
|restriction\_reason|[string](API_docs/types/string.md) | Optional|Restriction reason|
|status|[UserStatus](API_docs/types/UserStatus.md) | Optional|Describes last time user was online|
|bot\_inline\_placeholder|[string](API_docs/types/string.md) | Optional|Inline placeholder of inline bot|
2017-07-26 18:38:10 +02:00
|bot\_nochats|[Bool](API_docs/types/Bool.md) | Optional|Can the bot be added to a group|
2017-04-06 22:27:31 +02:00
|about|[string](API_docs/types/string.md) | Optional|Description of supergroups/channels or bios of users|
|bot\_info|[BotInfo](API_docs/types/BotInfo.md) | Optional|Bot info of bots|
|phone\_calls\_available|[Bool](API_docs/types/Bool.md) | Optional|Are phone calls available for that user?|
|phone\_calls\_private|[Bool](API_docs/types/Bool.md) | Optional||
2017-05-27 23:21:14 +02:00
|common\_chats\_count|[int](API_docs/types/int.md) | Optional|Number of chats in common with that user|
2017-04-06 22:27:31 +02:00
|photo|[string](API_docs/types/string.md) | Optional|bot API file id of the profile picture|
|title|[string](API_docs/types/string.md) | Optional|Chat title|
|participants\_count|[int](API_docs/types/int.md) | Optional|Number of participants in the chat.|
|kicked\_count|[int](API_docs/types/int.md) | Optional|Number of users kicked from the chat.|
|admin\_count|[int](API_docs/types/int.md) | Optional|Number of admins in the chat.|
|admin|[Bool](API_docs/types/Bool.md) | Optional|Are you an admin in this chat?|
|all\_members\_are\_administrators|[Bool](API_docs/types/Bool.md) | Optional|True if a group has ‘ All Members Are Admins’ enabled.|
|invite|[string](API_docs/types/string.md) | Optional|Invite link of the chat|
2017-04-06 22:15:59 +02:00
|participants|Array of [Participant ](Participant.md ) | Yes|Chat participants|
2017-04-06 22:27:31 +02:00
|democracy|[Bool](API_docs/types/Bool.md) | Optional|Can everyone add users to this chat?|
|signatures|[Bool](API_docs/types/Bool.md) | Optional|Are channel signatures enabled?|
|can\_view\_participants|[Bool](API_docs/types/Bool.md) | Optional|Can you view participants (you can still view the bots in channels even if this is false)|
|can\_set\_username|[Bool](API_docs/types/Bool.md) | Optional|Can you set the username of this channel/supergroup?|
|migrated\_from\_chat\_id|[int](API_docs/types/int.md) | Optional|MTProto chat id of the original chat (render it negative to make it a bot API chat id)|
|migrated\_from\_max\_id|[int](API_docs/types/int.md) | Optional|Last message id before migration|
|pinned\_msg\_id|[int](API_docs/types/int.md) | Optional|Message id of pinned message|
2017-04-06 22:15:59 +02:00