#1 initial sending media files support
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-09-12 01:35:23 +03:00
parent 5bb9e3abab
commit 2103d03611
20 changed files with 369 additions and 25 deletions

View File

@@ -1,11 +1,18 @@
<flow>
<media>
<video id="40001" url="http://techslides.com/demos/sample-videos/small.mp4"/>
<photo id="40002" url="https://telegram.org/img/t_logo.png"/>
</media>
<actions>
<action id="10001" name="start-action" command="/start">Start</action>
<action id="10002" name="help-action" command="/help">Help</action>
<action id="10003" name="to-inline-action" command="/inline">Inline</action>
<action id="10004" name="inline1-action" callbackData="cmd:inline1">Inline button #1</action>
<action id="10005" name="inline2-action" callbackData="cmd:inline2">Inline button #2</action>
<action id="10006" name="url-action" url="https://git.penkrat.ru/ruslan/stbf">Git repo</action>
<action id="10004" name="inline1-action" callbackData="cmd:inline1">🔞 Inline button #1</action>
<action id="10005" name="inline2-action" callbackData="cmd:inline2">🐱 Inline button #2</action>
<action id="10006" name="url-action" url="https://git.penkrat.ru/ruslan/stbf">💻 Git repo</action>
<action id="10007" name="photo-action" callbackData="cmd:sendPhoto">🖼 My photo</action>
<action id="10008" name="video-action" callbackData="cmd:sendVideo">🎞 My video</action>
<action id="10009" name="to-inline-back-action" callbackData="cmd:inline">🔙 Back</action>
</actions>
<screens>
<screen id="20001" name="on-start-screen">
@@ -35,6 +42,10 @@
<button actionRef="inline1-action"></button>
<button actionRef="inline2-action"></button>
</row>
<row>
<button actionRef="photo-action"></button>
<button actionRef="video-action"></button>
</row>
<row>
<button actionRef="url-action"></button>
</row>
@@ -47,6 +58,10 @@
<button actionRef="inline1-action"></button>
<button actionRef="inline2-action"></button>
</row>
<row>
<button actionRef="photo-action"></button>
<button actionRef="video-action"></button>
</row>
<row>
<button actionRef="url-action"></button>
</row>
@@ -59,17 +74,40 @@
<button actionRef="inline1-action"></button>
<button actionRef="inline2-action"></button>
</row>
<row>
<button actionRef="photo-action"></button>
<button actionRef="video-action"></button>
</row>
<row>
<button actionRef="url-action"></button>
</row>
</keyboard>
</screen>
<screen id="20006" name="inline-photo-screen" mediaRef="40002">
<text>My photo</text>
<keyboard>
<row>
<button actionRef="to-inline-back-action"></button>
</row>
</keyboard>
</screen>
<screen id="20007" name="inline-video-screen" mediaRef="40001">
<text>My Video</text>
<keyboard>
<row>
<button actionRef="to-inline-back-action"></button>
</row>
</keyboard>
</screen>
</screens>
<commands>
<command actionRef="start-action" screenRef="on-start-screen" id="30001" name="startCommand"/>
<command actionRef="help-action" screenRef="on-help-screen" id="30002" name="helpCommand"/>
<command actionRef="to-inline-action" screenRef="inline-test-screen" id="30003" name="inlineTestCommand"/>
<command actionRef="inline1-action" screenRef="inline-test-1-screen" edit="true" id="30004" name="inlineTest1Command"/>
<command actionRef="inline2-action" screenRef="inline-test-2-screen" edit="true" id="30005" name="inlineTest2Command"/>
<command actionRef="to-inline-back-action" screenRef="inline-test-screen" replace="true" id="30004" name="inlineTestCommand"/>
<command actionRef="inline1-action" screenRef="inline-test-1-screen" edit="true" id="30005" name="inlineTest1Command"/>
<command actionRef="inline2-action" screenRef="inline-test-2-screen" edit="true" id="30006" name="inlineTest2Command"/>
<command actionRef="photo-action" screenRef="inline-photo-screen" replace="true" id="30005" name="photoCommand"/>
<command actionRef="video-action" screenRef="inline-video-screen" replace="true" id="30006" name="videoCommand"/>
</commands>
</flow>