From 5fa11f52ef9c62d6bb6dc06701811575ee410061 Mon Sep 17 00:00:00 2001 From: danogentili Date: Mon, 19 Dec 2016 21:43:50 +0300 Subject: [PATCH] Added ignored files --- .gitignore | 2 +- .../constructors/messages_savedGifs.md | 19 ++++++++++ .../messages_savedGifsNotModified.md | 13 +++++++ docs/API_docs/methods/help_saveAppLog.md | 31 ++++++++++++++++ docs/API_docs/methods/messages_saveDraft.md | 35 +++++++++++++++++++ docs/API_docs/methods/messages_saveGif.md | 32 +++++++++++++++++ .../methods/messages_saveRecentSticker.md | 33 +++++++++++++++++ .../methods/upload_saveBigFilePart.md | 34 ++++++++++++++++++ docs/API_docs/methods/upload_saveFilePart.md | 33 +++++++++++++++++ 9 files changed, 231 insertions(+), 1 deletion(-) create mode 100644 docs/API_docs/constructors/messages_savedGifs.md create mode 100644 docs/API_docs/constructors/messages_savedGifsNotModified.md create mode 100644 docs/API_docs/methods/help_saveAppLog.md create mode 100644 docs/API_docs/methods/messages_saveDraft.md create mode 100644 docs/API_docs/methods/messages_saveGif.md create mode 100644 docs/API_docs/methods/messages_saveRecentSticker.md create mode 100644 docs/API_docs/methods/upload_saveBigFilePart.md create mode 100644 docs/API_docs/methods/upload_saveFilePart.md diff --git a/.gitignore b/.gitignore index fc9be2cd9..cb6d40a61 100644 --- a/.gitignore +++ b/.gitignore @@ -61,7 +61,7 @@ target/ .#*# *.swp vendor -*save* +*save *bak number.php token.php diff --git a/docs/API_docs/constructors/messages_savedGifs.md b/docs/API_docs/constructors/messages_savedGifs.md new file mode 100644 index 000000000..0de5a9443 --- /dev/null +++ b/docs/API_docs/constructors/messages_savedGifs.md @@ -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], ]; +``` \ No newline at end of file diff --git a/docs/API_docs/constructors/messages_savedGifsNotModified.md b/docs/API_docs/constructors/messages_savedGifsNotModified.md new file mode 100644 index 000000000..ea097f33f --- /dev/null +++ b/docs/API_docs/constructors/messages_savedGifsNotModified.md @@ -0,0 +1,13 @@ +## Constructor: messages\_savedGifsNotModified + + + + +### Type: [messages\_SavedGifs](../types/messages_SavedGifs.md) + + +### Example: + +``` +$messages_savedGifsNotModified = ['_' => messages_savedGifsNotModified', ]; +``` \ No newline at end of file diff --git a/docs/API_docs/methods/help_saveAppLog.md b/docs/API_docs/methods/help_saveAppLog.md new file mode 100644 index 000000000..760e765c2 --- /dev/null +++ b/docs/API_docs/methods/help_saveAppLog.md @@ -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], ]); +``` \ No newline at end of file diff --git a/docs/API_docs/methods/messages_saveDraft.md b/docs/API_docs/methods/messages_saveDraft.md new file mode 100644 index 000000000..0046b7e0b --- /dev/null +++ b/docs/API_docs/methods/messages_saveDraft.md @@ -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], ]); +``` \ No newline at end of file diff --git a/docs/API_docs/methods/messages_saveGif.md b/docs/API_docs/methods/messages_saveGif.md new file mode 100644 index 000000000..19002a147 --- /dev/null +++ b/docs/API_docs/methods/messages_saveGif.md @@ -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, ]); +``` \ No newline at end of file diff --git a/docs/API_docs/methods/messages_saveRecentSticker.md b/docs/API_docs/methods/messages_saveRecentSticker.md new file mode 100644 index 000000000..806cde487 --- /dev/null +++ b/docs/API_docs/methods/messages_saveRecentSticker.md @@ -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, ]); +``` \ No newline at end of file diff --git a/docs/API_docs/methods/upload_saveBigFilePart.md b/docs/API_docs/methods/upload_saveBigFilePart.md new file mode 100644 index 000000000..b333d09f0 --- /dev/null +++ b/docs/API_docs/methods/upload_saveBigFilePart.md @@ -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, ]); +``` \ No newline at end of file diff --git a/docs/API_docs/methods/upload_saveFilePart.md b/docs/API_docs/methods/upload_saveFilePart.md new file mode 100644 index 000000000..b0bdef1c4 --- /dev/null +++ b/docs/API_docs/methods/upload_saveFilePart.md @@ -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, ]); +``` \ No newline at end of file