Type: DialogPeer

Back to types index

You can directly provide the Update or Message 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, a User, an InputPeer, an InputDialogPeer, an InputNotifyPeer, an InputUser, an InputChannel, a Peer, an DialogPeer, NotifyPeer, or a Chat object can also be used.

Possible values (constructors):

dialogPeer

Methods that return an object of this type (methods):

$MadelineProto->messages->getDialogUnreadMarks