diff --git a/docs/API_docs/constructors/channel.md b/docs/API_docs/constructors/channel.md index 1b7ba64d..37df6dca 100644 --- a/docs/API_docs/constructors/channel.md +++ b/docs/API_docs/constructors/channel.md @@ -43,16 +43,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'democracy' => true, 'signatures' => true, 'min' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/channelForbidden.md b/docs/API_docs/constructors/channelForbidden.md index 36b7ac28..f44942eb 100644 --- a/docs/API_docs/constructors/channelForbidden.md +++ b/docs/API_docs/constructors/channelForbidden.md @@ -28,16 +28,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'broadcast' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/chat.md b/docs/API_docs/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/docs/API_docs/constructors/chat.md +++ b/docs/API_docs/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/chatEmpty.md b/docs/API_docs/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/docs/API_docs/constructors/chatEmpty.md +++ b/docs/API_docs/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/chatForbidden.md b/docs/API_docs/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/docs/API_docs/constructors/chatForbidden.md +++ b/docs/API_docs/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputChannel.md b/docs/API_docs/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/docs/API_docs/constructors/inputChannel.md +++ b/docs/API_docs/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputChannelEmpty.md b/docs/API_docs/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/docs/API_docs/constructors/inputChannelEmpty.md +++ b/docs/API_docs/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputPeerChannel.md b/docs/API_docs/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/docs/API_docs/constructors/inputPeerChannel.md +++ b/docs/API_docs/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputPeerChat.md b/docs/API_docs/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/docs/API_docs/constructors/inputPeerChat.md +++ b/docs/API_docs/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputPeerEmpty.md b/docs/API_docs/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/docs/API_docs/constructors/inputPeerEmpty.md +++ b/docs/API_docs/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputPeerSelf.md b/docs/API_docs/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/docs/API_docs/constructors/inputPeerSelf.md +++ b/docs/API_docs/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputPeerUser.md b/docs/API_docs/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/docs/API_docs/constructors/inputPeerUser.md +++ b/docs/API_docs/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputUser.md b/docs/API_docs/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/docs/API_docs/constructors/inputUser.md +++ b/docs/API_docs/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputUserEmpty.md b/docs/API_docs/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/docs/API_docs/constructors/inputUserEmpty.md +++ b/docs/API_docs/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/inputUserSelf.md b/docs/API_docs/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/docs/API_docs/constructors/inputUserSelf.md +++ b/docs/API_docs/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/peerChannel.md b/docs/API_docs/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/docs/API_docs/constructors/peerChannel.md +++ b/docs/API_docs/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/peerChat.md b/docs/API_docs/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/docs/API_docs/constructors/peerChat.md +++ b/docs/API_docs/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/peerUser.md b/docs/API_docs/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/docs/API_docs/constructors/peerUser.md +++ b/docs/API_docs/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/user.md b/docs/API_docs/constructors/user.md index efd0a934..5b26821b 100644 --- a/docs/API_docs/constructors/user.md +++ b/docs/API_docs/constructors/user.md @@ -45,16 +45,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'restricted' => true, 'min' => true, 'bot_inline_geo' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => string, 'bot_inline_placeholder' => string, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/constructors/userEmpty.md b/docs/API_docs/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/docs/API_docs/constructors/userEmpty.md +++ b/docs/API_docs/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/docs/API_docs/types/Chat.md b/docs/API_docs/types/Chat.md index 1dc2c40e..4f470e1d 100644 --- a/docs/API_docs/types/Chat.md +++ b/docs/API_docs/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$phoneCallDiscardReasonBusy = '@username'; // Username + +$phoneCallDiscardReasonBusy = 44700; // bot API id (users) +$phoneCallDiscardReasonBusy = -492772765; // bot API id (chats) +$phoneCallDiscardReasonBusy = -10038575794; // bot API id (channels) + +$phoneCallDiscardReasonBusy = 'user#44700'; // tg-cli style id (users) +$phoneCallDiscardReasonBusy = 'chat#492772765'; // tg-cli style id (chats) +$phoneCallDiscardReasonBusy = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/docs/API_docs/types/InputChannel.md b/docs/API_docs/types/InputChannel.md index b573025d..30e3082c 100644 --- a/docs/API_docs/types/InputChannel.md +++ b/docs/API_docs/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$phoneCallDiscardReasonBusy = '@username'; // Username + +$phoneCallDiscardReasonBusy = 44700; // bot API id (users) +$phoneCallDiscardReasonBusy = -492772765; // bot API id (chats) +$phoneCallDiscardReasonBusy = -10038575794; // bot API id (channels) + +$phoneCallDiscardReasonBusy = 'user#44700'; // tg-cli style id (users) +$phoneCallDiscardReasonBusy = 'chat#492772765'; // tg-cli style id (chats) +$phoneCallDiscardReasonBusy = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/docs/API_docs/types/InputPeer.md b/docs/API_docs/types/InputPeer.md index 7adf47ab..f4c35c30 100644 --- a/docs/API_docs/types/InputPeer.md +++ b/docs/API_docs/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$phoneCallDiscardReasonBusy = '@username'; // Username + +$phoneCallDiscardReasonBusy = 44700; // bot API id (users) +$phoneCallDiscardReasonBusy = -492772765; // bot API id (chats) +$phoneCallDiscardReasonBusy = -10038575794; // bot API id (channels) + +$phoneCallDiscardReasonBusy = 'user#44700'; // tg-cli style id (users) +$phoneCallDiscardReasonBusy = 'chat#492772765'; // tg-cli style id (chats) +$phoneCallDiscardReasonBusy = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/docs/API_docs/types/InputUser.md b/docs/API_docs/types/InputUser.md index c5ced2f7..c4ebc01b 100644 --- a/docs/API_docs/types/InputUser.md +++ b/docs/API_docs/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$phoneCallDiscardReasonBusy = '@username'; // Username + +$phoneCallDiscardReasonBusy = 44700; // bot API id (users) +$phoneCallDiscardReasonBusy = -492772765; // bot API id (chats) +$phoneCallDiscardReasonBusy = -10038575794; // bot API id (channels) + +$phoneCallDiscardReasonBusy = 'user#44700'; // tg-cli style id (users) +$phoneCallDiscardReasonBusy = 'chat#492772765'; // tg-cli style id (chats) +$phoneCallDiscardReasonBusy = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/docs/API_docs/types/Peer.md b/docs/API_docs/types/Peer.md index d4aa8884..5f6cb3c3 100644 --- a/docs/API_docs/types/Peer.md +++ b/docs/API_docs/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$phoneCallDiscardReasonBusy = '@username'; // Username + +$phoneCallDiscardReasonBusy = 44700; // bot API id (users) +$phoneCallDiscardReasonBusy = -492772765; // bot API id (chats) +$phoneCallDiscardReasonBusy = -10038575794; // bot API id (channels) + +$phoneCallDiscardReasonBusy = 'user#44700'; // tg-cli style id (users) +$phoneCallDiscardReasonBusy = 'chat#492772765'; // tg-cli style id (chats) +$phoneCallDiscardReasonBusy = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/docs/API_docs/types/User.md b/docs/API_docs/types/User.md index 97f81af7..1a333261 100644 --- a/docs/API_docs/types/User.md +++ b/docs/API_docs/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$phoneCallDiscardReasonBusy = '@username'; // Username + +$phoneCallDiscardReasonBusy = 44700; // bot API id (users) +$phoneCallDiscardReasonBusy = -492772765; // bot API id (chats) +$phoneCallDiscardReasonBusy = -10038575794; // bot API id (channels) + +$phoneCallDiscardReasonBusy = 'user#44700'; // tg-cli style id (users) +$phoneCallDiscardReasonBusy = 'chat#492772765'; // tg-cli style id (chats) +$phoneCallDiscardReasonBusy = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/docs/index.md b/docs/index.md index 366876e0..3741525f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -16,7 +16,7 @@ PHP implementation of MTProto, based on [telepy](https://github.com/griganton/te This project can run on PHP 7 and HHVM, only 64 bit systems are supported ATM. -Also note that MadelineProto will perform better if a big math extension like gmp or bcmath is installed. +Also note that MadelineProto will perform better if python and a big math extension like gmp or bcmath are installed. This project is in beta state. diff --git a/old_docs/API_docs_v18/constructors/chat.md b/old_docs/API_docs_v18/constructors/chat.md index 9b88ccac..2d47f519 100644 --- a/old_docs/API_docs_v18/constructors/chat.md +++ b/old_docs/API_docs_v18/constructors/chat.md @@ -30,16 +30,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'left' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/chatEmpty.md b/old_docs/API_docs_v18/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v18/constructors/chatEmpty.md +++ b/old_docs/API_docs_v18/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/chatForbidden.md b/old_docs/API_docs_v18/constructors/chatForbidden.md index d79c41f9..1a52a30f 100644 --- a/old_docs/API_docs_v18/constructors/chatForbidden.md +++ b/old_docs/API_docs_v18/constructors/chatForbidden.md @@ -26,16 +26,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, 'date' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputPeerChat.md b/old_docs/API_docs_v18/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v18/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v18/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputPeerContact.md b/old_docs/API_docs_v18/constructors/inputPeerContact.md index 58501d74..f489eaf3 100644 --- a/old_docs/API_docs_v18/constructors/inputPeerContact.md +++ b/old_docs/API_docs_v18/constructors/inputPeerContact.md @@ -24,16 +24,3 @@ description: inputPeerContact attributes, type and example $inputPeerContact = ['_' => 'inputPeerContact', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerContact = '@username'; // Username - -$inputPeerContact = 44700; // bot API id (users) -$inputPeerContact = -492772765; // bot API id (chats) -$inputPeerContact = -10038575794; // bot API id (channels) - -$inputPeerContact = 'user#44700'; // tg-cli style id (users) -$inputPeerContact = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputPeerEmpty.md b/old_docs/API_docs_v18/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v18/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v18/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputPeerForeign.md b/old_docs/API_docs_v18/constructors/inputPeerForeign.md index 2b839024..5c450d78 100644 --- a/old_docs/API_docs_v18/constructors/inputPeerForeign.md +++ b/old_docs/API_docs_v18/constructors/inputPeerForeign.md @@ -25,16 +25,3 @@ description: inputPeerForeign attributes, type and 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) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputPeerSelf.md b/old_docs/API_docs_v18/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v18/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v18/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputUserContact.md b/old_docs/API_docs_v18/constructors/inputUserContact.md index afd37c2d..b3fe27dc 100644 --- a/old_docs/API_docs_v18/constructors/inputUserContact.md +++ b/old_docs/API_docs_v18/constructors/inputUserContact.md @@ -24,16 +24,3 @@ description: inputUserContact attributes, type and example $inputUserContact = ['_' => 'inputUserContact', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputUserContact = '@username'; // Username - -$inputUserContact = 44700; // bot API id (users) -$inputUserContact = -492772765; // bot API id (chats) -$inputUserContact = -10038575794; // bot API id (channels) - -$inputUserContact = 'user#44700'; // tg-cli style id (users) -$inputUserContact = 'chat#492772765'; // tg-cli style id (chats) -$inputUserContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputUserEmpty.md b/old_docs/API_docs_v18/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v18/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v18/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputUserForeign.md b/old_docs/API_docs_v18/constructors/inputUserForeign.md index 26b0c8a9..d06f6a27 100644 --- a/old_docs/API_docs_v18/constructors/inputUserForeign.md +++ b/old_docs/API_docs_v18/constructors/inputUserForeign.md @@ -25,16 +25,3 @@ description: inputUserForeign attributes, type and example $inputUserForeign = ['_' => 'inputUserForeign', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUserForeign = '@username'; // Username - -$inputUserForeign = 44700; // bot API id (users) -$inputUserForeign = -492772765; // bot API id (chats) -$inputUserForeign = -10038575794; // bot API id (channels) - -$inputUserForeign = 'user#44700'; // tg-cli style id (users) -$inputUserForeign = 'chat#492772765'; // tg-cli style id (chats) -$inputUserForeign = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/inputUserSelf.md b/old_docs/API_docs_v18/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v18/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v18/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/peerChat.md b/old_docs/API_docs_v18/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v18/constructors/peerChat.md +++ b/old_docs/API_docs_v18/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/peerUser.md b/old_docs/API_docs_v18/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v18/constructors/peerUser.md +++ b/old_docs/API_docs_v18/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/userContact.md b/old_docs/API_docs_v18/constructors/userContact.md index f8de255e..a8f26385 100644 --- a/old_docs/API_docs_v18/constructors/userContact.md +++ b/old_docs/API_docs_v18/constructors/userContact.md @@ -31,16 +31,3 @@ description: userContact attributes, type and example $userContact = ['_' => 'userContact', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userContact = '@username'; // Username - -$userContact = 44700; // bot API id (users) -$userContact = -492772765; // bot API id (chats) -$userContact = -10038575794; // bot API id (channels) - -$userContact = 'user#44700'; // tg-cli style id (users) -$userContact = 'chat#492772765'; // tg-cli style id (chats) -$userContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/userDeleted.md b/old_docs/API_docs_v18/constructors/userDeleted.md index fe7cfdd1..58059f88 100644 --- a/old_docs/API_docs_v18/constructors/userDeleted.md +++ b/old_docs/API_docs_v18/constructors/userDeleted.md @@ -27,16 +27,3 @@ description: userDeleted attributes, type and example $userDeleted = ['_' => 'userDeleted', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, ]; ``` -The following syntaxes can also be used: - -``` -$userDeleted = '@username'; // Username - -$userDeleted = 44700; // bot API id (users) -$userDeleted = -492772765; // bot API id (chats) -$userDeleted = -10038575794; // bot API id (channels) - -$userDeleted = 'user#44700'; // tg-cli style id (users) -$userDeleted = 'chat#492772765'; // tg-cli style id (chats) -$userDeleted = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/userEmpty.md b/old_docs/API_docs_v18/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v18/constructors/userEmpty.md +++ b/old_docs/API_docs_v18/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/userForeign.md b/old_docs/API_docs_v18/constructors/userForeign.md index faa7cb3e..edfe986e 100644 --- a/old_docs/API_docs_v18/constructors/userForeign.md +++ b/old_docs/API_docs_v18/constructors/userForeign.md @@ -30,16 +30,3 @@ description: userForeign attributes, type and example $userForeign = ['_' => 'userForeign', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userForeign = '@username'; // Username - -$userForeign = 44700; // bot API id (users) -$userForeign = -492772765; // bot API id (chats) -$userForeign = -10038575794; // bot API id (channels) - -$userForeign = 'user#44700'; // tg-cli style id (users) -$userForeign = 'chat#492772765'; // tg-cli style id (chats) -$userForeign = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/userRequest.md b/old_docs/API_docs_v18/constructors/userRequest.md index 98da6ec8..062f865e 100644 --- a/old_docs/API_docs_v18/constructors/userRequest.md +++ b/old_docs/API_docs_v18/constructors/userRequest.md @@ -31,16 +31,3 @@ description: userRequest attributes, type and example $userRequest = ['_' => 'userRequest', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userRequest = '@username'; // Username - -$userRequest = 44700; // bot API id (users) -$userRequest = -492772765; // bot API id (chats) -$userRequest = -10038575794; // bot API id (channels) - -$userRequest = 'user#44700'; // tg-cli style id (users) -$userRequest = 'chat#492772765'; // tg-cli style id (chats) -$userRequest = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/userSelf.md b/old_docs/API_docs_v18/constructors/userSelf.md index 29e7dd96..d6a06961 100644 --- a/old_docs/API_docs_v18/constructors/userSelf.md +++ b/old_docs/API_docs_v18/constructors/userSelf.md @@ -31,16 +31,3 @@ description: userSelf attributes, type and example $userSelf = ['_' => 'userSelf', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'inactive' => Bool, ]; ``` -The following syntaxes can also be used: - -``` -$userSelf = '@username'; // Username - -$userSelf = 44700; // bot API id (users) -$userSelf = -492772765; // bot API id (chats) -$userSelf = -10038575794; // bot API id (channels) - -$userSelf = 'user#44700'; // tg-cli style id (users) -$userSelf = 'chat#492772765'; // tg-cli style id (chats) -$userSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v18/types/Chat.md b/old_docs/API_docs_v18/types/Chat.md index 81db9ec6..7ddf1175 100644 --- a/old_docs/API_docs_v18/types/Chat.md +++ b/old_docs/API_docs_v18/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$updateServiceNotification = '@username'; // Username + +$updateServiceNotification = 44700; // bot API id (users) +$updateServiceNotification = -492772765; // bot API id (chats) +$updateServiceNotification = -10038575794; // bot API id (channels) + +$updateServiceNotification = 'user#44700'; // tg-cli style id (users) +$updateServiceNotification = 'chat#492772765'; // tg-cli style id (chats) +$updateServiceNotification = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v18/types/InputPeer.md b/old_docs/API_docs_v18/types/InputPeer.md index c694639e..1f84680f 100644 --- a/old_docs/API_docs_v18/types/InputPeer.md +++ b/old_docs/API_docs_v18/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$updateServiceNotification = '@username'; // Username + +$updateServiceNotification = 44700; // bot API id (users) +$updateServiceNotification = -492772765; // bot API id (chats) +$updateServiceNotification = -10038575794; // bot API id (channels) + +$updateServiceNotification = 'user#44700'; // tg-cli style id (users) +$updateServiceNotification = 'chat#492772765'; // tg-cli style id (chats) +$updateServiceNotification = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v18/types/InputUser.md b/old_docs/API_docs_v18/types/InputUser.md index fb5f01eb..fe4893c6 100644 --- a/old_docs/API_docs_v18/types/InputUser.md +++ b/old_docs/API_docs_v18/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$updateServiceNotification = '@username'; // Username + +$updateServiceNotification = 44700; // bot API id (users) +$updateServiceNotification = -492772765; // bot API id (chats) +$updateServiceNotification = -10038575794; // bot API id (channels) + +$updateServiceNotification = 'user#44700'; // tg-cli style id (users) +$updateServiceNotification = 'chat#492772765'; // tg-cli style id (chats) +$updateServiceNotification = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v18/types/Peer.md b/old_docs/API_docs_v18/types/Peer.md index 85fc991d..3818bff9 100644 --- a/old_docs/API_docs_v18/types/Peer.md +++ b/old_docs/API_docs_v18/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$updateServiceNotification = '@username'; // Username + +$updateServiceNotification = 44700; // bot API id (users) +$updateServiceNotification = -492772765; // bot API id (chats) +$updateServiceNotification = -10038575794; // bot API id (channels) + +$updateServiceNotification = 'user#44700'; // tg-cli style id (users) +$updateServiceNotification = 'chat#492772765'; // tg-cli style id (chats) +$updateServiceNotification = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v18/types/User.md b/old_docs/API_docs_v18/types/User.md index 4fc64f38..a997f726 100644 --- a/old_docs/API_docs_v18/types/User.md +++ b/old_docs/API_docs_v18/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$updateServiceNotification = '@username'; // Username + +$updateServiceNotification = 44700; // bot API id (users) +$updateServiceNotification = -492772765; // bot API id (chats) +$updateServiceNotification = -10038575794; // bot API id (channels) + +$updateServiceNotification = 'user#44700'; // tg-cli style id (users) +$updateServiceNotification = 'chat#492772765'; // tg-cli style id (chats) +$updateServiceNotification = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v23/constructors/chat.md b/old_docs/API_docs_v23/constructors/chat.md index 9b88ccac..2d47f519 100644 --- a/old_docs/API_docs_v23/constructors/chat.md +++ b/old_docs/API_docs_v23/constructors/chat.md @@ -30,16 +30,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'left' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/chatEmpty.md b/old_docs/API_docs_v23/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v23/constructors/chatEmpty.md +++ b/old_docs/API_docs_v23/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/chatForbidden.md b/old_docs/API_docs_v23/constructors/chatForbidden.md index d79c41f9..1a52a30f 100644 --- a/old_docs/API_docs_v23/constructors/chatForbidden.md +++ b/old_docs/API_docs_v23/constructors/chatForbidden.md @@ -26,16 +26,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, 'date' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputPeerChat.md b/old_docs/API_docs_v23/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v23/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v23/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputPeerContact.md b/old_docs/API_docs_v23/constructors/inputPeerContact.md index 58501d74..f489eaf3 100644 --- a/old_docs/API_docs_v23/constructors/inputPeerContact.md +++ b/old_docs/API_docs_v23/constructors/inputPeerContact.md @@ -24,16 +24,3 @@ description: inputPeerContact attributes, type and example $inputPeerContact = ['_' => 'inputPeerContact', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerContact = '@username'; // Username - -$inputPeerContact = 44700; // bot API id (users) -$inputPeerContact = -492772765; // bot API id (chats) -$inputPeerContact = -10038575794; // bot API id (channels) - -$inputPeerContact = 'user#44700'; // tg-cli style id (users) -$inputPeerContact = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputPeerEmpty.md b/old_docs/API_docs_v23/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v23/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v23/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputPeerForeign.md b/old_docs/API_docs_v23/constructors/inputPeerForeign.md index 2b839024..5c450d78 100644 --- a/old_docs/API_docs_v23/constructors/inputPeerForeign.md +++ b/old_docs/API_docs_v23/constructors/inputPeerForeign.md @@ -25,16 +25,3 @@ description: inputPeerForeign attributes, type and 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) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputPeerSelf.md b/old_docs/API_docs_v23/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v23/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v23/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputUserContact.md b/old_docs/API_docs_v23/constructors/inputUserContact.md index afd37c2d..b3fe27dc 100644 --- a/old_docs/API_docs_v23/constructors/inputUserContact.md +++ b/old_docs/API_docs_v23/constructors/inputUserContact.md @@ -24,16 +24,3 @@ description: inputUserContact attributes, type and example $inputUserContact = ['_' => 'inputUserContact', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputUserContact = '@username'; // Username - -$inputUserContact = 44700; // bot API id (users) -$inputUserContact = -492772765; // bot API id (chats) -$inputUserContact = -10038575794; // bot API id (channels) - -$inputUserContact = 'user#44700'; // tg-cli style id (users) -$inputUserContact = 'chat#492772765'; // tg-cli style id (chats) -$inputUserContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputUserEmpty.md b/old_docs/API_docs_v23/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v23/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v23/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputUserForeign.md b/old_docs/API_docs_v23/constructors/inputUserForeign.md index 26b0c8a9..d06f6a27 100644 --- a/old_docs/API_docs_v23/constructors/inputUserForeign.md +++ b/old_docs/API_docs_v23/constructors/inputUserForeign.md @@ -25,16 +25,3 @@ description: inputUserForeign attributes, type and example $inputUserForeign = ['_' => 'inputUserForeign', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUserForeign = '@username'; // Username - -$inputUserForeign = 44700; // bot API id (users) -$inputUserForeign = -492772765; // bot API id (chats) -$inputUserForeign = -10038575794; // bot API id (channels) - -$inputUserForeign = 'user#44700'; // tg-cli style id (users) -$inputUserForeign = 'chat#492772765'; // tg-cli style id (chats) -$inputUserForeign = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/inputUserSelf.md b/old_docs/API_docs_v23/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v23/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v23/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/peerChat.md b/old_docs/API_docs_v23/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v23/constructors/peerChat.md +++ b/old_docs/API_docs_v23/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/peerUser.md b/old_docs/API_docs_v23/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v23/constructors/peerUser.md +++ b/old_docs/API_docs_v23/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/userContact.md b/old_docs/API_docs_v23/constructors/userContact.md index f8de255e..a8f26385 100644 --- a/old_docs/API_docs_v23/constructors/userContact.md +++ b/old_docs/API_docs_v23/constructors/userContact.md @@ -31,16 +31,3 @@ description: userContact attributes, type and example $userContact = ['_' => 'userContact', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userContact = '@username'; // Username - -$userContact = 44700; // bot API id (users) -$userContact = -492772765; // bot API id (chats) -$userContact = -10038575794; // bot API id (channels) - -$userContact = 'user#44700'; // tg-cli style id (users) -$userContact = 'chat#492772765'; // tg-cli style id (chats) -$userContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/userDeleted.md b/old_docs/API_docs_v23/constructors/userDeleted.md index fe7cfdd1..58059f88 100644 --- a/old_docs/API_docs_v23/constructors/userDeleted.md +++ b/old_docs/API_docs_v23/constructors/userDeleted.md @@ -27,16 +27,3 @@ description: userDeleted attributes, type and example $userDeleted = ['_' => 'userDeleted', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, ]; ``` -The following syntaxes can also be used: - -``` -$userDeleted = '@username'; // Username - -$userDeleted = 44700; // bot API id (users) -$userDeleted = -492772765; // bot API id (chats) -$userDeleted = -10038575794; // bot API id (channels) - -$userDeleted = 'user#44700'; // tg-cli style id (users) -$userDeleted = 'chat#492772765'; // tg-cli style id (chats) -$userDeleted = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/userEmpty.md b/old_docs/API_docs_v23/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v23/constructors/userEmpty.md +++ b/old_docs/API_docs_v23/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/userForeign.md b/old_docs/API_docs_v23/constructors/userForeign.md index faa7cb3e..edfe986e 100644 --- a/old_docs/API_docs_v23/constructors/userForeign.md +++ b/old_docs/API_docs_v23/constructors/userForeign.md @@ -30,16 +30,3 @@ description: userForeign attributes, type and example $userForeign = ['_' => 'userForeign', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userForeign = '@username'; // Username - -$userForeign = 44700; // bot API id (users) -$userForeign = -492772765; // bot API id (chats) -$userForeign = -10038575794; // bot API id (channels) - -$userForeign = 'user#44700'; // tg-cli style id (users) -$userForeign = 'chat#492772765'; // tg-cli style id (chats) -$userForeign = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/userRequest.md b/old_docs/API_docs_v23/constructors/userRequest.md index 98da6ec8..062f865e 100644 --- a/old_docs/API_docs_v23/constructors/userRequest.md +++ b/old_docs/API_docs_v23/constructors/userRequest.md @@ -31,16 +31,3 @@ description: userRequest attributes, type and example $userRequest = ['_' => 'userRequest', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userRequest = '@username'; // Username - -$userRequest = 44700; // bot API id (users) -$userRequest = -492772765; // bot API id (chats) -$userRequest = -10038575794; // bot API id (channels) - -$userRequest = 'user#44700'; // tg-cli style id (users) -$userRequest = 'chat#492772765'; // tg-cli style id (chats) -$userRequest = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/constructors/userSelf.md b/old_docs/API_docs_v23/constructors/userSelf.md index 29e7dd96..d6a06961 100644 --- a/old_docs/API_docs_v23/constructors/userSelf.md +++ b/old_docs/API_docs_v23/constructors/userSelf.md @@ -31,16 +31,3 @@ description: userSelf attributes, type and example $userSelf = ['_' => 'userSelf', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'inactive' => Bool, ]; ``` -The following syntaxes can also be used: - -``` -$userSelf = '@username'; // Username - -$userSelf = 44700; // bot API id (users) -$userSelf = -492772765; // bot API id (chats) -$userSelf = -10038575794; // bot API id (channels) - -$userSelf = 'user#44700'; // tg-cli style id (users) -$userSelf = 'chat#492772765'; // tg-cli style id (chats) -$userSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v23/types/Chat.md b/old_docs/API_docs_v23/types/Chat.md index 81db9ec6..80aa84d8 100644 --- a/old_docs/API_docs_v23/types/Chat.md +++ b/old_docs/API_docs_v23/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$disabledFeature = '@username'; // Username + +$disabledFeature = 44700; // bot API id (users) +$disabledFeature = -492772765; // bot API id (chats) +$disabledFeature = -10038575794; // bot API id (channels) + +$disabledFeature = 'user#44700'; // tg-cli style id (users) +$disabledFeature = 'chat#492772765'; // tg-cli style id (chats) +$disabledFeature = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v23/types/InputPeer.md b/old_docs/API_docs_v23/types/InputPeer.md index c694639e..37fd59fe 100644 --- a/old_docs/API_docs_v23/types/InputPeer.md +++ b/old_docs/API_docs_v23/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$disabledFeature = '@username'; // Username + +$disabledFeature = 44700; // bot API id (users) +$disabledFeature = -492772765; // bot API id (chats) +$disabledFeature = -10038575794; // bot API id (channels) + +$disabledFeature = 'user#44700'; // tg-cli style id (users) +$disabledFeature = 'chat#492772765'; // tg-cli style id (chats) +$disabledFeature = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v23/types/InputUser.md b/old_docs/API_docs_v23/types/InputUser.md index fb5f01eb..3c620be6 100644 --- a/old_docs/API_docs_v23/types/InputUser.md +++ b/old_docs/API_docs_v23/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$disabledFeature = '@username'; // Username + +$disabledFeature = 44700; // bot API id (users) +$disabledFeature = -492772765; // bot API id (chats) +$disabledFeature = -10038575794; // bot API id (channels) + +$disabledFeature = 'user#44700'; // tg-cli style id (users) +$disabledFeature = 'chat#492772765'; // tg-cli style id (chats) +$disabledFeature = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v23/types/Peer.md b/old_docs/API_docs_v23/types/Peer.md index 85fc991d..3b5b4caa 100644 --- a/old_docs/API_docs_v23/types/Peer.md +++ b/old_docs/API_docs_v23/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$disabledFeature = '@username'; // Username + +$disabledFeature = 44700; // bot API id (users) +$disabledFeature = -492772765; // bot API id (chats) +$disabledFeature = -10038575794; // bot API id (channels) + +$disabledFeature = 'user#44700'; // tg-cli style id (users) +$disabledFeature = 'chat#492772765'; // tg-cli style id (chats) +$disabledFeature = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v23/types/User.md b/old_docs/API_docs_v23/types/User.md index e9e2e34e..0a8fcab0 100644 --- a/old_docs/API_docs_v23/types/User.md +++ b/old_docs/API_docs_v23/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$disabledFeature = '@username'; // Username + +$disabledFeature = 44700; // bot API id (users) +$disabledFeature = -492772765; // bot API id (chats) +$disabledFeature = -10038575794; // bot API id (channels) + +$disabledFeature = 'user#44700'; // tg-cli style id (users) +$disabledFeature = 'chat#492772765'; // tg-cli style id (chats) +$disabledFeature = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v25/constructors/chat.md b/old_docs/API_docs_v25/constructors/chat.md index 9b88ccac..2d47f519 100644 --- a/old_docs/API_docs_v25/constructors/chat.md +++ b/old_docs/API_docs_v25/constructors/chat.md @@ -30,16 +30,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'left' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/chatEmpty.md b/old_docs/API_docs_v25/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v25/constructors/chatEmpty.md +++ b/old_docs/API_docs_v25/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/chatForbidden.md b/old_docs/API_docs_v25/constructors/chatForbidden.md index d79c41f9..1a52a30f 100644 --- a/old_docs/API_docs_v25/constructors/chatForbidden.md +++ b/old_docs/API_docs_v25/constructors/chatForbidden.md @@ -26,16 +26,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, 'date' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/geoChat.md b/old_docs/API_docs_v25/constructors/geoChat.md index 507e62c3..f2c07c49 100644 --- a/old_docs/API_docs_v25/constructors/geoChat.md +++ b/old_docs/API_docs_v25/constructors/geoChat.md @@ -34,16 +34,3 @@ description: geoChat attributes, type and example $geoChat = ['_' => 'geoChat', 'id' => int, 'access_hash' => long, 'title' => string, 'address' => string, 'venue' => string, 'geo' => GeoPoint, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'checked_in' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$geoChat = '@username'; // Username - -$geoChat = 44700; // bot API id (users) -$geoChat = -492772765; // bot API id (chats) -$geoChat = -10038575794; // bot API id (channels) - -$geoChat = 'user#44700'; // tg-cli style id (users) -$geoChat = 'chat#492772765'; // tg-cli style id (chats) -$geoChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputPeerChat.md b/old_docs/API_docs_v25/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v25/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v25/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputPeerContact.md b/old_docs/API_docs_v25/constructors/inputPeerContact.md index 58501d74..f489eaf3 100644 --- a/old_docs/API_docs_v25/constructors/inputPeerContact.md +++ b/old_docs/API_docs_v25/constructors/inputPeerContact.md @@ -24,16 +24,3 @@ description: inputPeerContact attributes, type and example $inputPeerContact = ['_' => 'inputPeerContact', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerContact = '@username'; // Username - -$inputPeerContact = 44700; // bot API id (users) -$inputPeerContact = -492772765; // bot API id (chats) -$inputPeerContact = -10038575794; // bot API id (channels) - -$inputPeerContact = 'user#44700'; // tg-cli style id (users) -$inputPeerContact = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputPeerEmpty.md b/old_docs/API_docs_v25/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v25/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v25/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputPeerForeign.md b/old_docs/API_docs_v25/constructors/inputPeerForeign.md index 2b839024..5c450d78 100644 --- a/old_docs/API_docs_v25/constructors/inputPeerForeign.md +++ b/old_docs/API_docs_v25/constructors/inputPeerForeign.md @@ -25,16 +25,3 @@ description: inputPeerForeign attributes, type and 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) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputPeerSelf.md b/old_docs/API_docs_v25/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v25/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v25/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputUserContact.md b/old_docs/API_docs_v25/constructors/inputUserContact.md index afd37c2d..b3fe27dc 100644 --- a/old_docs/API_docs_v25/constructors/inputUserContact.md +++ b/old_docs/API_docs_v25/constructors/inputUserContact.md @@ -24,16 +24,3 @@ description: inputUserContact attributes, type and example $inputUserContact = ['_' => 'inputUserContact', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputUserContact = '@username'; // Username - -$inputUserContact = 44700; // bot API id (users) -$inputUserContact = -492772765; // bot API id (chats) -$inputUserContact = -10038575794; // bot API id (channels) - -$inputUserContact = 'user#44700'; // tg-cli style id (users) -$inputUserContact = 'chat#492772765'; // tg-cli style id (chats) -$inputUserContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputUserEmpty.md b/old_docs/API_docs_v25/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v25/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v25/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputUserForeign.md b/old_docs/API_docs_v25/constructors/inputUserForeign.md index 26b0c8a9..d06f6a27 100644 --- a/old_docs/API_docs_v25/constructors/inputUserForeign.md +++ b/old_docs/API_docs_v25/constructors/inputUserForeign.md @@ -25,16 +25,3 @@ description: inputUserForeign attributes, type and example $inputUserForeign = ['_' => 'inputUserForeign', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUserForeign = '@username'; // Username - -$inputUserForeign = 44700; // bot API id (users) -$inputUserForeign = -492772765; // bot API id (chats) -$inputUserForeign = -10038575794; // bot API id (channels) - -$inputUserForeign = 'user#44700'; // tg-cli style id (users) -$inputUserForeign = 'chat#492772765'; // tg-cli style id (chats) -$inputUserForeign = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/inputUserSelf.md b/old_docs/API_docs_v25/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v25/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v25/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/peerChat.md b/old_docs/API_docs_v25/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v25/constructors/peerChat.md +++ b/old_docs/API_docs_v25/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/peerUser.md b/old_docs/API_docs_v25/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v25/constructors/peerUser.md +++ b/old_docs/API_docs_v25/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/userContact.md b/old_docs/API_docs_v25/constructors/userContact.md index f8de255e..a8f26385 100644 --- a/old_docs/API_docs_v25/constructors/userContact.md +++ b/old_docs/API_docs_v25/constructors/userContact.md @@ -31,16 +31,3 @@ description: userContact attributes, type and example $userContact = ['_' => 'userContact', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userContact = '@username'; // Username - -$userContact = 44700; // bot API id (users) -$userContact = -492772765; // bot API id (chats) -$userContact = -10038575794; // bot API id (channels) - -$userContact = 'user#44700'; // tg-cli style id (users) -$userContact = 'chat#492772765'; // tg-cli style id (chats) -$userContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/userDeleted.md b/old_docs/API_docs_v25/constructors/userDeleted.md index fe7cfdd1..58059f88 100644 --- a/old_docs/API_docs_v25/constructors/userDeleted.md +++ b/old_docs/API_docs_v25/constructors/userDeleted.md @@ -27,16 +27,3 @@ description: userDeleted attributes, type and example $userDeleted = ['_' => 'userDeleted', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, ]; ``` -The following syntaxes can also be used: - -``` -$userDeleted = '@username'; // Username - -$userDeleted = 44700; // bot API id (users) -$userDeleted = -492772765; // bot API id (chats) -$userDeleted = -10038575794; // bot API id (channels) - -$userDeleted = 'user#44700'; // tg-cli style id (users) -$userDeleted = 'chat#492772765'; // tg-cli style id (chats) -$userDeleted = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/userEmpty.md b/old_docs/API_docs_v25/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v25/constructors/userEmpty.md +++ b/old_docs/API_docs_v25/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/userForeign.md b/old_docs/API_docs_v25/constructors/userForeign.md index faa7cb3e..edfe986e 100644 --- a/old_docs/API_docs_v25/constructors/userForeign.md +++ b/old_docs/API_docs_v25/constructors/userForeign.md @@ -30,16 +30,3 @@ description: userForeign attributes, type and example $userForeign = ['_' => 'userForeign', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userForeign = '@username'; // Username - -$userForeign = 44700; // bot API id (users) -$userForeign = -492772765; // bot API id (chats) -$userForeign = -10038575794; // bot API id (channels) - -$userForeign = 'user#44700'; // tg-cli style id (users) -$userForeign = 'chat#492772765'; // tg-cli style id (chats) -$userForeign = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/userRequest.md b/old_docs/API_docs_v25/constructors/userRequest.md index 98da6ec8..062f865e 100644 --- a/old_docs/API_docs_v25/constructors/userRequest.md +++ b/old_docs/API_docs_v25/constructors/userRequest.md @@ -31,16 +31,3 @@ description: userRequest attributes, type and example $userRequest = ['_' => 'userRequest', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userRequest = '@username'; // Username - -$userRequest = 44700; // bot API id (users) -$userRequest = -492772765; // bot API id (chats) -$userRequest = -10038575794; // bot API id (channels) - -$userRequest = 'user#44700'; // tg-cli style id (users) -$userRequest = 'chat#492772765'; // tg-cli style id (chats) -$userRequest = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/userSelf.md b/old_docs/API_docs_v25/constructors/userSelf.md index d9085b22..f7c4014c 100644 --- a/old_docs/API_docs_v25/constructors/userSelf.md +++ b/old_docs/API_docs_v25/constructors/userSelf.md @@ -30,16 +30,3 @@ description: userSelf attributes, type and example $userSelf = ['_' => 'userSelf', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userSelf = '@username'; // Username - -$userSelf = 44700; // bot API id (users) -$userSelf = -492772765; // bot API id (chats) -$userSelf = -10038575794; // bot API id (channels) - -$userSelf = 'user#44700'; // tg-cli style id (users) -$userSelf = 'chat#492772765'; // tg-cli style id (chats) -$userSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v25/types/Chat.md b/old_docs/API_docs_v25/types/Chat.md index e02c846a..3ce4642b 100644 --- a/old_docs/API_docs_v25/types/Chat.md +++ b/old_docs/API_docs_v25/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$contactLinkContact = '@username'; // Username + +$contactLinkContact = 44700; // bot API id (users) +$contactLinkContact = -492772765; // bot API id (chats) +$contactLinkContact = -10038575794; // bot API id (channels) + +$contactLinkContact = 'user#44700'; // tg-cli style id (users) +$contactLinkContact = 'chat#492772765'; // tg-cli style id (chats) +$contactLinkContact = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v25/types/InputPeer.md b/old_docs/API_docs_v25/types/InputPeer.md index c694639e..d79aea41 100644 --- a/old_docs/API_docs_v25/types/InputPeer.md +++ b/old_docs/API_docs_v25/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$contactLinkContact = '@username'; // Username + +$contactLinkContact = 44700; // bot API id (users) +$contactLinkContact = -492772765; // bot API id (chats) +$contactLinkContact = -10038575794; // bot API id (channels) + +$contactLinkContact = 'user#44700'; // tg-cli style id (users) +$contactLinkContact = 'chat#492772765'; // tg-cli style id (chats) +$contactLinkContact = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v25/types/InputUser.md b/old_docs/API_docs_v25/types/InputUser.md index fb5f01eb..4acadd9a 100644 --- a/old_docs/API_docs_v25/types/InputUser.md +++ b/old_docs/API_docs_v25/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$contactLinkContact = '@username'; // Username + +$contactLinkContact = 44700; // bot API id (users) +$contactLinkContact = -492772765; // bot API id (chats) +$contactLinkContact = -10038575794; // bot API id (channels) + +$contactLinkContact = 'user#44700'; // tg-cli style id (users) +$contactLinkContact = 'chat#492772765'; // tg-cli style id (chats) +$contactLinkContact = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v25/types/Peer.md b/old_docs/API_docs_v25/types/Peer.md index 85fc991d..03af9a17 100644 --- a/old_docs/API_docs_v25/types/Peer.md +++ b/old_docs/API_docs_v25/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$contactLinkContact = '@username'; // Username + +$contactLinkContact = 44700; // bot API id (users) +$contactLinkContact = -492772765; // bot API id (chats) +$contactLinkContact = -10038575794; // bot API id (channels) + +$contactLinkContact = 'user#44700'; // tg-cli style id (users) +$contactLinkContact = 'chat#492772765'; // tg-cli style id (chats) +$contactLinkContact = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v25/types/User.md b/old_docs/API_docs_v25/types/User.md index e9e2e34e..d40ec3c0 100644 --- a/old_docs/API_docs_v25/types/User.md +++ b/old_docs/API_docs_v25/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$contactLinkContact = '@username'; // Username + +$contactLinkContact = 44700; // bot API id (users) +$contactLinkContact = -492772765; // bot API id (chats) +$contactLinkContact = -10038575794; // bot API id (channels) + +$contactLinkContact = 'user#44700'; // tg-cli style id (users) +$contactLinkContact = 'chat#492772765'; // tg-cli style id (chats) +$contactLinkContact = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v27/constructors/chat.md b/old_docs/API_docs_v27/constructors/chat.md index 9b88ccac..2d47f519 100644 --- a/old_docs/API_docs_v27/constructors/chat.md +++ b/old_docs/API_docs_v27/constructors/chat.md @@ -30,16 +30,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'left' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/chatEmpty.md b/old_docs/API_docs_v27/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v27/constructors/chatEmpty.md +++ b/old_docs/API_docs_v27/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/chatForbidden.md b/old_docs/API_docs_v27/constructors/chatForbidden.md index d79c41f9..1a52a30f 100644 --- a/old_docs/API_docs_v27/constructors/chatForbidden.md +++ b/old_docs/API_docs_v27/constructors/chatForbidden.md @@ -26,16 +26,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, 'date' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/geoChat.md b/old_docs/API_docs_v27/constructors/geoChat.md index 507e62c3..f2c07c49 100644 --- a/old_docs/API_docs_v27/constructors/geoChat.md +++ b/old_docs/API_docs_v27/constructors/geoChat.md @@ -34,16 +34,3 @@ description: geoChat attributes, type and example $geoChat = ['_' => 'geoChat', 'id' => int, 'access_hash' => long, 'title' => string, 'address' => string, 'venue' => string, 'geo' => GeoPoint, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'checked_in' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$geoChat = '@username'; // Username - -$geoChat = 44700; // bot API id (users) -$geoChat = -492772765; // bot API id (chats) -$geoChat = -10038575794; // bot API id (channels) - -$geoChat = 'user#44700'; // tg-cli style id (users) -$geoChat = 'chat#492772765'; // tg-cli style id (chats) -$geoChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputPeerChat.md b/old_docs/API_docs_v27/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v27/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v27/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputPeerContact.md b/old_docs/API_docs_v27/constructors/inputPeerContact.md index 58501d74..f489eaf3 100644 --- a/old_docs/API_docs_v27/constructors/inputPeerContact.md +++ b/old_docs/API_docs_v27/constructors/inputPeerContact.md @@ -24,16 +24,3 @@ description: inputPeerContact attributes, type and example $inputPeerContact = ['_' => 'inputPeerContact', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerContact = '@username'; // Username - -$inputPeerContact = 44700; // bot API id (users) -$inputPeerContact = -492772765; // bot API id (chats) -$inputPeerContact = -10038575794; // bot API id (channels) - -$inputPeerContact = 'user#44700'; // tg-cli style id (users) -$inputPeerContact = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputPeerEmpty.md b/old_docs/API_docs_v27/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v27/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v27/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputPeerForeign.md b/old_docs/API_docs_v27/constructors/inputPeerForeign.md index 2b839024..5c450d78 100644 --- a/old_docs/API_docs_v27/constructors/inputPeerForeign.md +++ b/old_docs/API_docs_v27/constructors/inputPeerForeign.md @@ -25,16 +25,3 @@ description: inputPeerForeign attributes, type and 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) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputPeerSelf.md b/old_docs/API_docs_v27/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v27/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v27/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputUserContact.md b/old_docs/API_docs_v27/constructors/inputUserContact.md index afd37c2d..b3fe27dc 100644 --- a/old_docs/API_docs_v27/constructors/inputUserContact.md +++ b/old_docs/API_docs_v27/constructors/inputUserContact.md @@ -24,16 +24,3 @@ description: inputUserContact attributes, type and example $inputUserContact = ['_' => 'inputUserContact', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputUserContact = '@username'; // Username - -$inputUserContact = 44700; // bot API id (users) -$inputUserContact = -492772765; // bot API id (chats) -$inputUserContact = -10038575794; // bot API id (channels) - -$inputUserContact = 'user#44700'; // tg-cli style id (users) -$inputUserContact = 'chat#492772765'; // tg-cli style id (chats) -$inputUserContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputUserEmpty.md b/old_docs/API_docs_v27/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v27/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v27/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputUserForeign.md b/old_docs/API_docs_v27/constructors/inputUserForeign.md index 26b0c8a9..d06f6a27 100644 --- a/old_docs/API_docs_v27/constructors/inputUserForeign.md +++ b/old_docs/API_docs_v27/constructors/inputUserForeign.md @@ -25,16 +25,3 @@ description: inputUserForeign attributes, type and example $inputUserForeign = ['_' => 'inputUserForeign', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUserForeign = '@username'; // Username - -$inputUserForeign = 44700; // bot API id (users) -$inputUserForeign = -492772765; // bot API id (chats) -$inputUserForeign = -10038575794; // bot API id (channels) - -$inputUserForeign = 'user#44700'; // tg-cli style id (users) -$inputUserForeign = 'chat#492772765'; // tg-cli style id (chats) -$inputUserForeign = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/inputUserSelf.md b/old_docs/API_docs_v27/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v27/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v27/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/peerChat.md b/old_docs/API_docs_v27/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v27/constructors/peerChat.md +++ b/old_docs/API_docs_v27/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/peerUser.md b/old_docs/API_docs_v27/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v27/constructors/peerUser.md +++ b/old_docs/API_docs_v27/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/userContact.md b/old_docs/API_docs_v27/constructors/userContact.md index f8de255e..a8f26385 100644 --- a/old_docs/API_docs_v27/constructors/userContact.md +++ b/old_docs/API_docs_v27/constructors/userContact.md @@ -31,16 +31,3 @@ description: userContact attributes, type and example $userContact = ['_' => 'userContact', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userContact = '@username'; // Username - -$userContact = 44700; // bot API id (users) -$userContact = -492772765; // bot API id (chats) -$userContact = -10038575794; // bot API id (channels) - -$userContact = 'user#44700'; // tg-cli style id (users) -$userContact = 'chat#492772765'; // tg-cli style id (chats) -$userContact = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/userDeleted.md b/old_docs/API_docs_v27/constructors/userDeleted.md index fe7cfdd1..58059f88 100644 --- a/old_docs/API_docs_v27/constructors/userDeleted.md +++ b/old_docs/API_docs_v27/constructors/userDeleted.md @@ -27,16 +27,3 @@ description: userDeleted attributes, type and example $userDeleted = ['_' => 'userDeleted', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, ]; ``` -The following syntaxes can also be used: - -``` -$userDeleted = '@username'; // Username - -$userDeleted = 44700; // bot API id (users) -$userDeleted = -492772765; // bot API id (chats) -$userDeleted = -10038575794; // bot API id (channels) - -$userDeleted = 'user#44700'; // tg-cli style id (users) -$userDeleted = 'chat#492772765'; // tg-cli style id (chats) -$userDeleted = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/userEmpty.md b/old_docs/API_docs_v27/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v27/constructors/userEmpty.md +++ b/old_docs/API_docs_v27/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/userForeign.md b/old_docs/API_docs_v27/constructors/userForeign.md index faa7cb3e..edfe986e 100644 --- a/old_docs/API_docs_v27/constructors/userForeign.md +++ b/old_docs/API_docs_v27/constructors/userForeign.md @@ -30,16 +30,3 @@ description: userForeign attributes, type and example $userForeign = ['_' => 'userForeign', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userForeign = '@username'; // Username - -$userForeign = 44700; // bot API id (users) -$userForeign = -492772765; // bot API id (chats) -$userForeign = -10038575794; // bot API id (channels) - -$userForeign = 'user#44700'; // tg-cli style id (users) -$userForeign = 'chat#492772765'; // tg-cli style id (chats) -$userForeign = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/userRequest.md b/old_docs/API_docs_v27/constructors/userRequest.md index 98da6ec8..062f865e 100644 --- a/old_docs/API_docs_v27/constructors/userRequest.md +++ b/old_docs/API_docs_v27/constructors/userRequest.md @@ -31,16 +31,3 @@ description: userRequest attributes, type and example $userRequest = ['_' => 'userRequest', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'access_hash' => long, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userRequest = '@username'; // Username - -$userRequest = 44700; // bot API id (users) -$userRequest = -492772765; // bot API id (chats) -$userRequest = -10038575794; // bot API id (channels) - -$userRequest = 'user#44700'; // tg-cli style id (users) -$userRequest = 'chat#492772765'; // tg-cli style id (chats) -$userRequest = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/constructors/userSelf.md b/old_docs/API_docs_v27/constructors/userSelf.md index d9085b22..f7c4014c 100644 --- a/old_docs/API_docs_v27/constructors/userSelf.md +++ b/old_docs/API_docs_v27/constructors/userSelf.md @@ -30,16 +30,3 @@ description: userSelf attributes, type and example $userSelf = ['_' => 'userSelf', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, ]; ``` -The following syntaxes can also be used: - -``` -$userSelf = '@username'; // Username - -$userSelf = 44700; // bot API id (users) -$userSelf = -492772765; // bot API id (chats) -$userSelf = -10038575794; // bot API id (channels) - -$userSelf = 'user#44700'; // tg-cli style id (users) -$userSelf = 'chat#492772765'; // tg-cli style id (chats) -$userSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v27/types/Chat.md b/old_docs/API_docs_v27/types/Chat.md index e02c846a..42c986e3 100644 --- a/old_docs/API_docs_v27/types/Chat.md +++ b/old_docs/API_docs_v27/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$auth_passwordRecovery = '@username'; // Username + +$auth_passwordRecovery = 44700; // bot API id (users) +$auth_passwordRecovery = -492772765; // bot API id (chats) +$auth_passwordRecovery = -10038575794; // bot API id (channels) + +$auth_passwordRecovery = 'user#44700'; // tg-cli style id (users) +$auth_passwordRecovery = 'chat#492772765'; // tg-cli style id (chats) +$auth_passwordRecovery = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v27/types/InputPeer.md b/old_docs/API_docs_v27/types/InputPeer.md index c694639e..0a15c6c9 100644 --- a/old_docs/API_docs_v27/types/InputPeer.md +++ b/old_docs/API_docs_v27/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$auth_passwordRecovery = '@username'; // Username + +$auth_passwordRecovery = 44700; // bot API id (users) +$auth_passwordRecovery = -492772765; // bot API id (chats) +$auth_passwordRecovery = -10038575794; // bot API id (channels) + +$auth_passwordRecovery = 'user#44700'; // tg-cli style id (users) +$auth_passwordRecovery = 'chat#492772765'; // tg-cli style id (chats) +$auth_passwordRecovery = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v27/types/InputUser.md b/old_docs/API_docs_v27/types/InputUser.md index fb5f01eb..e24b6343 100644 --- a/old_docs/API_docs_v27/types/InputUser.md +++ b/old_docs/API_docs_v27/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$auth_passwordRecovery = '@username'; // Username + +$auth_passwordRecovery = 44700; // bot API id (users) +$auth_passwordRecovery = -492772765; // bot API id (chats) +$auth_passwordRecovery = -10038575794; // bot API id (channels) + +$auth_passwordRecovery = 'user#44700'; // tg-cli style id (users) +$auth_passwordRecovery = 'chat#492772765'; // tg-cli style id (chats) +$auth_passwordRecovery = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v27/types/Peer.md b/old_docs/API_docs_v27/types/Peer.md index 85fc991d..fafb7d91 100644 --- a/old_docs/API_docs_v27/types/Peer.md +++ b/old_docs/API_docs_v27/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$auth_passwordRecovery = '@username'; // Username + +$auth_passwordRecovery = 44700; // bot API id (users) +$auth_passwordRecovery = -492772765; // bot API id (chats) +$auth_passwordRecovery = -10038575794; // bot API id (channels) + +$auth_passwordRecovery = 'user#44700'; // tg-cli style id (users) +$auth_passwordRecovery = 'chat#492772765'; // tg-cli style id (chats) +$auth_passwordRecovery = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v27/types/User.md b/old_docs/API_docs_v27/types/User.md index e9e2e34e..0e2295a3 100644 --- a/old_docs/API_docs_v27/types/User.md +++ b/old_docs/API_docs_v27/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$auth_passwordRecovery = '@username'; // Username + +$auth_passwordRecovery = 44700; // bot API id (users) +$auth_passwordRecovery = -492772765; // bot API id (chats) +$auth_passwordRecovery = -10038575794; // bot API id (channels) + +$auth_passwordRecovery = 'user#44700'; // tg-cli style id (users) +$auth_passwordRecovery = 'chat#492772765'; // tg-cli style id (chats) +$auth_passwordRecovery = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v33/constructors/chat.md b/old_docs/API_docs_v33/constructors/chat.md index 9b88ccac..2d47f519 100644 --- a/old_docs/API_docs_v33/constructors/chat.md +++ b/old_docs/API_docs_v33/constructors/chat.md @@ -30,16 +30,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'left' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/chatEmpty.md b/old_docs/API_docs_v33/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v33/constructors/chatEmpty.md +++ b/old_docs/API_docs_v33/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/chatForbidden.md b/old_docs/API_docs_v33/constructors/chatForbidden.md index d79c41f9..1a52a30f 100644 --- a/old_docs/API_docs_v33/constructors/chatForbidden.md +++ b/old_docs/API_docs_v33/constructors/chatForbidden.md @@ -26,16 +26,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, 'date' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/geoChat.md b/old_docs/API_docs_v33/constructors/geoChat.md index 507e62c3..f2c07c49 100644 --- a/old_docs/API_docs_v33/constructors/geoChat.md +++ b/old_docs/API_docs_v33/constructors/geoChat.md @@ -34,16 +34,3 @@ description: geoChat attributes, type and example $geoChat = ['_' => 'geoChat', 'id' => int, 'access_hash' => long, 'title' => string, 'address' => string, 'venue' => string, 'geo' => GeoPoint, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'checked_in' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$geoChat = '@username'; // Username - -$geoChat = 44700; // bot API id (users) -$geoChat = -492772765; // bot API id (chats) -$geoChat = -10038575794; // bot API id (channels) - -$geoChat = 'user#44700'; // tg-cli style id (users) -$geoChat = 'chat#492772765'; // tg-cli style id (chats) -$geoChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/inputPeerChat.md b/old_docs/API_docs_v33/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v33/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v33/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/inputPeerEmpty.md b/old_docs/API_docs_v33/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v33/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v33/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/inputPeerSelf.md b/old_docs/API_docs_v33/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v33/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v33/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/inputPeerUser.md b/old_docs/API_docs_v33/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v33/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v33/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/inputUser.md b/old_docs/API_docs_v33/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v33/constructors/inputUser.md +++ b/old_docs/API_docs_v33/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/inputUserEmpty.md b/old_docs/API_docs_v33/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v33/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v33/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/inputUserSelf.md b/old_docs/API_docs_v33/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v33/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v33/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/peerChat.md b/old_docs/API_docs_v33/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v33/constructors/peerChat.md +++ b/old_docs/API_docs_v33/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/peerUser.md b/old_docs/API_docs_v33/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v33/constructors/peerUser.md +++ b/old_docs/API_docs_v33/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/user.md b/old_docs/API_docs_v33/constructors/user.md index 3149cd4c..f7e51ad2 100644 --- a/old_docs/API_docs_v33/constructors/user.md +++ b/old_docs/API_docs_v33/constructors/user.md @@ -32,16 +32,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/userEmpty.md b/old_docs/API_docs_v33/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v33/constructors/userEmpty.md +++ b/old_docs/API_docs_v33/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v33/types/Chat.md b/old_docs/API_docs_v33/types/Chat.md index e02c846a..9bb0ba07 100644 --- a/old_docs/API_docs_v33/types/Chat.md +++ b/old_docs/API_docs_v33/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$help_appChangelog = '@username'; // Username + +$help_appChangelog = 44700; // bot API id (users) +$help_appChangelog = -492772765; // bot API id (chats) +$help_appChangelog = -10038575794; // bot API id (channels) + +$help_appChangelog = 'user#44700'; // tg-cli style id (users) +$help_appChangelog = 'chat#492772765'; // tg-cli style id (chats) +$help_appChangelog = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v33/types/InputPeer.md b/old_docs/API_docs_v33/types/InputPeer.md index a1b12a32..3e76a988 100644 --- a/old_docs/API_docs_v33/types/InputPeer.md +++ b/old_docs/API_docs_v33/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$help_appChangelog = '@username'; // Username + +$help_appChangelog = 44700; // bot API id (users) +$help_appChangelog = -492772765; // bot API id (chats) +$help_appChangelog = -10038575794; // bot API id (channels) + +$help_appChangelog = 'user#44700'; // tg-cli style id (users) +$help_appChangelog = 'chat#492772765'; // tg-cli style id (chats) +$help_appChangelog = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v33/types/InputUser.md b/old_docs/API_docs_v33/types/InputUser.md index c5ced2f7..ef5cc769 100644 --- a/old_docs/API_docs_v33/types/InputUser.md +++ b/old_docs/API_docs_v33/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$help_appChangelog = '@username'; // Username + +$help_appChangelog = 44700; // bot API id (users) +$help_appChangelog = -492772765; // bot API id (chats) +$help_appChangelog = -10038575794; // bot API id (channels) + +$help_appChangelog = 'user#44700'; // tg-cli style id (users) +$help_appChangelog = 'chat#492772765'; // tg-cli style id (chats) +$help_appChangelog = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v33/types/Peer.md b/old_docs/API_docs_v33/types/Peer.md index 85fc991d..90c21cd1 100644 --- a/old_docs/API_docs_v33/types/Peer.md +++ b/old_docs/API_docs_v33/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$help_appChangelog = '@username'; // Username + +$help_appChangelog = 44700; // bot API id (users) +$help_appChangelog = -492772765; // bot API id (chats) +$help_appChangelog = -10038575794; // bot API id (channels) + +$help_appChangelog = 'user#44700'; // tg-cli style id (users) +$help_appChangelog = 'chat#492772765'; // tg-cli style id (chats) +$help_appChangelog = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v33/types/User.md b/old_docs/API_docs_v33/types/User.md index f72fd697..9206fb95 100644 --- a/old_docs/API_docs_v33/types/User.md +++ b/old_docs/API_docs_v33/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$help_appChangelog = '@username'; // Username + +$help_appChangelog = 44700; // bot API id (users) +$help_appChangelog = -492772765; // bot API id (chats) +$help_appChangelog = -10038575794; // bot API id (channels) + +$help_appChangelog = 'user#44700'; // tg-cli style id (users) +$help_appChangelog = 'chat#492772765'; // tg-cli style id (chats) +$help_appChangelog = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v38/constructors/channel.md b/old_docs/API_docs_v38/constructors/channel.md index 71ece20b..61b87eda 100644 --- a/old_docs/API_docs_v38/constructors/channel.md +++ b/old_docs/API_docs_v38/constructors/channel.md @@ -30,16 +30,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/channelForbidden.md b/old_docs/API_docs_v38/constructors/channelForbidden.md index c09f61fd..3a18f705 100644 --- a/old_docs/API_docs_v38/constructors/channelForbidden.md +++ b/old_docs/API_docs_v38/constructors/channelForbidden.md @@ -26,16 +26,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/chat.md b/old_docs/API_docs_v38/constructors/chat.md index 5ba12a29..7d2eae9b 100644 --- a/old_docs/API_docs_v38/constructors/chat.md +++ b/old_docs/API_docs_v38/constructors/chat.md @@ -29,16 +29,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/chatEmpty.md b/old_docs/API_docs_v38/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v38/constructors/chatEmpty.md +++ b/old_docs/API_docs_v38/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/chatForbidden.md b/old_docs/API_docs_v38/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v38/constructors/chatForbidden.md +++ b/old_docs/API_docs_v38/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputChannel.md b/old_docs/API_docs_v38/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v38/constructors/inputChannel.md +++ b/old_docs/API_docs_v38/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputChannelEmpty.md b/old_docs/API_docs_v38/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v38/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v38/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputPeerChannel.md b/old_docs/API_docs_v38/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v38/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v38/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputPeerChat.md b/old_docs/API_docs_v38/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v38/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v38/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputPeerEmpty.md b/old_docs/API_docs_v38/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v38/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v38/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputPeerSelf.md b/old_docs/API_docs_v38/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v38/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v38/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputPeerUser.md b/old_docs/API_docs_v38/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v38/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v38/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputUser.md b/old_docs/API_docs_v38/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v38/constructors/inputUser.md +++ b/old_docs/API_docs_v38/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputUserEmpty.md b/old_docs/API_docs_v38/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v38/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v38/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/inputUserSelf.md b/old_docs/API_docs_v38/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v38/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v38/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/peerChannel.md b/old_docs/API_docs_v38/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v38/constructors/peerChannel.md +++ b/old_docs/API_docs_v38/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/peerChat.md b/old_docs/API_docs_v38/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v38/constructors/peerChat.md +++ b/old_docs/API_docs_v38/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/peerUser.md b/old_docs/API_docs_v38/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v38/constructors/peerUser.md +++ b/old_docs/API_docs_v38/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/user.md b/old_docs/API_docs_v38/constructors/user.md index 3149cd4c..f7e51ad2 100644 --- a/old_docs/API_docs_v38/constructors/user.md +++ b/old_docs/API_docs_v38/constructors/user.md @@ -32,16 +32,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/userEmpty.md b/old_docs/API_docs_v38/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v38/constructors/userEmpty.md +++ b/old_docs/API_docs_v38/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v38/types/Chat.md b/old_docs/API_docs_v38/types/Chat.md index 1dc2c40e..5434f5e0 100644 --- a/old_docs/API_docs_v38/types/Chat.md +++ b/old_docs/API_docs_v38/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$channels_channelParticipant = '@username'; // Username + +$channels_channelParticipant = 44700; // bot API id (users) +$channels_channelParticipant = -492772765; // bot API id (chats) +$channels_channelParticipant = -10038575794; // bot API id (channels) + +$channels_channelParticipant = 'user#44700'; // tg-cli style id (users) +$channels_channelParticipant = 'chat#492772765'; // tg-cli style id (chats) +$channels_channelParticipant = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v38/types/InputChannel.md b/old_docs/API_docs_v38/types/InputChannel.md index b573025d..da530839 100644 --- a/old_docs/API_docs_v38/types/InputChannel.md +++ b/old_docs/API_docs_v38/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$channels_channelParticipant = '@username'; // Username + +$channels_channelParticipant = 44700; // bot API id (users) +$channels_channelParticipant = -492772765; // bot API id (chats) +$channels_channelParticipant = -10038575794; // bot API id (channels) + +$channels_channelParticipant = 'user#44700'; // tg-cli style id (users) +$channels_channelParticipant = 'chat#492772765'; // tg-cli style id (chats) +$channels_channelParticipant = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v38/types/InputPeer.md b/old_docs/API_docs_v38/types/InputPeer.md index 7adf47ab..fddcb971 100644 --- a/old_docs/API_docs_v38/types/InputPeer.md +++ b/old_docs/API_docs_v38/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$channels_channelParticipant = '@username'; // Username + +$channels_channelParticipant = 44700; // bot API id (users) +$channels_channelParticipant = -492772765; // bot API id (chats) +$channels_channelParticipant = -10038575794; // bot API id (channels) + +$channels_channelParticipant = 'user#44700'; // tg-cli style id (users) +$channels_channelParticipant = 'chat#492772765'; // tg-cli style id (chats) +$channels_channelParticipant = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v38/types/InputUser.md b/old_docs/API_docs_v38/types/InputUser.md index c5ced2f7..d2c9422f 100644 --- a/old_docs/API_docs_v38/types/InputUser.md +++ b/old_docs/API_docs_v38/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$channels_channelParticipant = '@username'; // Username + +$channels_channelParticipant = 44700; // bot API id (users) +$channels_channelParticipant = -492772765; // bot API id (chats) +$channels_channelParticipant = -10038575794; // bot API id (channels) + +$channels_channelParticipant = 'user#44700'; // tg-cli style id (users) +$channels_channelParticipant = 'chat#492772765'; // tg-cli style id (chats) +$channels_channelParticipant = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v38/types/Peer.md b/old_docs/API_docs_v38/types/Peer.md index d4aa8884..6a4b569a 100644 --- a/old_docs/API_docs_v38/types/Peer.md +++ b/old_docs/API_docs_v38/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$channels_channelParticipant = '@username'; // Username + +$channels_channelParticipant = 44700; // bot API id (users) +$channels_channelParticipant = -492772765; // bot API id (chats) +$channels_channelParticipant = -10038575794; // bot API id (channels) + +$channels_channelParticipant = 'user#44700'; // tg-cli style id (users) +$channels_channelParticipant = 'chat#492772765'; // tg-cli style id (chats) +$channels_channelParticipant = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v38/types/User.md b/old_docs/API_docs_v38/types/User.md index 63494937..bedd8647 100644 --- a/old_docs/API_docs_v38/types/User.md +++ b/old_docs/API_docs_v38/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$channels_channelParticipant = '@username'; // Username + +$channels_channelParticipant = 44700; // bot API id (users) +$channels_channelParticipant = -492772765; // bot API id (chats) +$channels_channelParticipant = -10038575794; // bot API id (channels) + +$channels_channelParticipant = 'user#44700'; // tg-cli style id (users) +$channels_channelParticipant = 'chat#492772765'; // tg-cli style id (chats) +$channels_channelParticipant = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v40/constructors/channel.md b/old_docs/API_docs_v40/constructors/channel.md index ea38c24e..6b143236 100644 --- a/old_docs/API_docs_v40/constructors/channel.md +++ b/old_docs/API_docs_v40/constructors/channel.md @@ -29,16 +29,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'id' => int, 'access_hash' => long, 'title' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/chat.md b/old_docs/API_docs_v40/constructors/chat.md index 9b88ccac..2d47f519 100644 --- a/old_docs/API_docs_v40/constructors/chat.md +++ b/old_docs/API_docs_v40/constructors/chat.md @@ -30,16 +30,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'left' => Bool, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/chatEmpty.md b/old_docs/API_docs_v40/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v40/constructors/chatEmpty.md +++ b/old_docs/API_docs_v40/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/chatForbidden.md b/old_docs/API_docs_v40/constructors/chatForbidden.md index d79c41f9..1a52a30f 100644 --- a/old_docs/API_docs_v40/constructors/chatForbidden.md +++ b/old_docs/API_docs_v40/constructors/chatForbidden.md @@ -26,16 +26,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, 'date' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/inputPeerChannel.md b/old_docs/API_docs_v40/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v40/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v40/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/inputPeerChat.md b/old_docs/API_docs_v40/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v40/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v40/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/inputPeerEmpty.md b/old_docs/API_docs_v40/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v40/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v40/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/inputPeerSelf.md b/old_docs/API_docs_v40/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v40/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v40/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/inputPeerUser.md b/old_docs/API_docs_v40/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v40/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v40/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/inputUser.md b/old_docs/API_docs_v40/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v40/constructors/inputUser.md +++ b/old_docs/API_docs_v40/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/inputUserEmpty.md b/old_docs/API_docs_v40/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v40/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v40/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/inputUserSelf.md b/old_docs/API_docs_v40/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v40/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v40/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/peerChannel.md b/old_docs/API_docs_v40/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v40/constructors/peerChannel.md +++ b/old_docs/API_docs_v40/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/peerChat.md b/old_docs/API_docs_v40/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v40/constructors/peerChat.md +++ b/old_docs/API_docs_v40/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/peerUser.md b/old_docs/API_docs_v40/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v40/constructors/peerUser.md +++ b/old_docs/API_docs_v40/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/user.md b/old_docs/API_docs_v40/constructors/user.md index 3149cd4c..f7e51ad2 100644 --- a/old_docs/API_docs_v40/constructors/user.md +++ b/old_docs/API_docs_v40/constructors/user.md @@ -32,16 +32,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/userEmpty.md b/old_docs/API_docs_v40/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v40/constructors/userEmpty.md +++ b/old_docs/API_docs_v40/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v40/types/Chat.md b/old_docs/API_docs_v40/types/Chat.md index bf6c0f03..d53ea0b6 100644 --- a/old_docs/API_docs_v40/types/Chat.md +++ b/old_docs/API_docs_v40/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$channelMessagesFilter = '@username'; // Username + +$channelMessagesFilter = 44700; // bot API id (users) +$channelMessagesFilter = -492772765; // bot API id (chats) +$channelMessagesFilter = -10038575794; // bot API id (channels) + +$channelMessagesFilter = 'user#44700'; // tg-cli style id (users) +$channelMessagesFilter = 'chat#492772765'; // tg-cli style id (chats) +$channelMessagesFilter = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v40/types/InputPeer.md b/old_docs/API_docs_v40/types/InputPeer.md index 7adf47ab..ab8055c4 100644 --- a/old_docs/API_docs_v40/types/InputPeer.md +++ b/old_docs/API_docs_v40/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$channelMessagesFilter = '@username'; // Username + +$channelMessagesFilter = 44700; // bot API id (users) +$channelMessagesFilter = -492772765; // bot API id (chats) +$channelMessagesFilter = -10038575794; // bot API id (channels) + +$channelMessagesFilter = 'user#44700'; // tg-cli style id (users) +$channelMessagesFilter = 'chat#492772765'; // tg-cli style id (chats) +$channelMessagesFilter = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v40/types/InputUser.md b/old_docs/API_docs_v40/types/InputUser.md index c5ced2f7..0dec8501 100644 --- a/old_docs/API_docs_v40/types/InputUser.md +++ b/old_docs/API_docs_v40/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$channelMessagesFilter = '@username'; // Username + +$channelMessagesFilter = 44700; // bot API id (users) +$channelMessagesFilter = -492772765; // bot API id (chats) +$channelMessagesFilter = -10038575794; // bot API id (channels) + +$channelMessagesFilter = 'user#44700'; // tg-cli style id (users) +$channelMessagesFilter = 'chat#492772765'; // tg-cli style id (chats) +$channelMessagesFilter = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v40/types/Peer.md b/old_docs/API_docs_v40/types/Peer.md index d4aa8884..c416001a 100644 --- a/old_docs/API_docs_v40/types/Peer.md +++ b/old_docs/API_docs_v40/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$channelMessagesFilter = '@username'; // Username + +$channelMessagesFilter = 44700; // bot API id (users) +$channelMessagesFilter = -492772765; // bot API id (chats) +$channelMessagesFilter = -10038575794; // bot API id (channels) + +$channelMessagesFilter = 'user#44700'; // tg-cli style id (users) +$channelMessagesFilter = 'chat#492772765'; // tg-cli style id (chats) +$channelMessagesFilter = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v40/types/User.md b/old_docs/API_docs_v40/types/User.md index f72fd697..dd2f3024 100644 --- a/old_docs/API_docs_v40/types/User.md +++ b/old_docs/API_docs_v40/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$channelMessagesFilter = '@username'; // Username + +$channelMessagesFilter = 44700; // bot API id (users) +$channelMessagesFilter = -492772765; // bot API id (chats) +$channelMessagesFilter = -10038575794; // bot API id (channels) + +$channelMessagesFilter = 'user#44700'; // tg-cli style id (users) +$channelMessagesFilter = 'chat#492772765'; // tg-cli style id (chats) +$channelMessagesFilter = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v41/constructors/channel.md b/old_docs/API_docs_v41/constructors/channel.md index 1e43ea9f..d4f75c4b 100644 --- a/old_docs/API_docs_v41/constructors/channel.md +++ b/old_docs/API_docs_v41/constructors/channel.md @@ -38,16 +38,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/channelForbidden.md b/old_docs/API_docs_v41/constructors/channelForbidden.md index c09f61fd..3a18f705 100644 --- a/old_docs/API_docs_v41/constructors/channelForbidden.md +++ b/old_docs/API_docs_v41/constructors/channelForbidden.md @@ -26,16 +26,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/chat.md b/old_docs/API_docs_v41/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v41/constructors/chat.md +++ b/old_docs/API_docs_v41/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/chatEmpty.md b/old_docs/API_docs_v41/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v41/constructors/chatEmpty.md +++ b/old_docs/API_docs_v41/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/chatForbidden.md b/old_docs/API_docs_v41/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v41/constructors/chatForbidden.md +++ b/old_docs/API_docs_v41/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputChannel.md b/old_docs/API_docs_v41/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v41/constructors/inputChannel.md +++ b/old_docs/API_docs_v41/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputChannelEmpty.md b/old_docs/API_docs_v41/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v41/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v41/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputPeerChannel.md b/old_docs/API_docs_v41/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v41/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v41/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputPeerChat.md b/old_docs/API_docs_v41/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v41/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v41/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputPeerEmpty.md b/old_docs/API_docs_v41/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v41/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v41/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputPeerSelf.md b/old_docs/API_docs_v41/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v41/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v41/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputPeerUser.md b/old_docs/API_docs_v41/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v41/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v41/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputUser.md b/old_docs/API_docs_v41/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v41/constructors/inputUser.md +++ b/old_docs/API_docs_v41/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputUserEmpty.md b/old_docs/API_docs_v41/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v41/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v41/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/inputUserSelf.md b/old_docs/API_docs_v41/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v41/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v41/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/peerChannel.md b/old_docs/API_docs_v41/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v41/constructors/peerChannel.md +++ b/old_docs/API_docs_v41/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/peerChat.md b/old_docs/API_docs_v41/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v41/constructors/peerChat.md +++ b/old_docs/API_docs_v41/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/peerUser.md b/old_docs/API_docs_v41/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v41/constructors/peerUser.md +++ b/old_docs/API_docs_v41/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/user.md b/old_docs/API_docs_v41/constructors/user.md index d4240043..24a3f71d 100644 --- a/old_docs/API_docs_v41/constructors/user.md +++ b/old_docs/API_docs_v41/constructors/user.md @@ -40,16 +40,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/userEmpty.md b/old_docs/API_docs_v41/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v41/constructors/userEmpty.md +++ b/old_docs/API_docs_v41/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v41/types/Chat.md b/old_docs/API_docs_v41/types/Chat.md index 1dc2c40e..22918c2c 100644 --- a/old_docs/API_docs_v41/types/Chat.md +++ b/old_docs/API_docs_v41/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v41/types/InputChannel.md b/old_docs/API_docs_v41/types/InputChannel.md index b573025d..df504c78 100644 --- a/old_docs/API_docs_v41/types/InputChannel.md +++ b/old_docs/API_docs_v41/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v41/types/InputPeer.md b/old_docs/API_docs_v41/types/InputPeer.md index 7adf47ab..b33f03e1 100644 --- a/old_docs/API_docs_v41/types/InputPeer.md +++ b/old_docs/API_docs_v41/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v41/types/InputUser.md b/old_docs/API_docs_v41/types/InputUser.md index c5ced2f7..e4bc1050 100644 --- a/old_docs/API_docs_v41/types/InputUser.md +++ b/old_docs/API_docs_v41/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v41/types/Peer.md b/old_docs/API_docs_v41/types/Peer.md index d4aa8884..67d0c080 100644 --- a/old_docs/API_docs_v41/types/Peer.md +++ b/old_docs/API_docs_v41/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v41/types/User.md b/old_docs/API_docs_v41/types/User.md index 63494937..51207337 100644 --- a/old_docs/API_docs_v41/types/User.md +++ b/old_docs/API_docs_v41/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v42/constructors/channel.md b/old_docs/API_docs_v42/constructors/channel.md index 1e43ea9f..d4f75c4b 100644 --- a/old_docs/API_docs_v42/constructors/channel.md +++ b/old_docs/API_docs_v42/constructors/channel.md @@ -38,16 +38,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/channelForbidden.md b/old_docs/API_docs_v42/constructors/channelForbidden.md index c09f61fd..3a18f705 100644 --- a/old_docs/API_docs_v42/constructors/channelForbidden.md +++ b/old_docs/API_docs_v42/constructors/channelForbidden.md @@ -26,16 +26,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/chat.md b/old_docs/API_docs_v42/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v42/constructors/chat.md +++ b/old_docs/API_docs_v42/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/chatEmpty.md b/old_docs/API_docs_v42/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v42/constructors/chatEmpty.md +++ b/old_docs/API_docs_v42/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/chatForbidden.md b/old_docs/API_docs_v42/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v42/constructors/chatForbidden.md +++ b/old_docs/API_docs_v42/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputChannel.md b/old_docs/API_docs_v42/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v42/constructors/inputChannel.md +++ b/old_docs/API_docs_v42/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputChannelEmpty.md b/old_docs/API_docs_v42/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v42/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v42/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputPeerChannel.md b/old_docs/API_docs_v42/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v42/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v42/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputPeerChat.md b/old_docs/API_docs_v42/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v42/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v42/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputPeerEmpty.md b/old_docs/API_docs_v42/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v42/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v42/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputPeerSelf.md b/old_docs/API_docs_v42/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v42/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v42/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputPeerUser.md b/old_docs/API_docs_v42/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v42/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v42/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputUser.md b/old_docs/API_docs_v42/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v42/constructors/inputUser.md +++ b/old_docs/API_docs_v42/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputUserEmpty.md b/old_docs/API_docs_v42/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v42/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v42/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/inputUserSelf.md b/old_docs/API_docs_v42/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v42/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v42/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/peerChannel.md b/old_docs/API_docs_v42/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v42/constructors/peerChannel.md +++ b/old_docs/API_docs_v42/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/peerChat.md b/old_docs/API_docs_v42/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v42/constructors/peerChat.md +++ b/old_docs/API_docs_v42/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/peerUser.md b/old_docs/API_docs_v42/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v42/constructors/peerUser.md +++ b/old_docs/API_docs_v42/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/user.md b/old_docs/API_docs_v42/constructors/user.md index d4240043..24a3f71d 100644 --- a/old_docs/API_docs_v42/constructors/user.md +++ b/old_docs/API_docs_v42/constructors/user.md @@ -40,16 +40,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/constructors/userEmpty.md b/old_docs/API_docs_v42/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v42/constructors/userEmpty.md +++ b/old_docs/API_docs_v42/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v42/types/Chat.md b/old_docs/API_docs_v42/types/Chat.md index 1dc2c40e..22918c2c 100644 --- a/old_docs/API_docs_v42/types/Chat.md +++ b/old_docs/API_docs_v42/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v42/types/InputChannel.md b/old_docs/API_docs_v42/types/InputChannel.md index b573025d..df504c78 100644 --- a/old_docs/API_docs_v42/types/InputChannel.md +++ b/old_docs/API_docs_v42/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v42/types/InputPeer.md b/old_docs/API_docs_v42/types/InputPeer.md index 7adf47ab..b33f03e1 100644 --- a/old_docs/API_docs_v42/types/InputPeer.md +++ b/old_docs/API_docs_v42/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v42/types/InputUser.md b/old_docs/API_docs_v42/types/InputUser.md index c5ced2f7..e4bc1050 100644 --- a/old_docs/API_docs_v42/types/InputUser.md +++ b/old_docs/API_docs_v42/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v42/types/Peer.md b/old_docs/API_docs_v42/types/Peer.md index d4aa8884..67d0c080 100644 --- a/old_docs/API_docs_v42/types/Peer.md +++ b/old_docs/API_docs_v42/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v42/types/User.md b/old_docs/API_docs_v42/types/User.md index 63494937..51207337 100644 --- a/old_docs/API_docs_v42/types/User.md +++ b/old_docs/API_docs_v42/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$channelParticipantsBots = '@username'; // Username + +$channelParticipantsBots = 44700; // bot API id (users) +$channelParticipantsBots = -492772765; // bot API id (chats) +$channelParticipantsBots = -10038575794; // bot API id (channels) + +$channelParticipantsBots = 'user#44700'; // tg-cli style id (users) +$channelParticipantsBots = 'chat#492772765'; // tg-cli style id (chats) +$channelParticipantsBots = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v44/constructors/channel.md b/old_docs/API_docs_v44/constructors/channel.md index 751bb250..b60d00dd 100644 --- a/old_docs/API_docs_v44/constructors/channel.md +++ b/old_docs/API_docs_v44/constructors/channel.md @@ -40,16 +40,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restiction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/channelForbidden.md b/old_docs/API_docs_v44/constructors/channelForbidden.md index c09f61fd..3a18f705 100644 --- a/old_docs/API_docs_v44/constructors/channelForbidden.md +++ b/old_docs/API_docs_v44/constructors/channelForbidden.md @@ -26,16 +26,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/chat.md b/old_docs/API_docs_v44/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v44/constructors/chat.md +++ b/old_docs/API_docs_v44/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/chatEmpty.md b/old_docs/API_docs_v44/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v44/constructors/chatEmpty.md +++ b/old_docs/API_docs_v44/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/chatForbidden.md b/old_docs/API_docs_v44/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v44/constructors/chatForbidden.md +++ b/old_docs/API_docs_v44/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputChannel.md b/old_docs/API_docs_v44/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v44/constructors/inputChannel.md +++ b/old_docs/API_docs_v44/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputChannelEmpty.md b/old_docs/API_docs_v44/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v44/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v44/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputPeerChannel.md b/old_docs/API_docs_v44/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v44/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v44/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputPeerChat.md b/old_docs/API_docs_v44/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v44/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v44/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputPeerEmpty.md b/old_docs/API_docs_v44/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v44/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v44/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputPeerSelf.md b/old_docs/API_docs_v44/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v44/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v44/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputPeerUser.md b/old_docs/API_docs_v44/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v44/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v44/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputUser.md b/old_docs/API_docs_v44/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v44/constructors/inputUser.md +++ b/old_docs/API_docs_v44/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputUserEmpty.md b/old_docs/API_docs_v44/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v44/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v44/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/inputUserSelf.md b/old_docs/API_docs_v44/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v44/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v44/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/peerChannel.md b/old_docs/API_docs_v44/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v44/constructors/peerChannel.md +++ b/old_docs/API_docs_v44/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/peerChat.md b/old_docs/API_docs_v44/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v44/constructors/peerChat.md +++ b/old_docs/API_docs_v44/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/peerUser.md b/old_docs/API_docs_v44/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v44/constructors/peerUser.md +++ b/old_docs/API_docs_v44/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/user.md b/old_docs/API_docs_v44/constructors/user.md index d4658555..b484f52e 100644 --- a/old_docs/API_docs_v44/constructors/user.md +++ b/old_docs/API_docs_v44/constructors/user.md @@ -42,16 +42,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'restricted' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restiction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/userEmpty.md b/old_docs/API_docs_v44/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v44/constructors/userEmpty.md +++ b/old_docs/API_docs_v44/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v44/types/Chat.md b/old_docs/API_docs_v44/types/Chat.md index 1dc2c40e..97c03cd1 100644 --- a/old_docs/API_docs_v44/types/Chat.md +++ b/old_docs/API_docs_v44/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$messages_foundGifs = '@username'; // Username + +$messages_foundGifs = 44700; // bot API id (users) +$messages_foundGifs = -492772765; // bot API id (chats) +$messages_foundGifs = -10038575794; // bot API id (channels) + +$messages_foundGifs = 'user#44700'; // tg-cli style id (users) +$messages_foundGifs = 'chat#492772765'; // tg-cli style id (chats) +$messages_foundGifs = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v44/types/InputChannel.md b/old_docs/API_docs_v44/types/InputChannel.md index b573025d..77dfd593 100644 --- a/old_docs/API_docs_v44/types/InputChannel.md +++ b/old_docs/API_docs_v44/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$messages_foundGifs = '@username'; // Username + +$messages_foundGifs = 44700; // bot API id (users) +$messages_foundGifs = -492772765; // bot API id (chats) +$messages_foundGifs = -10038575794; // bot API id (channels) + +$messages_foundGifs = 'user#44700'; // tg-cli style id (users) +$messages_foundGifs = 'chat#492772765'; // tg-cli style id (chats) +$messages_foundGifs = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v44/types/InputPeer.md b/old_docs/API_docs_v44/types/InputPeer.md index 7adf47ab..4dfbf2e7 100644 --- a/old_docs/API_docs_v44/types/InputPeer.md +++ b/old_docs/API_docs_v44/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$messages_foundGifs = '@username'; // Username + +$messages_foundGifs = 44700; // bot API id (users) +$messages_foundGifs = -492772765; // bot API id (chats) +$messages_foundGifs = -10038575794; // bot API id (channels) + +$messages_foundGifs = 'user#44700'; // tg-cli style id (users) +$messages_foundGifs = 'chat#492772765'; // tg-cli style id (chats) +$messages_foundGifs = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v44/types/InputUser.md b/old_docs/API_docs_v44/types/InputUser.md index c5ced2f7..7fec458d 100644 --- a/old_docs/API_docs_v44/types/InputUser.md +++ b/old_docs/API_docs_v44/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$messages_foundGifs = '@username'; // Username + +$messages_foundGifs = 44700; // bot API id (users) +$messages_foundGifs = -492772765; // bot API id (chats) +$messages_foundGifs = -10038575794; // bot API id (channels) + +$messages_foundGifs = 'user#44700'; // tg-cli style id (users) +$messages_foundGifs = 'chat#492772765'; // tg-cli style id (chats) +$messages_foundGifs = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v44/types/Peer.md b/old_docs/API_docs_v44/types/Peer.md index d4aa8884..3badd180 100644 --- a/old_docs/API_docs_v44/types/Peer.md +++ b/old_docs/API_docs_v44/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$messages_foundGifs = '@username'; // Username + +$messages_foundGifs = 44700; // bot API id (users) +$messages_foundGifs = -492772765; // bot API id (chats) +$messages_foundGifs = -10038575794; // bot API id (channels) + +$messages_foundGifs = 'user#44700'; // tg-cli style id (users) +$messages_foundGifs = 'chat#492772765'; // tg-cli style id (chats) +$messages_foundGifs = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v44/types/User.md b/old_docs/API_docs_v44/types/User.md index 63494937..b7eb6183 100644 --- a/old_docs/API_docs_v44/types/User.md +++ b/old_docs/API_docs_v44/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$messages_foundGifs = '@username'; // Username + +$messages_foundGifs = 44700; // bot API id (users) +$messages_foundGifs = -492772765; // bot API id (chats) +$messages_foundGifs = -10038575794; // bot API id (channels) + +$messages_foundGifs = 'user#44700'; // tg-cli style id (users) +$messages_foundGifs = 'chat#492772765'; // tg-cli style id (chats) +$messages_foundGifs = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v45/constructors/channel.md b/old_docs/API_docs_v45/constructors/channel.md index 5fc73be5..bfaf73ed 100644 --- a/old_docs/API_docs_v45/constructors/channel.md +++ b/old_docs/API_docs_v45/constructors/channel.md @@ -40,16 +40,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/channelForbidden.md b/old_docs/API_docs_v45/constructors/channelForbidden.md index c09f61fd..3a18f705 100644 --- a/old_docs/API_docs_v45/constructors/channelForbidden.md +++ b/old_docs/API_docs_v45/constructors/channelForbidden.md @@ -26,16 +26,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/chat.md b/old_docs/API_docs_v45/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v45/constructors/chat.md +++ b/old_docs/API_docs_v45/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/chatEmpty.md b/old_docs/API_docs_v45/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v45/constructors/chatEmpty.md +++ b/old_docs/API_docs_v45/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/chatForbidden.md b/old_docs/API_docs_v45/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v45/constructors/chatForbidden.md +++ b/old_docs/API_docs_v45/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputChannel.md b/old_docs/API_docs_v45/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v45/constructors/inputChannel.md +++ b/old_docs/API_docs_v45/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputChannelEmpty.md b/old_docs/API_docs_v45/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v45/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v45/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputPeerChannel.md b/old_docs/API_docs_v45/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v45/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v45/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputPeerChat.md b/old_docs/API_docs_v45/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v45/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v45/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputPeerEmpty.md b/old_docs/API_docs_v45/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v45/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v45/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputPeerSelf.md b/old_docs/API_docs_v45/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v45/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v45/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputPeerUser.md b/old_docs/API_docs_v45/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v45/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v45/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputUser.md b/old_docs/API_docs_v45/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v45/constructors/inputUser.md +++ b/old_docs/API_docs_v45/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputUserEmpty.md b/old_docs/API_docs_v45/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v45/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v45/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/inputUserSelf.md b/old_docs/API_docs_v45/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v45/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v45/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/peerChannel.md b/old_docs/API_docs_v45/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v45/constructors/peerChannel.md +++ b/old_docs/API_docs_v45/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/peerChat.md b/old_docs/API_docs_v45/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v45/constructors/peerChat.md +++ b/old_docs/API_docs_v45/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/peerUser.md b/old_docs/API_docs_v45/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v45/constructors/peerUser.md +++ b/old_docs/API_docs_v45/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/user.md b/old_docs/API_docs_v45/constructors/user.md index a8137be6..27469e51 100644 --- a/old_docs/API_docs_v45/constructors/user.md +++ b/old_docs/API_docs_v45/constructors/user.md @@ -43,16 +43,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'restricted' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => string, 'bot_inline_placeholder' => string, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/userEmpty.md b/old_docs/API_docs_v45/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v45/constructors/userEmpty.md +++ b/old_docs/API_docs_v45/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v45/types/Chat.md b/old_docs/API_docs_v45/types/Chat.md index 1dc2c40e..6c290365 100644 --- a/old_docs/API_docs_v45/types/Chat.md +++ b/old_docs/API_docs_v45/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +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): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v45/types/InputChannel.md b/old_docs/API_docs_v45/types/InputChannel.md index b573025d..b1ba813a 100644 --- a/old_docs/API_docs_v45/types/InputChannel.md +++ b/old_docs/API_docs_v45/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +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): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v45/types/InputPeer.md b/old_docs/API_docs_v45/types/InputPeer.md index 7adf47ab..6093ac93 100644 --- a/old_docs/API_docs_v45/types/InputPeer.md +++ b/old_docs/API_docs_v45/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +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): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v45/types/InputUser.md b/old_docs/API_docs_v45/types/InputUser.md index c5ced2f7..2ca519b1 100644 --- a/old_docs/API_docs_v45/types/InputUser.md +++ b/old_docs/API_docs_v45/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +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): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v45/types/Peer.md b/old_docs/API_docs_v45/types/Peer.md index d4aa8884..81458426 100644 --- a/old_docs/API_docs_v45/types/Peer.md +++ b/old_docs/API_docs_v45/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +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) diff --git a/old_docs/API_docs_v45/types/User.md b/old_docs/API_docs_v45/types/User.md index 63494937..62608c9e 100644 --- a/old_docs/API_docs_v45/types/User.md +++ b/old_docs/API_docs_v45/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +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): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v46/constructors/channel.md b/old_docs/API_docs_v46/constructors/channel.md index 5fc73be5..bfaf73ed 100644 --- a/old_docs/API_docs_v46/constructors/channel.md +++ b/old_docs/API_docs_v46/constructors/channel.md @@ -40,16 +40,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/channelForbidden.md b/old_docs/API_docs_v46/constructors/channelForbidden.md index c09f61fd..3a18f705 100644 --- a/old_docs/API_docs_v46/constructors/channelForbidden.md +++ b/old_docs/API_docs_v46/constructors/channelForbidden.md @@ -26,16 +26,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/chat.md b/old_docs/API_docs_v46/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v46/constructors/chat.md +++ b/old_docs/API_docs_v46/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/chatEmpty.md b/old_docs/API_docs_v46/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v46/constructors/chatEmpty.md +++ b/old_docs/API_docs_v46/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/chatForbidden.md b/old_docs/API_docs_v46/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v46/constructors/chatForbidden.md +++ b/old_docs/API_docs_v46/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputChannel.md b/old_docs/API_docs_v46/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v46/constructors/inputChannel.md +++ b/old_docs/API_docs_v46/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputChannelEmpty.md b/old_docs/API_docs_v46/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v46/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v46/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputPeerChannel.md b/old_docs/API_docs_v46/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v46/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v46/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputPeerChat.md b/old_docs/API_docs_v46/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v46/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v46/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputPeerEmpty.md b/old_docs/API_docs_v46/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v46/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v46/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputPeerSelf.md b/old_docs/API_docs_v46/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v46/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v46/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputPeerUser.md b/old_docs/API_docs_v46/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v46/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v46/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputUser.md b/old_docs/API_docs_v46/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v46/constructors/inputUser.md +++ b/old_docs/API_docs_v46/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputUserEmpty.md b/old_docs/API_docs_v46/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v46/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v46/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/inputUserSelf.md b/old_docs/API_docs_v46/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v46/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v46/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/peerChannel.md b/old_docs/API_docs_v46/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v46/constructors/peerChannel.md +++ b/old_docs/API_docs_v46/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/peerChat.md b/old_docs/API_docs_v46/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v46/constructors/peerChat.md +++ b/old_docs/API_docs_v46/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/peerUser.md b/old_docs/API_docs_v46/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v46/constructors/peerUser.md +++ b/old_docs/API_docs_v46/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/user.md b/old_docs/API_docs_v46/constructors/user.md index a8137be6..27469e51 100644 --- a/old_docs/API_docs_v46/constructors/user.md +++ b/old_docs/API_docs_v46/constructors/user.md @@ -43,16 +43,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'restricted' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => string, 'bot_inline_placeholder' => string, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/constructors/userEmpty.md b/old_docs/API_docs_v46/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v46/constructors/userEmpty.md +++ b/old_docs/API_docs_v46/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v46/types/Chat.md b/old_docs/API_docs_v46/types/Chat.md index 1dc2c40e..91e98931 100644 --- a/old_docs/API_docs_v46/types/Chat.md +++ b/old_docs/API_docs_v46/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$messages_botResults = '@username'; // Username + +$messages_botResults = 44700; // bot API id (users) +$messages_botResults = -492772765; // bot API id (chats) +$messages_botResults = -10038575794; // bot API id (channels) + +$messages_botResults = 'user#44700'; // tg-cli style id (users) +$messages_botResults = 'chat#492772765'; // tg-cli style id (chats) +$messages_botResults = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v46/types/InputChannel.md b/old_docs/API_docs_v46/types/InputChannel.md index b573025d..08105ac0 100644 --- a/old_docs/API_docs_v46/types/InputChannel.md +++ b/old_docs/API_docs_v46/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$messages_botResults = '@username'; // Username + +$messages_botResults = 44700; // bot API id (users) +$messages_botResults = -492772765; // bot API id (chats) +$messages_botResults = -10038575794; // bot API id (channels) + +$messages_botResults = 'user#44700'; // tg-cli style id (users) +$messages_botResults = 'chat#492772765'; // tg-cli style id (chats) +$messages_botResults = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v46/types/InputPeer.md b/old_docs/API_docs_v46/types/InputPeer.md index 7adf47ab..ea4bcafc 100644 --- a/old_docs/API_docs_v46/types/InputPeer.md +++ b/old_docs/API_docs_v46/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$messages_botResults = '@username'; // Username + +$messages_botResults = 44700; // bot API id (users) +$messages_botResults = -492772765; // bot API id (chats) +$messages_botResults = -10038575794; // bot API id (channels) + +$messages_botResults = 'user#44700'; // tg-cli style id (users) +$messages_botResults = 'chat#492772765'; // tg-cli style id (chats) +$messages_botResults = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v46/types/InputUser.md b/old_docs/API_docs_v46/types/InputUser.md index c5ced2f7..28c577f9 100644 --- a/old_docs/API_docs_v46/types/InputUser.md +++ b/old_docs/API_docs_v46/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$messages_botResults = '@username'; // Username + +$messages_botResults = 44700; // bot API id (users) +$messages_botResults = -492772765; // bot API id (chats) +$messages_botResults = -10038575794; // bot API id (channels) + +$messages_botResults = 'user#44700'; // tg-cli style id (users) +$messages_botResults = 'chat#492772765'; // tg-cli style id (chats) +$messages_botResults = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v46/types/Peer.md b/old_docs/API_docs_v46/types/Peer.md index d4aa8884..d7160bed 100644 --- a/old_docs/API_docs_v46/types/Peer.md +++ b/old_docs/API_docs_v46/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$messages_botResults = '@username'; // Username + +$messages_botResults = 44700; // bot API id (users) +$messages_botResults = -492772765; // bot API id (chats) +$messages_botResults = -10038575794; // bot API id (channels) + +$messages_botResults = 'user#44700'; // tg-cli style id (users) +$messages_botResults = 'chat#492772765'; // tg-cli style id (chats) +$messages_botResults = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v46/types/User.md b/old_docs/API_docs_v46/types/User.md index 97f81af7..94ae5aa4 100644 --- a/old_docs/API_docs_v46/types/User.md +++ b/old_docs/API_docs_v46/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$messages_botResults = '@username'; // Username + +$messages_botResults = 44700; // bot API id (users) +$messages_botResults = -492772765; // bot API id (chats) +$messages_botResults = -10038575794; // bot API id (channels) + +$messages_botResults = 'user#44700'; // tg-cli style id (users) +$messages_botResults = 'chat#492772765'; // tg-cli style id (chats) +$messages_botResults = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v51/constructors/channel.md b/old_docs/API_docs_v51/constructors/channel.md index 1b7ba64d..37df6dca 100644 --- a/old_docs/API_docs_v51/constructors/channel.md +++ b/old_docs/API_docs_v51/constructors/channel.md @@ -43,16 +43,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'democracy' => true, 'signatures' => true, 'min' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/channelForbidden.md b/old_docs/API_docs_v51/constructors/channelForbidden.md index c09f61fd..3a18f705 100644 --- a/old_docs/API_docs_v51/constructors/channelForbidden.md +++ b/old_docs/API_docs_v51/constructors/channelForbidden.md @@ -26,16 +26,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/chat.md b/old_docs/API_docs_v51/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v51/constructors/chat.md +++ b/old_docs/API_docs_v51/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/chatEmpty.md b/old_docs/API_docs_v51/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v51/constructors/chatEmpty.md +++ b/old_docs/API_docs_v51/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/chatForbidden.md b/old_docs/API_docs_v51/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v51/constructors/chatForbidden.md +++ b/old_docs/API_docs_v51/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputChannel.md b/old_docs/API_docs_v51/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v51/constructors/inputChannel.md +++ b/old_docs/API_docs_v51/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputChannelEmpty.md b/old_docs/API_docs_v51/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v51/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v51/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputPeerChannel.md b/old_docs/API_docs_v51/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v51/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v51/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputPeerChat.md b/old_docs/API_docs_v51/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v51/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v51/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputPeerEmpty.md b/old_docs/API_docs_v51/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v51/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v51/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputPeerSelf.md b/old_docs/API_docs_v51/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v51/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v51/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputPeerUser.md b/old_docs/API_docs_v51/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v51/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v51/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputUser.md b/old_docs/API_docs_v51/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v51/constructors/inputUser.md +++ b/old_docs/API_docs_v51/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputUserEmpty.md b/old_docs/API_docs_v51/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v51/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v51/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/inputUserSelf.md b/old_docs/API_docs_v51/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v51/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v51/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/peerChannel.md b/old_docs/API_docs_v51/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v51/constructors/peerChannel.md +++ b/old_docs/API_docs_v51/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/peerChat.md b/old_docs/API_docs_v51/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v51/constructors/peerChat.md +++ b/old_docs/API_docs_v51/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/peerUser.md b/old_docs/API_docs_v51/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v51/constructors/peerUser.md +++ b/old_docs/API_docs_v51/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/user.md b/old_docs/API_docs_v51/constructors/user.md index efd0a934..5b26821b 100644 --- a/old_docs/API_docs_v51/constructors/user.md +++ b/old_docs/API_docs_v51/constructors/user.md @@ -45,16 +45,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'restricted' => true, 'min' => true, 'bot_inline_geo' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => string, 'bot_inline_placeholder' => string, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/userEmpty.md b/old_docs/API_docs_v51/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v51/constructors/userEmpty.md +++ b/old_docs/API_docs_v51/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v51/types/Chat.md b/old_docs/API_docs_v51/types/Chat.md index 1dc2c40e..ba07f1fa 100644 --- a/old_docs/API_docs_v51/types/Chat.md +++ b/old_docs/API_docs_v51/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$inlineBotSwitchPM = '@username'; // Username + +$inlineBotSwitchPM = 44700; // bot API id (users) +$inlineBotSwitchPM = -492772765; // bot API id (chats) +$inlineBotSwitchPM = -10038575794; // bot API id (channels) + +$inlineBotSwitchPM = 'user#44700'; // tg-cli style id (users) +$inlineBotSwitchPM = 'chat#492772765'; // tg-cli style id (chats) +$inlineBotSwitchPM = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v51/types/InputChannel.md b/old_docs/API_docs_v51/types/InputChannel.md index b573025d..69d5fb50 100644 --- a/old_docs/API_docs_v51/types/InputChannel.md +++ b/old_docs/API_docs_v51/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$inlineBotSwitchPM = '@username'; // Username + +$inlineBotSwitchPM = 44700; // bot API id (users) +$inlineBotSwitchPM = -492772765; // bot API id (chats) +$inlineBotSwitchPM = -10038575794; // bot API id (channels) + +$inlineBotSwitchPM = 'user#44700'; // tg-cli style id (users) +$inlineBotSwitchPM = 'chat#492772765'; // tg-cli style id (chats) +$inlineBotSwitchPM = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v51/types/InputPeer.md b/old_docs/API_docs_v51/types/InputPeer.md index 7adf47ab..90b38054 100644 --- a/old_docs/API_docs_v51/types/InputPeer.md +++ b/old_docs/API_docs_v51/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$inlineBotSwitchPM = '@username'; // Username + +$inlineBotSwitchPM = 44700; // bot API id (users) +$inlineBotSwitchPM = -492772765; // bot API id (chats) +$inlineBotSwitchPM = -10038575794; // bot API id (channels) + +$inlineBotSwitchPM = 'user#44700'; // tg-cli style id (users) +$inlineBotSwitchPM = 'chat#492772765'; // tg-cli style id (chats) +$inlineBotSwitchPM = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v51/types/InputUser.md b/old_docs/API_docs_v51/types/InputUser.md index c5ced2f7..c3ed30d0 100644 --- a/old_docs/API_docs_v51/types/InputUser.md +++ b/old_docs/API_docs_v51/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$inlineBotSwitchPM = '@username'; // Username + +$inlineBotSwitchPM = 44700; // bot API id (users) +$inlineBotSwitchPM = -492772765; // bot API id (chats) +$inlineBotSwitchPM = -10038575794; // bot API id (channels) + +$inlineBotSwitchPM = 'user#44700'; // tg-cli style id (users) +$inlineBotSwitchPM = 'chat#492772765'; // tg-cli style id (chats) +$inlineBotSwitchPM = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v51/types/Peer.md b/old_docs/API_docs_v51/types/Peer.md index d4aa8884..0142a6b1 100644 --- a/old_docs/API_docs_v51/types/Peer.md +++ b/old_docs/API_docs_v51/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$inlineBotSwitchPM = '@username'; // Username + +$inlineBotSwitchPM = 44700; // bot API id (users) +$inlineBotSwitchPM = -492772765; // bot API id (chats) +$inlineBotSwitchPM = -10038575794; // bot API id (channels) + +$inlineBotSwitchPM = 'user#44700'; // tg-cli style id (users) +$inlineBotSwitchPM = 'chat#492772765'; // tg-cli style id (chats) +$inlineBotSwitchPM = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v51/types/User.md b/old_docs/API_docs_v51/types/User.md index 63494937..f156bf56 100644 --- a/old_docs/API_docs_v51/types/User.md +++ b/old_docs/API_docs_v51/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$inlineBotSwitchPM = '@username'; // Username + +$inlineBotSwitchPM = 44700; // bot API id (users) +$inlineBotSwitchPM = -492772765; // bot API id (chats) +$inlineBotSwitchPM = -10038575794; // bot API id (channels) + +$inlineBotSwitchPM = 'user#44700'; // tg-cli style id (users) +$inlineBotSwitchPM = 'chat#492772765'; // tg-cli style id (chats) +$inlineBotSwitchPM = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v53/constructors/channel.md b/old_docs/API_docs_v53/constructors/channel.md index 1b7ba64d..37df6dca 100644 --- a/old_docs/API_docs_v53/constructors/channel.md +++ b/old_docs/API_docs_v53/constructors/channel.md @@ -43,16 +43,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'democracy' => true, 'signatures' => true, 'min' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/channelForbidden.md b/old_docs/API_docs_v53/constructors/channelForbidden.md index 36b7ac28..f44942eb 100644 --- a/old_docs/API_docs_v53/constructors/channelForbidden.md +++ b/old_docs/API_docs_v53/constructors/channelForbidden.md @@ -28,16 +28,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'broadcast' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/chat.md b/old_docs/API_docs_v53/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v53/constructors/chat.md +++ b/old_docs/API_docs_v53/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/chatEmpty.md b/old_docs/API_docs_v53/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v53/constructors/chatEmpty.md +++ b/old_docs/API_docs_v53/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/chatForbidden.md b/old_docs/API_docs_v53/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v53/constructors/chatForbidden.md +++ b/old_docs/API_docs_v53/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputChannel.md b/old_docs/API_docs_v53/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v53/constructors/inputChannel.md +++ b/old_docs/API_docs_v53/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputChannelEmpty.md b/old_docs/API_docs_v53/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v53/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v53/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputPeerChannel.md b/old_docs/API_docs_v53/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v53/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v53/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputPeerChat.md b/old_docs/API_docs_v53/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v53/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v53/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputPeerEmpty.md b/old_docs/API_docs_v53/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v53/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v53/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputPeerSelf.md b/old_docs/API_docs_v53/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v53/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v53/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputPeerUser.md b/old_docs/API_docs_v53/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v53/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v53/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputUser.md b/old_docs/API_docs_v53/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v53/constructors/inputUser.md +++ b/old_docs/API_docs_v53/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputUserEmpty.md b/old_docs/API_docs_v53/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v53/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v53/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/inputUserSelf.md b/old_docs/API_docs_v53/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v53/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v53/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/peerChannel.md b/old_docs/API_docs_v53/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v53/constructors/peerChannel.md +++ b/old_docs/API_docs_v53/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/peerChat.md b/old_docs/API_docs_v53/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v53/constructors/peerChat.md +++ b/old_docs/API_docs_v53/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/peerUser.md b/old_docs/API_docs_v53/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v53/constructors/peerUser.md +++ b/old_docs/API_docs_v53/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/user.md b/old_docs/API_docs_v53/constructors/user.md index efd0a934..5b26821b 100644 --- a/old_docs/API_docs_v53/constructors/user.md +++ b/old_docs/API_docs_v53/constructors/user.md @@ -45,16 +45,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'restricted' => true, 'min' => true, 'bot_inline_geo' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => string, 'bot_inline_placeholder' => string, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/constructors/userEmpty.md b/old_docs/API_docs_v53/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v53/constructors/userEmpty.md +++ b/old_docs/API_docs_v53/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v53/types/Chat.md b/old_docs/API_docs_v53/types/Chat.md index 1dc2c40e..6f73b883 100644 --- a/old_docs/API_docs_v53/types/Chat.md +++ b/old_docs/API_docs_v53/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$messageActionHistoryClear = '@username'; // Username + +$messageActionHistoryClear = 44700; // bot API id (users) +$messageActionHistoryClear = -492772765; // bot API id (chats) +$messageActionHistoryClear = -10038575794; // bot API id (channels) + +$messageActionHistoryClear = 'user#44700'; // tg-cli style id (users) +$messageActionHistoryClear = 'chat#492772765'; // tg-cli style id (chats) +$messageActionHistoryClear = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v53/types/InputChannel.md b/old_docs/API_docs_v53/types/InputChannel.md index b573025d..b83a4557 100644 --- a/old_docs/API_docs_v53/types/InputChannel.md +++ b/old_docs/API_docs_v53/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$messageActionHistoryClear = '@username'; // Username + +$messageActionHistoryClear = 44700; // bot API id (users) +$messageActionHistoryClear = -492772765; // bot API id (chats) +$messageActionHistoryClear = -10038575794; // bot API id (channels) + +$messageActionHistoryClear = 'user#44700'; // tg-cli style id (users) +$messageActionHistoryClear = 'chat#492772765'; // tg-cli style id (chats) +$messageActionHistoryClear = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v53/types/InputPeer.md b/old_docs/API_docs_v53/types/InputPeer.md index 7adf47ab..3a1d1776 100644 --- a/old_docs/API_docs_v53/types/InputPeer.md +++ b/old_docs/API_docs_v53/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$messageActionHistoryClear = '@username'; // Username + +$messageActionHistoryClear = 44700; // bot API id (users) +$messageActionHistoryClear = -492772765; // bot API id (chats) +$messageActionHistoryClear = -10038575794; // bot API id (channels) + +$messageActionHistoryClear = 'user#44700'; // tg-cli style id (users) +$messageActionHistoryClear = 'chat#492772765'; // tg-cli style id (chats) +$messageActionHistoryClear = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v53/types/InputUser.md b/old_docs/API_docs_v53/types/InputUser.md index c5ced2f7..faa0abb6 100644 --- a/old_docs/API_docs_v53/types/InputUser.md +++ b/old_docs/API_docs_v53/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$messageActionHistoryClear = '@username'; // Username + +$messageActionHistoryClear = 44700; // bot API id (users) +$messageActionHistoryClear = -492772765; // bot API id (chats) +$messageActionHistoryClear = -10038575794; // bot API id (channels) + +$messageActionHistoryClear = 'user#44700'; // tg-cli style id (users) +$messageActionHistoryClear = 'chat#492772765'; // tg-cli style id (chats) +$messageActionHistoryClear = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v53/types/Peer.md b/old_docs/API_docs_v53/types/Peer.md index d4aa8884..3f23bc62 100644 --- a/old_docs/API_docs_v53/types/Peer.md +++ b/old_docs/API_docs_v53/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$messageActionHistoryClear = '@username'; // Username + +$messageActionHistoryClear = 44700; // bot API id (users) +$messageActionHistoryClear = -492772765; // bot API id (chats) +$messageActionHistoryClear = -10038575794; // bot API id (channels) + +$messageActionHistoryClear = 'user#44700'; // tg-cli style id (users) +$messageActionHistoryClear = 'chat#492772765'; // tg-cli style id (chats) +$messageActionHistoryClear = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v53/types/User.md b/old_docs/API_docs_v53/types/User.md index 63494937..a61a820d 100644 --- a/old_docs/API_docs_v53/types/User.md +++ b/old_docs/API_docs_v53/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$messageActionHistoryClear = '@username'; // Username + +$messageActionHistoryClear = 44700; // bot API id (users) +$messageActionHistoryClear = -492772765; // bot API id (chats) +$messageActionHistoryClear = -10038575794; // bot API id (channels) + +$messageActionHistoryClear = 'user#44700'; // tg-cli style id (users) +$messageActionHistoryClear = 'chat#492772765'; // tg-cli style id (chats) +$messageActionHistoryClear = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v55/constructors/channel.md b/old_docs/API_docs_v55/constructors/channel.md index 1b7ba64d..37df6dca 100644 --- a/old_docs/API_docs_v55/constructors/channel.md +++ b/old_docs/API_docs_v55/constructors/channel.md @@ -43,16 +43,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'democracy' => true, 'signatures' => true, 'min' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/channelForbidden.md b/old_docs/API_docs_v55/constructors/channelForbidden.md index 36b7ac28..f44942eb 100644 --- a/old_docs/API_docs_v55/constructors/channelForbidden.md +++ b/old_docs/API_docs_v55/constructors/channelForbidden.md @@ -28,16 +28,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'broadcast' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/chat.md b/old_docs/API_docs_v55/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v55/constructors/chat.md +++ b/old_docs/API_docs_v55/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/chatEmpty.md b/old_docs/API_docs_v55/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v55/constructors/chatEmpty.md +++ b/old_docs/API_docs_v55/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/chatForbidden.md b/old_docs/API_docs_v55/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v55/constructors/chatForbidden.md +++ b/old_docs/API_docs_v55/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputChannel.md b/old_docs/API_docs_v55/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v55/constructors/inputChannel.md +++ b/old_docs/API_docs_v55/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputChannelEmpty.md b/old_docs/API_docs_v55/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v55/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v55/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputPeerChannel.md b/old_docs/API_docs_v55/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v55/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v55/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputPeerChat.md b/old_docs/API_docs_v55/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v55/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v55/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputPeerEmpty.md b/old_docs/API_docs_v55/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v55/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v55/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputPeerSelf.md b/old_docs/API_docs_v55/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v55/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v55/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputPeerUser.md b/old_docs/API_docs_v55/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v55/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v55/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputUser.md b/old_docs/API_docs_v55/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v55/constructors/inputUser.md +++ b/old_docs/API_docs_v55/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputUserEmpty.md b/old_docs/API_docs_v55/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v55/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v55/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/inputUserSelf.md b/old_docs/API_docs_v55/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v55/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v55/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/peerChannel.md b/old_docs/API_docs_v55/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v55/constructors/peerChannel.md +++ b/old_docs/API_docs_v55/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/peerChat.md b/old_docs/API_docs_v55/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v55/constructors/peerChat.md +++ b/old_docs/API_docs_v55/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/peerUser.md b/old_docs/API_docs_v55/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v55/constructors/peerUser.md +++ b/old_docs/API_docs_v55/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/user.md b/old_docs/API_docs_v55/constructors/user.md index efd0a934..5b26821b 100644 --- a/old_docs/API_docs_v55/constructors/user.md +++ b/old_docs/API_docs_v55/constructors/user.md @@ -45,16 +45,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'restricted' => true, 'min' => true, 'bot_inline_geo' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => string, 'bot_inline_placeholder' => string, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/userEmpty.md b/old_docs/API_docs_v55/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v55/constructors/userEmpty.md +++ b/old_docs/API_docs_v55/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v55/types/Chat.md b/old_docs/API_docs_v55/types/Chat.md index 1dc2c40e..0fb2bf5e 100644 --- a/old_docs/API_docs_v55/types/Chat.md +++ b/old_docs/API_docs_v55/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$stickerSetCovered = '@username'; // Username + +$stickerSetCovered = 44700; // bot API id (users) +$stickerSetCovered = -492772765; // bot API id (chats) +$stickerSetCovered = -10038575794; // bot API id (channels) + +$stickerSetCovered = 'user#44700'; // tg-cli style id (users) +$stickerSetCovered = 'chat#492772765'; // tg-cli style id (chats) +$stickerSetCovered = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v55/types/InputChannel.md b/old_docs/API_docs_v55/types/InputChannel.md index b573025d..d77668f6 100644 --- a/old_docs/API_docs_v55/types/InputChannel.md +++ b/old_docs/API_docs_v55/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$stickerSetCovered = '@username'; // Username + +$stickerSetCovered = 44700; // bot API id (users) +$stickerSetCovered = -492772765; // bot API id (chats) +$stickerSetCovered = -10038575794; // bot API id (channels) + +$stickerSetCovered = 'user#44700'; // tg-cli style id (users) +$stickerSetCovered = 'chat#492772765'; // tg-cli style id (chats) +$stickerSetCovered = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v55/types/InputPeer.md b/old_docs/API_docs_v55/types/InputPeer.md index 7adf47ab..549bf43c 100644 --- a/old_docs/API_docs_v55/types/InputPeer.md +++ b/old_docs/API_docs_v55/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$stickerSetCovered = '@username'; // Username + +$stickerSetCovered = 44700; // bot API id (users) +$stickerSetCovered = -492772765; // bot API id (chats) +$stickerSetCovered = -10038575794; // bot API id (channels) + +$stickerSetCovered = 'user#44700'; // tg-cli style id (users) +$stickerSetCovered = 'chat#492772765'; // tg-cli style id (chats) +$stickerSetCovered = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v55/types/InputUser.md b/old_docs/API_docs_v55/types/InputUser.md index c5ced2f7..e4c2e4e6 100644 --- a/old_docs/API_docs_v55/types/InputUser.md +++ b/old_docs/API_docs_v55/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$stickerSetCovered = '@username'; // Username + +$stickerSetCovered = 44700; // bot API id (users) +$stickerSetCovered = -492772765; // bot API id (chats) +$stickerSetCovered = -10038575794; // bot API id (channels) + +$stickerSetCovered = 'user#44700'; // tg-cli style id (users) +$stickerSetCovered = 'chat#492772765'; // tg-cli style id (chats) +$stickerSetCovered = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v55/types/Peer.md b/old_docs/API_docs_v55/types/Peer.md index d4aa8884..5d2196aa 100644 --- a/old_docs/API_docs_v55/types/Peer.md +++ b/old_docs/API_docs_v55/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$stickerSetCovered = '@username'; // Username + +$stickerSetCovered = 44700; // bot API id (users) +$stickerSetCovered = -492772765; // bot API id (chats) +$stickerSetCovered = -10038575794; // bot API id (channels) + +$stickerSetCovered = 'user#44700'; // tg-cli style id (users) +$stickerSetCovered = 'chat#492772765'; // tg-cli style id (chats) +$stickerSetCovered = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v55/types/User.md b/old_docs/API_docs_v55/types/User.md index 63494937..25b8df28 100644 --- a/old_docs/API_docs_v55/types/User.md +++ b/old_docs/API_docs_v55/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$stickerSetCovered = '@username'; // Username + +$stickerSetCovered = 44700; // bot API id (users) +$stickerSetCovered = -492772765; // bot API id (chats) +$stickerSetCovered = -10038575794; // bot API id (channels) + +$stickerSetCovered = 'user#44700'; // tg-cli style id (users) +$stickerSetCovered = 'chat#492772765'; // tg-cli style id (chats) +$stickerSetCovered = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/old_docs/API_docs_v57/constructors/channel.md b/old_docs/API_docs_v57/constructors/channel.md index 1b7ba64d..37df6dca 100644 --- a/old_docs/API_docs_v57/constructors/channel.md +++ b/old_docs/API_docs_v57/constructors/channel.md @@ -43,16 +43,3 @@ description: channel attributes, type and example $channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'democracy' => true, 'signatures' => true, 'min' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channel = '@username'; // Username - -$channel = 44700; // bot API id (users) -$channel = -492772765; // bot API id (chats) -$channel = -10038575794; // bot API id (channels) - -$channel = 'user#44700'; // tg-cli style id (users) -$channel = 'chat#492772765'; // tg-cli style id (chats) -$channel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/channelForbidden.md b/old_docs/API_docs_v57/constructors/channelForbidden.md index 36b7ac28..f44942eb 100644 --- a/old_docs/API_docs_v57/constructors/channelForbidden.md +++ b/old_docs/API_docs_v57/constructors/channelForbidden.md @@ -28,16 +28,3 @@ description: channelForbidden attributes, type and example $channelForbidden = ['_' => 'channelForbidden', 'broadcast' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$channelForbidden = '@username'; // Username - -$channelForbidden = 44700; // bot API id (users) -$channelForbidden = -492772765; // bot API id (chats) -$channelForbidden = -10038575794; // bot API id (channels) - -$channelForbidden = 'user#44700'; // tg-cli style id (users) -$channelForbidden = 'chat#492772765'; // tg-cli style id (chats) -$channelForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/chat.md b/old_docs/API_docs_v57/constructors/chat.md index 674d5bfe..8e262aa7 100644 --- a/old_docs/API_docs_v57/constructors/chat.md +++ b/old_docs/API_docs_v57/constructors/chat.md @@ -36,16 +36,3 @@ description: chat attributes, type and example $chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; ``` -The following syntaxes can also be used: - -``` -$chat = '@username'; // Username - -$chat = 44700; // bot API id (users) -$chat = -492772765; // bot API id (chats) -$chat = -10038575794; // bot API id (channels) - -$chat = 'user#44700'; // tg-cli style id (users) -$chat = 'chat#492772765'; // tg-cli style id (chats) -$chat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/chatEmpty.md b/old_docs/API_docs_v57/constructors/chatEmpty.md index 06f9a761..966842ba 100644 --- a/old_docs/API_docs_v57/constructors/chatEmpty.md +++ b/old_docs/API_docs_v57/constructors/chatEmpty.md @@ -24,16 +24,3 @@ description: chatEmpty attributes, type and example $chatEmpty = ['_' => 'chatEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$chatEmpty = '@username'; // Username - -$chatEmpty = 44700; // bot API id (users) -$chatEmpty = -492772765; // bot API id (chats) -$chatEmpty = -10038575794; // bot API id (channels) - -$chatEmpty = 'user#44700'; // tg-cli style id (users) -$chatEmpty = 'chat#492772765'; // tg-cli style id (chats) -$chatEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/chatForbidden.md b/old_docs/API_docs_v57/constructors/chatForbidden.md index fd52d8ba..05ae58a3 100644 --- a/old_docs/API_docs_v57/constructors/chatForbidden.md +++ b/old_docs/API_docs_v57/constructors/chatForbidden.md @@ -25,16 +25,3 @@ description: chatForbidden attributes, type and example $chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ]; ``` -The following syntaxes can also be used: - -``` -$chatForbidden = '@username'; // Username - -$chatForbidden = 44700; // bot API id (users) -$chatForbidden = -492772765; // bot API id (chats) -$chatForbidden = -10038575794; // bot API id (channels) - -$chatForbidden = 'user#44700'; // tg-cli style id (users) -$chatForbidden = 'chat#492772765'; // tg-cli style id (chats) -$chatForbidden = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputChannel.md b/old_docs/API_docs_v57/constructors/inputChannel.md index 32e90b2f..bac9806b 100644 --- a/old_docs/API_docs_v57/constructors/inputChannel.md +++ b/old_docs/API_docs_v57/constructors/inputChannel.md @@ -25,16 +25,3 @@ description: inputChannel attributes, type and example $inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputChannel = '@username'; // Username - -$inputChannel = 44700; // bot API id (users) -$inputChannel = -492772765; // bot API id (chats) -$inputChannel = -10038575794; // bot API id (channels) - -$inputChannel = 'user#44700'; // tg-cli style id (users) -$inputChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputChannelEmpty.md b/old_docs/API_docs_v57/constructors/inputChannelEmpty.md index 40f83aa5..39c389c1 100644 --- a/old_docs/API_docs_v57/constructors/inputChannelEmpty.md +++ b/old_docs/API_docs_v57/constructors/inputChannelEmpty.md @@ -19,16 +19,3 @@ description: inputChannelEmpty attributes, type and example $inputChannelEmpty = ['_' => 'inputChannelEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputChannelEmpty = '@username'; // Username - -$inputChannelEmpty = 44700; // bot API id (users) -$inputChannelEmpty = -492772765; // bot API id (chats) -$inputChannelEmpty = -10038575794; // bot API id (channels) - -$inputChannelEmpty = 'user#44700'; // tg-cli style id (users) -$inputChannelEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputChannelEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputPeerChannel.md b/old_docs/API_docs_v57/constructors/inputPeerChannel.md index 996fa9a8..d2b46f4f 100644 --- a/old_docs/API_docs_v57/constructors/inputPeerChannel.md +++ b/old_docs/API_docs_v57/constructors/inputPeerChannel.md @@ -25,16 +25,3 @@ description: inputPeerChannel attributes, type and example $inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChannel = '@username'; // Username - -$inputPeerChannel = 44700; // bot API id (users) -$inputPeerChannel = -492772765; // bot API id (chats) -$inputPeerChannel = -10038575794; // bot API id (channels) - -$inputPeerChannel = 'user#44700'; // tg-cli style id (users) -$inputPeerChannel = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputPeerChat.md b/old_docs/API_docs_v57/constructors/inputPeerChat.md index 7bc6a189..b5bf027a 100644 --- a/old_docs/API_docs_v57/constructors/inputPeerChat.md +++ b/old_docs/API_docs_v57/constructors/inputPeerChat.md @@ -24,16 +24,3 @@ description: inputPeerChat attributes, type and example $inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerChat = '@username'; // Username - -$inputPeerChat = 44700; // bot API id (users) -$inputPeerChat = -492772765; // bot API id (chats) -$inputPeerChat = -10038575794; // bot API id (channels) - -$inputPeerChat = 'user#44700'; // tg-cli style id (users) -$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputPeerEmpty.md b/old_docs/API_docs_v57/constructors/inputPeerEmpty.md index 17ca2dcf..97aedc50 100644 --- a/old_docs/API_docs_v57/constructors/inputPeerEmpty.md +++ b/old_docs/API_docs_v57/constructors/inputPeerEmpty.md @@ -19,16 +19,3 @@ description: inputPeerEmpty attributes, type and example $inputPeerEmpty = ['_' => 'inputPeerEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerEmpty = '@username'; // Username - -$inputPeerEmpty = 44700; // bot API id (users) -$inputPeerEmpty = -492772765; // bot API id (chats) -$inputPeerEmpty = -10038575794; // bot API id (channels) - -$inputPeerEmpty = 'user#44700'; // tg-cli style id (users) -$inputPeerEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputPeerSelf.md b/old_docs/API_docs_v57/constructors/inputPeerSelf.md index fc290783..510d531a 100644 --- a/old_docs/API_docs_v57/constructors/inputPeerSelf.md +++ b/old_docs/API_docs_v57/constructors/inputPeerSelf.md @@ -19,16 +19,3 @@ description: inputPeerSelf attributes, type and example $inputPeerSelf = ['_' => 'inputPeerSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerSelf = '@username'; // Username - -$inputPeerSelf = 44700; // bot API id (users) -$inputPeerSelf = -492772765; // bot API id (chats) -$inputPeerSelf = -10038575794; // bot API id (channels) - -$inputPeerSelf = 'user#44700'; // tg-cli style id (users) -$inputPeerSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputPeerUser.md b/old_docs/API_docs_v57/constructors/inputPeerUser.md index e671cfa8..d33a0489 100644 --- a/old_docs/API_docs_v57/constructors/inputPeerUser.md +++ b/old_docs/API_docs_v57/constructors/inputPeerUser.md @@ -25,16 +25,3 @@ description: inputPeerUser attributes, type and example $inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputPeerUser = '@username'; // Username - -$inputPeerUser = 44700; // bot API id (users) -$inputPeerUser = -492772765; // bot API id (chats) -$inputPeerUser = -10038575794; // bot API id (channels) - -$inputPeerUser = 'user#44700'; // tg-cli style id (users) -$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats) -$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputUser.md b/old_docs/API_docs_v57/constructors/inputUser.md index 1ac7cbe3..d17f2ffc 100644 --- a/old_docs/API_docs_v57/constructors/inputUser.md +++ b/old_docs/API_docs_v57/constructors/inputUser.md @@ -25,16 +25,3 @@ description: inputUser attributes, type and example $inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long, ]; ``` -The following syntaxes can also be used: - -``` -$inputUser = '@username'; // Username - -$inputUser = 44700; // bot API id (users) -$inputUser = -492772765; // bot API id (chats) -$inputUser = -10038575794; // bot API id (channels) - -$inputUser = 'user#44700'; // tg-cli style id (users) -$inputUser = 'chat#492772765'; // tg-cli style id (chats) -$inputUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputUserEmpty.md b/old_docs/API_docs_v57/constructors/inputUserEmpty.md index 969d5a54..ff7d96d6 100644 --- a/old_docs/API_docs_v57/constructors/inputUserEmpty.md +++ b/old_docs/API_docs_v57/constructors/inputUserEmpty.md @@ -19,16 +19,3 @@ description: inputUserEmpty attributes, type and example $inputUserEmpty = ['_' => 'inputUserEmpty', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserEmpty = '@username'; // Username - -$inputUserEmpty = 44700; // bot API id (users) -$inputUserEmpty = -492772765; // bot API id (chats) -$inputUserEmpty = -10038575794; // bot API id (channels) - -$inputUserEmpty = 'user#44700'; // tg-cli style id (users) -$inputUserEmpty = 'chat#492772765'; // tg-cli style id (chats) -$inputUserEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/inputUserSelf.md b/old_docs/API_docs_v57/constructors/inputUserSelf.md index 86bf7a3d..e9125f4c 100644 --- a/old_docs/API_docs_v57/constructors/inputUserSelf.md +++ b/old_docs/API_docs_v57/constructors/inputUserSelf.md @@ -19,16 +19,3 @@ description: inputUserSelf attributes, type and example $inputUserSelf = ['_' => 'inputUserSelf', ]; ``` -The following syntaxes can also be used: - -``` -$inputUserSelf = '@username'; // Username - -$inputUserSelf = 44700; // bot API id (users) -$inputUserSelf = -492772765; // bot API id (chats) -$inputUserSelf = -10038575794; // bot API id (channels) - -$inputUserSelf = 'user#44700'; // tg-cli style id (users) -$inputUserSelf = 'chat#492772765'; // tg-cli style id (chats) -$inputUserSelf = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/peerChannel.md b/old_docs/API_docs_v57/constructors/peerChannel.md index 0e763642..6012914d 100644 --- a/old_docs/API_docs_v57/constructors/peerChannel.md +++ b/old_docs/API_docs_v57/constructors/peerChannel.md @@ -24,16 +24,3 @@ description: peerChannel attributes, type and example $peerChannel = ['_' => 'peerChannel', 'channel_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChannel = '@username'; // Username - -$peerChannel = 44700; // bot API id (users) -$peerChannel = -492772765; // bot API id (chats) -$peerChannel = -10038575794; // bot API id (channels) - -$peerChannel = 'user#44700'; // tg-cli style id (users) -$peerChannel = 'chat#492772765'; // tg-cli style id (chats) -$peerChannel = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/peerChat.md b/old_docs/API_docs_v57/constructors/peerChat.md index 297f76ae..7c843e3f 100644 --- a/old_docs/API_docs_v57/constructors/peerChat.md +++ b/old_docs/API_docs_v57/constructors/peerChat.md @@ -24,16 +24,3 @@ description: peerChat attributes, type and example $peerChat = ['_' => 'peerChat', 'chat_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerChat = '@username'; // Username - -$peerChat = 44700; // bot API id (users) -$peerChat = -492772765; // bot API id (chats) -$peerChat = -10038575794; // bot API id (channels) - -$peerChat = 'user#44700'; // tg-cli style id (users) -$peerChat = 'chat#492772765'; // tg-cli style id (chats) -$peerChat = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/peerUser.md b/old_docs/API_docs_v57/constructors/peerUser.md index 3c57463a..30a573ac 100644 --- a/old_docs/API_docs_v57/constructors/peerUser.md +++ b/old_docs/API_docs_v57/constructors/peerUser.md @@ -24,16 +24,3 @@ description: peerUser attributes, type and example $peerUser = ['_' => 'peerUser', 'user_id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$peerUser = '@username'; // Username - -$peerUser = 44700; // bot API id (users) -$peerUser = -492772765; // bot API id (chats) -$peerUser = -10038575794; // bot API id (channels) - -$peerUser = 'user#44700'; // tg-cli style id (users) -$peerUser = 'chat#492772765'; // tg-cli style id (chats) -$peerUser = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/user.md b/old_docs/API_docs_v57/constructors/user.md index efd0a934..5b26821b 100644 --- a/old_docs/API_docs_v57/constructors/user.md +++ b/old_docs/API_docs_v57/constructors/user.md @@ -45,16 +45,3 @@ description: user attributes, type and example $user = ['_' => 'user', 'self' => true, 'contact' => true, 'mutual_contact' => true, 'deleted' => true, 'bot' => true, 'bot_chat_history' => true, 'bot_nochats' => true, 'verified' => true, 'restricted' => true, 'min' => true, 'bot_inline_geo' => true, 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => string, 'bot_inline_placeholder' => string, ]; ``` -The following syntaxes can also be used: - -``` -$user = '@username'; // Username - -$user = 44700; // bot API id (users) -$user = -492772765; // bot API id (chats) -$user = -10038575794; // bot API id (channels) - -$user = 'user#44700'; // tg-cli style id (users) -$user = 'chat#492772765'; // tg-cli style id (chats) -$user = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/constructors/userEmpty.md b/old_docs/API_docs_v57/constructors/userEmpty.md index f512d1b6..eba42d6c 100644 --- a/old_docs/API_docs_v57/constructors/userEmpty.md +++ b/old_docs/API_docs_v57/constructors/userEmpty.md @@ -24,16 +24,3 @@ description: userEmpty attributes, type and example $userEmpty = ['_' => 'userEmpty', 'id' => int, ]; ``` -The following syntaxes can also be used: - -``` -$userEmpty = '@username'; // Username - -$userEmpty = 44700; // bot API id (users) -$userEmpty = -492772765; // bot API id (chats) -$userEmpty = -10038575794; // bot API id (channels) - -$userEmpty = 'user#44700'; // tg-cli style id (users) -$userEmpty = 'chat#492772765'; // tg-cli style id (chats) -$userEmpty = 'channel#38575794'; // tg-cli style id (channels) -``` \ No newline at end of file diff --git a/old_docs/API_docs_v57/types/Chat.md b/old_docs/API_docs_v57/types/Chat.md index 1dc2c40e..2fed9ab1 100644 --- a/old_docs/API_docs_v57/types/Chat.md +++ b/old_docs/API_docs_v57/types/Chat.md @@ -7,6 +7,21 @@ description: constructors and methods of type Chat +The following syntaxes can also be used: + +``` +$messages_highScores = '@username'; // Username + +$messages_highScores = 44700; // bot API id (users) +$messages_highScores = -492772765; // bot API id (chats) +$messages_highScores = -10038575794; // bot API id (channels) + +$messages_highScores = 'user#44700'; // tg-cli style id (users) +$messages_highScores = 'chat#492772765'; // tg-cli style id (chats) +$messages_highScores = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [chatEmpty](../constructors/chatEmpty.md) diff --git a/old_docs/API_docs_v57/types/InputChannel.md b/old_docs/API_docs_v57/types/InputChannel.md index b573025d..0c32ee8d 100644 --- a/old_docs/API_docs_v57/types/InputChannel.md +++ b/old_docs/API_docs_v57/types/InputChannel.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputChannel +The following syntaxes can also be used: + +``` +$messages_highScores = '@username'; // Username + +$messages_highScores = 44700; // bot API id (users) +$messages_highScores = -492772765; // bot API id (chats) +$messages_highScores = -10038575794; // bot API id (channels) + +$messages_highScores = 'user#44700'; // tg-cli style id (users) +$messages_highScores = 'chat#492772765'; // tg-cli style id (chats) +$messages_highScores = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputChannelEmpty](../constructors/inputChannelEmpty.md) diff --git a/old_docs/API_docs_v57/types/InputPeer.md b/old_docs/API_docs_v57/types/InputPeer.md index 7adf47ab..7375329c 100644 --- a/old_docs/API_docs_v57/types/InputPeer.md +++ b/old_docs/API_docs_v57/types/InputPeer.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputPeer +The following syntaxes can also be used: + +``` +$messages_highScores = '@username'; // Username + +$messages_highScores = 44700; // bot API id (users) +$messages_highScores = -492772765; // bot API id (chats) +$messages_highScores = -10038575794; // bot API id (channels) + +$messages_highScores = 'user#44700'; // tg-cli style id (users) +$messages_highScores = 'chat#492772765'; // tg-cli style id (chats) +$messages_highScores = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputPeerEmpty](../constructors/inputPeerEmpty.md) diff --git a/old_docs/API_docs_v57/types/InputUser.md b/old_docs/API_docs_v57/types/InputUser.md index c5ced2f7..3e29f5a9 100644 --- a/old_docs/API_docs_v57/types/InputUser.md +++ b/old_docs/API_docs_v57/types/InputUser.md @@ -7,6 +7,21 @@ description: constructors and methods of type InputUser +The following syntaxes can also be used: + +``` +$messages_highScores = '@username'; // Username + +$messages_highScores = 44700; // bot API id (users) +$messages_highScores = -492772765; // bot API id (chats) +$messages_highScores = -10038575794; // bot API id (channels) + +$messages_highScores = 'user#44700'; // tg-cli style id (users) +$messages_highScores = 'chat#492772765'; // tg-cli style id (chats) +$messages_highScores = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [inputUserEmpty](../constructors/inputUserEmpty.md) diff --git a/old_docs/API_docs_v57/types/Peer.md b/old_docs/API_docs_v57/types/Peer.md index d4aa8884..a19ae941 100644 --- a/old_docs/API_docs_v57/types/Peer.md +++ b/old_docs/API_docs_v57/types/Peer.md @@ -7,6 +7,21 @@ description: constructors and methods of type Peer +The following syntaxes can also be used: + +``` +$messages_highScores = '@username'; // Username + +$messages_highScores = 44700; // bot API id (users) +$messages_highScores = -492772765; // bot API id (chats) +$messages_highScores = -10038575794; // bot API id (channels) + +$messages_highScores = 'user#44700'; // tg-cli style id (users) +$messages_highScores = 'chat#492772765'; // tg-cli style id (chats) +$messages_highScores = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [peerUser](../constructors/peerUser.md) diff --git a/old_docs/API_docs_v57/types/User.md b/old_docs/API_docs_v57/types/User.md index 63494937..98a18b6c 100644 --- a/old_docs/API_docs_v57/types/User.md +++ b/old_docs/API_docs_v57/types/User.md @@ -7,6 +7,21 @@ description: constructors and methods of type User +The following syntaxes can also be used: + +``` +$messages_highScores = '@username'; // Username + +$messages_highScores = 44700; // bot API id (users) +$messages_highScores = -492772765; // bot API id (chats) +$messages_highScores = -10038575794; // bot API id (channels) + +$messages_highScores = 'user#44700'; // tg-cli style id (users) +$messages_highScores = 'chat#492772765'; // tg-cli style id (chats) +$messages_highScores = 'channel#38575794'; // tg-cli style id (channels) +``` + + ### Possible values (constructors): [userEmpty](../constructors/userEmpty.md) diff --git a/src/danog/MadelineProto/DocsBuilder.php b/src/danog/MadelineProto/DocsBuilder.php index 358011ab..bc18d660 100755 --- a/src/danog/MadelineProto/DocsBuilder.php +++ b/src/danog/MadelineProto/DocsBuilder.php @@ -318,21 +318,6 @@ $'.$constructor.' = '.$params.'; ``` '; - if (in_array($this->constructors->type[$key], ['User', 'InputUser', 'Chat', 'InputChannel', 'Peer', 'InputPeer'])) { - $example .= 'The following syntaxes can also be used: - -``` -$'.$constructor." = '@username'; // Username - -$".$constructor.' = 44700; // bot API id (users) -$'.$constructor.' = -492772765; // bot API id (chats) -$'.$constructor.' = -10038575794; // bot API id (channels) - -$'.$constructor." = 'user#44700'; // tg-cli style id (users) -$".$constructor." = 'chat#492772765'; // tg-cli style id (chats) -$".$constructor." = 'channel#38575794'; // tg-cli style id (channels) -```"; - } file_put_contents('constructors/'.$constructor.'.md', $header.$table.$type.$example); } @@ -409,6 +394,24 @@ description: constructors and methods of type '.$type.' '; + if (in_array($type, ['User', 'InputUser', 'Chat', 'InputChannel', 'Peer', 'InputPeer'])) { + $header .= 'The following syntaxes can also be used: + +``` +$'.$constructor." = '@username'; // Username + +$".$constructor.' = 44700; // bot API id (users) +$'.$constructor.' = -492772765; // bot API id (chats) +$'.$constructor.' = -10038575794; // bot API id (channels) + +$'.$constructor." = 'user#44700'; // tg-cli style id (users) +$".$constructor." = 'chat#492772765'; // tg-cli style id (chats) +$".$constructor." = 'channel#38575794'; // tg-cli style id (channels) +``` + + +"; + } $constructors = '### Possible values (constructors): '.$constructors.'