This commit is contained in:
Daniil Gentili 2018-08-30 20:01:58 +02:00
parent 126051eca8
commit 930cb07d6f
281 changed files with 1615 additions and 225 deletions

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -13,7 +13,7 @@ Get dialog info of peers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peers|Array of [InputDialogPeer](../types/InputDialogPeer.md) | The peers | Yes|
|peers|Array of [Username, chat ID, Update, Message or InputDialogPeer](../types/InputDialogPeer.md) | The peers | Yes|
### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md)

View File

@ -14,7 +14,7 @@ Mark dialog as unread
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|unread|[Bool](../types/Bool.md) | Should it be marked or unmarked as read | Optional|
|peer|[InputDialogPeer](../types/InputDialogPeer.md) | The dialog to mark as unread | Yes|
|peer|[Username, chat ID, Update, Message or InputDialogPeer](../types/InputDialogPeer.md) | The dialog to mark as unread | Yes|
### Return type: [Bool](../types/Bool.md)

View File

@ -14,7 +14,7 @@ Reorder pinned dialogs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|force|[Bool](../types/Bool.md) | Force reordering | Optional|
|order|Array of [InputDialogPeer](../types/InputDialogPeer.md) | New order | Yes|
|order|Array of [Username, chat ID, Update, Message or InputDialogPeer](../types/InputDialogPeer.md) | New order | Yes|
### Return type: [Bool](../types/Bool.md)

View File

@ -14,7 +14,7 @@ Pin or unpin dialog
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|pinned|[Bool](../types/Bool.md) | Pin or unpin the dialog? | Optional|
|peer|[InputDialogPeer](../types/InputDialogPeer.md) | The dialog to pin | Yes|
|peer|[Username, chat ID, Update, Message or InputDialogPeer](../types/InputDialogPeer.md) | The dialog to pin | Yes|
### Return type: [Bool](../types/Bool.md)

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$DialogPeer = '@username'; // Username
$DialogPeer = 'me'; // The currently logged-in user
$DialogPeer = 44700; // bot API id (users)
$DialogPeer = -492772765; // bot API id (chats)
$DialogPeer = -10038575794; // bot API id (channels)
$DialogPeer = 'https://t.me/danogentili'; // t.me URLs
$DialogPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$DialogPeer = 'user#44700'; // tg-cli style id (users)
$DialogPeer = 'chat#492772765'; // tg-cli style id (chats)
$DialogPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[dialogPeer](../constructors/dialogPeer.md)

View File

@ -29,7 +29,7 @@ $InputChannel = 'chat#492772765'; // tg-cli style id (chats)
$InputChannel = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputDialogPeer = '@username'; // Username
$InputDialogPeer = 'me'; // The currently logged-in user
$InputDialogPeer = 44700; // bot API id (users)
$InputDialogPeer = -492772765; // bot API id (chats)
$InputDialogPeer = -10038575794; // bot API id (channels)
$InputDialogPeer = 'https://t.me/danogentili'; // t.me URLs
$InputDialogPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputDialogPeer = 'user#44700'; // tg-cli style id (users)
$InputDialogPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputDialogPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputDialogPeer](../constructors/inputDialogPeer.md)

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -124,4 +124,4 @@ while (true) {
}
```
<a href="https://docs.madelineproto.xyz/docs/SECRET_CHATS.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/SECRET_CHATS.html">Next section</a>

View File

@ -53,8 +53,7 @@ Revision: 63823fc3cc5070bd8a1ebe91e60e1fd583a2f37f
TL Trace (YOU ABSOLUTELY MUST READ THE TEXT BELOW):
PeerHandler.php(327): get_info("dd",false)
TL.php(339): get_info("dd")
['peer']
TL.php(339): get_info("dd")['peer']
While serializing: messages.sendMessage
CallHandler.php(79): serialize_method("messages.sendMessage",{"peer":"@dd","message":"hi"})
APIFactory.php(142): method_call("messages.sendMessage",{"peer":"@dd","message":"hi"},{"datacenter":4})

View File

@ -431,4 +431,4 @@ $output_file_name = $MadelineProto->download_to_file(
);
```
<a href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</a>

View File

@ -103,4 +103,4 @@ Then you can require the package by addding the following line to the require se
"danog/madelineproto":"dev-master"
```
<a href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</a>

View File

@ -302,6 +302,4 @@ The update handling loop is started by the `$MadelineProto->loop()` method, and
To break out of the loop just call `die();`
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>

View File

@ -74,6 +74,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* [Long polling (getupdates)](https://docs.madelineproto.xyz/docs/UPDATES.html#long-polling)
* [Callback](https://docs.madelineproto.xyz/docs/UPDATES.html#callback)
* [Callback multithreaded](https://docs.madelineproto.xyz/docs/UPDATES.html#callback-multithreaded)
* [Noop](https://docs.madelineproto.xyz/docs/UPDATES.html#noop)
* [Settings](https://docs.madelineproto.xyz/docs/SETTINGS.html)
* [Getting info about the current user](https://docs.madelineproto.xyz/docs/SELF.html)
* [Exceptions](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html)

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputChannel = 'chat#492772765'; // tg-cli style id (chats)
$InputChannel = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputChannel = 'chat#492772765'; // tg-cli style id (chats)
$InputChannel = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$InputNotifyPeer = '@username'; // Username
$InputNotifyPeer = 'me'; // The currently logged-in user
$InputNotifyPeer = 44700; // bot API id (users)
$InputNotifyPeer = -492772765; // bot API id (chats)
$InputNotifyPeer = -10038575794; // bot API id (channels)
$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$InputNotifyPeer = 'user#44700'; // tg-cli style id (users)
$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[inputNotifyPeer](../constructors/inputNotifyPeer.md)

View File

@ -29,7 +29,7 @@ $InputPeer = 'chat#492772765'; // tg-cli style id (chats)
$InputPeer = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputUser = 'chat#492772765'; // tg-cli style id (chats)
$InputUser = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -8,6 +8,30 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id.
The following syntaxes can also be used:
```
$NotifyPeer = '@username'; // Username
$NotifyPeer = 'me'; // The currently logged-in user
$NotifyPeer = 44700; // bot API id (users)
$NotifyPeer = -492772765; // bot API id (chats)
$NotifyPeer = -10038575794; // bot API id (channels)
$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs
$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links
$NotifyPeer = 'user#44700'; // tg-cli style id (users)
$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats)
$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels)
```
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):
[notifyPeer](../constructors/notifyPeer.md)

View File

@ -29,7 +29,7 @@ $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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $User = 'chat#492772765'; // tg-cli style id (chats)
$User = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -13,7 +13,7 @@ Get notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -13,7 +13,7 @@ Change notification settings
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|

View File

@ -29,7 +29,7 @@ $Chat = 'chat#492772765'; // tg-cli style id (chats)
$Chat = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

View File

@ -29,7 +29,7 @@ $InputChannel = 'chat#492772765'; // tg-cli style id (chats)
$InputChannel = '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.
A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used.
### Possible values (constructors):

Some files were not shown because too many files have changed in this diff Show More