-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bugs and corrected some descriptions of functions. Fixed bug when text messages were sending as "multipart/form-data" and, sometimes, had wrong charset.
- Loading branch information
1 parent
af97164
commit 6ba2244
Showing
9 changed files
with
1,453 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function [structure] = Cell2Structure(cellin) | ||
%Cell2Structure - convert cell array of headers and filds to structured | ||
%array | ||
filds1 = {}; | ||
headers1 = {}; | ||
for i=1:max(size(cellin))/2 | ||
filds1(end+1,1) = cellin(2); | ||
headers1(end+1,1) = cellin(1); | ||
cellin(1:2) = []; | ||
end | ||
structure = cell2struct(filds1, headers1); | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<MATLABProject xmlns="http://www.mathworks.com/MATLABProjectFile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# matlab_telegram_bot_toolbox | ||
The Telegram Bot Toolbox API created for developers keen on building bots for Telegram. | ||
# matlab_telegram_bot_toolbox | ||
The Telegram Bot Toolbox API created for developers keen on building bots for Telegram. | ||
Use this toolbox to build chatbot or informer. You can simply send any types of files or text messages in telegram, build bot to collect data from automated interview or control devices. | ||
Each bot is given a unique authentication token when it is created. The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11. You can learn about obtaining tokens and generating new ones in https://core.telegram.org/bots/api |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
<deployment-project plugin="plugin.toolbox" plugin-version="1.0"> | ||
<configuration file="G:\My Drive\matlab_prog\telegram_bot_toolbox\Telegram Bot Toolbox API.prj" location="G:\My Drive\matlab_prog\telegram_bot_toolbox" name="Telegram Bot Toolbox API" target="target.toolbox" target-name="Package Toolbox"> | ||
<configuration build-checksum="422948716" file="G:\My Drive\matlab_prog\telegram_bot_toolbox\Telegram Bot Toolbox API.prj" location="G:\My Drive\matlab_prog\telegram_bot_toolbox" name="Telegram Bot Toolbox API" target="target.toolbox" target-name="Package Toolbox"> | ||
<param.appname>Telegram Bot Toolbox API</param.appname> | ||
<param.authnamewatermark>Aleksei Kukin</param.authnamewatermark> | ||
<param.email>[email protected]</param.email> | ||
<param.company>HUJI</param.company> | ||
<param.summary>The Telegram Bot Toolbox API created for developers keen on building bots for Telegram.</param.summary> | ||
<param.description>Each bot is given a unique authentication token when it is created. The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11. You can learn about obtaining tokens and generating new ones in https://core.telegram.org/bots/api</param.description> | ||
<param.description>Use this toolbox to build chatbot or informer. You can simply send any types of files or text messages in telegram, build bot to collect data from automated interview or control devices. | ||
Each bot is given a unique authentication token when it is created. The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11. You can learn about obtaining tokens and generating new ones in https://core.telegram.org/bots/api</param.description> | ||
<param.screenshot>${PROJECT_ROOT}\pic.jpg</param.screenshot> | ||
<param.version>1.002</param.version> | ||
<param.version>1.003</param.version> | ||
<param.output>${PROJECT_ROOT}\Telegram Bot Toolbox API.mltbx</param.output> | ||
<param.products.name /> | ||
<param.products.id /> | ||
|
@@ -76,12 +77,14 @@ | |
<file>${PROJECT_ROOT}</file> | ||
</fileset.rootdir> | ||
<fileset.rootfiles> | ||
<file>${PROJECT_ROOT}\.git</file> | ||
<file>${PROJECT_ROOT}\.gitattributes</file> | ||
<file>${PROJECT_ROOT}\.gitignore</file> | ||
<file>${PROJECT_ROOT}\Animation_T.m</file> | ||
<file>${PROJECT_ROOT}\Audio_T.m</file> | ||
<file>${PROJECT_ROOT}\BotCommand_T.m</file> | ||
<file>${PROJECT_ROOT}\CallbackQuery_T.m</file> | ||
<file>${PROJECT_ROOT}\Cell2Structure.m</file> | ||
<file>${PROJECT_ROOT}\Chat_T.m</file> | ||
<file>${PROJECT_ROOT}\ChatMember_T.m</file> | ||
<file>${PROJECT_ROOT}\ChatPermissions_T.m</file> | ||
|
@@ -138,18 +141,22 @@ | |
<file>${PROJECT_ROOT}\KeyboardButton_T.m</file> | ||
<file>${PROJECT_ROOT}\KeyboardButtonPollType_T.m</file> | ||
<file>${PROJECT_ROOT}\LabeledPrice_T.m</file> | ||
<file>${PROJECT_ROOT}\LICENSE</file> | ||
<file>${PROJECT_ROOT}\Location_T.m</file> | ||
<file>${PROJECT_ROOT}\LoginUrl_T.m</file> | ||
<file>${PROJECT_ROOT}\MaskPosition_T.m</file> | ||
<file>${PROJECT_ROOT}\matlab_telegram_bot_toolbox.html</file> | ||
<file>${PROJECT_ROOT}\MessageEntity_T.m</file> | ||
<file>${PROJECT_ROOT}\PhotoSize_T.m</file> | ||
<file>${PROJECT_ROOT}\pic.jpg</file> | ||
<file>${PROJECT_ROOT}\Poll_T.m</file> | ||
<file>${PROJECT_ROOT}\PollAnswer_T.m</file> | ||
<file>${PROJECT_ROOT}\PollOption_T.m</file> | ||
<file>${PROJECT_ROOT}\PreCheckoutQuery_T.m</file> | ||
<file>${PROJECT_ROOT}\README.md</file> | ||
<file>${PROJECT_ROOT}\ReplyKeyboardMarkup_T.m</file> | ||
<file>${PROJECT_ROOT}\ReplyKeyboardRemove_T.m</file> | ||
<file>${PROJECT_ROOT}\resources</file> | ||
<file>${PROJECT_ROOT}\ResponseParameters_T.m</file> | ||
<file>${PROJECT_ROOT}\ShippingAddress_T.m</file> | ||
<file>${PROJECT_ROOT}\ShippingOption_T.m</file> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<demos><!--This is an autogenerated file, please do not modify--> | ||
<name>Telegram Bot Toolbox API</name> | ||
<type>toolbox</type> | ||
<icon>HelpIcon.DEMOS</icon> | ||
<website/> | ||
<description>Each bot is given a unique authentication token when it is created. The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11. You can learn about obtaining tokens and generating new ones in https://core.telegram.org/bots/api</description> | ||
<demosection> | ||
<label>telegram_bot_toolbox</label> | ||
<demoitem> | ||
<label>examples</label> | ||
<type>other</type> | ||
<source>examples</source> | ||
<file>html/examples.html</file> | ||
</demoitem> | ||
<demoitem> | ||
<label>test_webhook</label> | ||
<type>other</type> | ||
<source>test_webhook</source> | ||
<file>html/test_webhook.html</file> | ||
</demoitem> | ||
</demosection> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<demos><!--This is an autogenerated file, please do not modify--> | ||
<name>Telegram Bot Toolbox API</name> | ||
<type>toolbox</type> | ||
<icon>HelpIcon.DEMOS</icon> | ||
<website/> | ||
<description>Each bot is given a unique authentication token when it is created. The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11. You can learn about obtaining tokens and generating new ones in https://core.telegram.org/bots/api</description> | ||
<demosection> | ||
<label>telegram_bot_toolbox</label> | ||
<demoitem> | ||
<label>examples</label> | ||
<type>other</type> | ||
<source>examples</source> | ||
<file>html/examples.html</file> | ||
</demoitem> | ||
<demoitem> | ||
<label>test_webhook</label> | ||
<type>other</type> | ||
<source>test_webhook</source> | ||
<file>html/test_webhook.html</file> | ||
</demoitem> | ||
</demosection> | ||
</demos> |
Oops, something went wrong.