Added ignored files
This commit is contained in:
parent
57843d8331
commit
5fa11f52ef
2
.gitignore
vendored
2
.gitignore
vendored
@ -61,7 +61,7 @@ target/
|
|||||||
.#*#
|
.#*#
|
||||||
*.swp
|
*.swp
|
||||||
vendor
|
vendor
|
||||||
*save*
|
*save
|
||||||
*bak
|
*bak
|
||||||
number.php
|
number.php
|
||||||
token.php
|
token.php
|
||||||
|
19
docs/API_docs/constructors/messages_savedGifs.md
Normal file
19
docs/API_docs/constructors/messages_savedGifs.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Constructor: messages\_savedGifs
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|:-------------:|---------:|
|
||||||
|
|hash|[int](../types/int.md) | Required|
|
||||||
|
|gifs|Array of [Document](../types/Document.md) | Required|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$messages_savedGifs = ['_' => messages_savedGifs', 'hash' => int, 'gifs' => [Vector t], ];
|
||||||
|
```
|
13
docs/API_docs/constructors/messages_savedGifsNotModified.md
Normal file
13
docs/API_docs/constructors/messages_savedGifsNotModified.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
## Constructor: messages\_savedGifsNotModified
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$messages_savedGifsNotModified = ['_' => messages_savedGifsNotModified', ];
|
||||||
|
```
|
31
docs/API_docs/methods/help_saveAppLog.md
Normal file
31
docs/API_docs/methods/help_saveAppLog.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
## Method: help\_saveAppLog
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|:-------------:|---------:|
|
||||||
|
|events|Array of [InputAppEvent](../types/InputAppEvent.md) | Required|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) {
|
||||||
|
$this->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) {
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->help_saveAppLog(['events' => [InputAppEvent], ]);
|
||||||
|
```
|
35
docs/API_docs/methods/messages_saveDraft.md
Normal file
35
docs/API_docs/methods/messages_saveDraft.md
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
## Method: messages\_saveDraft
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|:-------------:|---------:|
|
||||||
|
|no\_webpage|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|reply\_to\_msg\_id|[int](../types/int.md) | Optional|
|
||||||
|
|peer|[InputPeer](../types/InputPeer.md) | Required|
|
||||||
|
|message|[string](../types/string.md) | Required|
|
||||||
|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) {
|
||||||
|
$this->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) {
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->messages_saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => string, 'entities' => [MessageEntity], ]);
|
||||||
|
```
|
32
docs/API_docs/methods/messages_saveGif.md
Normal file
32
docs/API_docs/methods/messages_saveGif.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
## Method: messages\_saveGif
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|:-------------:|---------:|
|
||||||
|
|id|[InputDocument](../types/InputDocument.md) | Required|
|
||||||
|
|unsave|[Bool](../types/Bool.md) | Required|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) {
|
||||||
|
$this->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) {
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->messages_saveGif(['id' => InputDocument, 'unsave' => Bool, ]);
|
||||||
|
```
|
33
docs/API_docs/methods/messages_saveRecentSticker.md
Normal file
33
docs/API_docs/methods/messages_saveRecentSticker.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
## Method: messages\_saveRecentSticker
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|:-------------:|---------:|
|
||||||
|
|attached|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|id|[InputDocument](../types/InputDocument.md) | Required|
|
||||||
|
|unsave|[Bool](../types/Bool.md) | Required|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) {
|
||||||
|
$this->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) {
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->messages_saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]);
|
||||||
|
```
|
34
docs/API_docs/methods/upload_saveBigFilePart.md
Normal file
34
docs/API_docs/methods/upload_saveBigFilePart.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
## Method: upload\_saveBigFilePart
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|:-------------:|---------:|
|
||||||
|
|file\_id|[long](../types/long.md) | Required|
|
||||||
|
|file\_part|[int](../types/int.md) | Required|
|
||||||
|
|file\_total\_parts|[int](../types/int.md) | Required|
|
||||||
|
|bytes|[bytes](../types/bytes.md) | Required|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) {
|
||||||
|
$this->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) {
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->upload_saveBigFilePart(['file_id' => long, 'file_part' => int, 'file_total_parts' => int, 'bytes' => bytes, ]);
|
||||||
|
```
|
33
docs/API_docs/methods/upload_saveFilePart.md
Normal file
33
docs/API_docs/methods/upload_saveFilePart.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
## Method: upload\_saveFilePart
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|:-------------:|---------:|
|
||||||
|
|file\_id|[long](../types/long.md) | Required|
|
||||||
|
|file\_part|[int](../types/int.md) | Required|
|
||||||
|
|bytes|[bytes](../types/bytes.md) | Required|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) {
|
||||||
|
$this->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) {
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->upload_saveFilePart(['file_id' => long, 'file_part' => int, 'bytes' => bytes, ]);
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user