43 lines
989 B
Markdown
43 lines
989 B
Markdown
---
|
|
title: Chat
|
|
description: constructors and methods of type Chat
|
|
---
|
|
## Type: Chat
|
|
[Back to types index](index.md)
|
|
|
|
|
|
|
|
The following syntaxes can also be used:
|
|
|
|
```
|
|
$channels_channelParticipant = '@username'; // Username
|
|
|
|
$channels_channelParticipant = 44700; // bot API id (users)
|
|
$channels_channelParticipant = -492772765; // bot API id (chats)
|
|
$channels_channelParticipant = -10038575794; // bot API id (channels)
|
|
|
|
$channels_channelParticipant = 'user#44700'; // tg-cli style id (users)
|
|
$channels_channelParticipant = 'chat#492772765'; // tg-cli style id (chats)
|
|
$channels_channelParticipant = 'channel#38575794'; // tg-cli style id (channels)
|
|
```
|
|
|
|
|
|
### Possible values (constructors):
|
|
|
|
[chatEmpty](../constructors/chatEmpty.md)
|
|
|
|
[chat](../constructors/chat.md)
|
|
|
|
[chatForbidden](../constructors/chatForbidden.md)
|
|
|
|
[channel](../constructors/channel.md)
|
|
|
|
[channelForbidden](../constructors/channelForbidden.md)
|
|
|
|
|
|
|
|
### Methods that return an object of this type (methods):
|
|
|
|
|
|
|