Skip to content

Commit

Permalink
v1.003
Browse files Browse the repository at this point in the history
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
alekseikukin authored Aug 25, 2021
1 parent af97164 commit 6ba2244
Show file tree
Hide file tree
Showing 9 changed files with 1,453 additions and 710 deletions.
13 changes: 13 additions & 0 deletions Cell2Structure.m
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

701 changes: 27 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Matlab_telegram_bot_toolbox.prj
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"/>
6 changes: 4 additions & 2 deletions README.md
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 modified Telegram Bot Toolbox API.mltbx
Binary file not shown.
13 changes: 10 additions & 3 deletions Telegram Bot Toolbox API.prj
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 />
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
44 changes: 22 additions & 22 deletions demos.xml
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>
Loading

0 comments on commit 6ba2244

Please sign in to comment.