MadelineProto/old_docs/API_docs_v45/types/Peer.md

39 lines
835 B
Markdown
Raw Normal View History

---
title: Peer
description: constructors and methods of type Peer
---
## Type: Peer
[Back to types index](index.md)
2017-02-12 18:32:28 +01:00
The following syntaxes can also be used:
```
$updateBotInlineSend = '@username'; // Username
$updateBotInlineSend = 44700; // bot API id (users)
$updateBotInlineSend = -492772765; // bot API id (chats)
$updateBotInlineSend = -10038575794; // bot API id (channels)
$updateBotInlineSend = 'user#44700'; // tg-cli style id (users)
$updateBotInlineSend = 'chat#492772765'; // tg-cli style id (chats)
$updateBotInlineSend = 'channel#38575794'; // tg-cli style id (channels)
```
### Possible values (constructors):
[peerUser](../constructors/peerUser.md)
[peerChat](../constructors/peerChat.md)
[peerChannel](../constructors/peerChannel.md)
### Methods that return an object of this type (methods):