1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 22:34:42 +01:00

Added ignored files

This commit is contained in:
danogentili 2016-12-19 21:43:50 +03:00
parent 57843d8331
commit 5fa11f52ef
9 changed files with 231 additions and 1 deletions

2
.gitignore vendored
View File

@ -61,7 +61,7 @@ target/
.#*#
*.swp
vendor
*save*
*save
*bak
number.php
token.php

View 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], ];
```

View File

@ -0,0 +1,13 @@
## Constructor: messages\_savedGifsNotModified
### Type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
### Example:
```
$messages_savedGifsNotModified = ['_' => messages_savedGifsNotModified', ];
```

View 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], ]);
```

View 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], ]);
```

View 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, ]);
```

View 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, ]);
```

View 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, ]);
```

View 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, ]);
```