1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-13 18:27:19 +01:00
MadelineProto/old_docs/API_docs_v18/constructors/inputPeerForeign.md

982 B

title description
inputPeerForeign inputPeerForeign attributes, type and example

Constructor: inputPeerForeign

Back to constructors index

Attributes:

Name Type Required
user_id int Required
access_hash long Required

Type: InputPeer

Example:

$inputPeerForeign = ['_' => 'inputPeerForeign', 'user_id' => int, 'access_hash' => long, ];

The following syntaxes can also be used:

$inputPeerForeign = '@username'; // Username

$inputPeerForeign = 44700; // bot API id (users)
$inputPeerForeign = -492772765; // bot API id (chats)
$inputPeerForeign = -10038575794; // bot API id (channels)

$inputPeerForeign = 'user#44700'; // tg-cli style id (users)
$inputPeerForeign = 'chat#492772765'; // tg-cli style id (chats)
$inputPeerForeign = 'channel#38575794'; // tg-cli style id (channels)