You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
$Peer = 'chat#492772765'; // tg-cli style id (chats)
$Peer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[peerUser](../constructors/peerUser.md)
[peerChat](../constructors/peerChat.md)
### Methods that return an object of this type (methods):