Hab das Skript noch was überarbeitet.
Anbei die aktuelle Multiuser-Version.
[image: 1649075669181-aa.png]
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="eU+!Rg)DfHx1yE3@-1L$">benutzer</variable>
<variable id="VgV^^$s(/@_k5HsTg(_,">nachricht</variable>
</variables>
<block type="on" id=".lU6UC-eqV;9u$UZt22b" x="-237" y="-87">
<field name="OID">telegram.0.communicate.request</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="variables_set" id="5XV/_V3~d=5HIGBCDqx3">
<field name="VAR" id="eU+!Rg)DfHx1yE3@-1L$">benutzer</field>
<value name="VALUE">
<block type="text_getSubstring" id="IL^wvf^GliIj$sGGMUfX">
<mutation at1="false" at2="true"></mutation>
<field name="WHERE1">FIRST</field>
<field name="WHERE2">FROM_START</field>
<value name="STRING">
<block type="text_getSubstring" id="s;c|1D#$DGc:n%9++|A{">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_START</field>
<field name="WHERE2">FROM_START</field>
<value name="STRING">
<block type="on_source" id="ms8~h~%:^`m.J%XU%Pp=">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="AT1">
<block type="math_number" id="5?QQruI.g2Kd~d[`WLHr">
<field name="NUM">2</field>
</block>
</value>
<value name="AT2">
<block type="text_indexOf" id="qf#s-Tde~Y-8RniAtsS5">
<field name="END">FIRST</field>
<value name="VALUE">
<block type="on_source" id="GOe$NJHA0uLPa=@^uT%Q">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="FIND">
<shadow type="text" id="1dEcB:;/bw7[`1IM.{3;">
<field name="TEXT">]</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<value name="AT2">
<block type="math_number" id="[jd,28:uVe[ij[kbD%Ls">
<field name="NUM">-1</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id=".8%^8!OWU=fhv.Dp}lx8">
<field name="VAR" id="VgV^^$s(/@_k5HsTg(_,">nachricht</field>
<value name="VALUE">
<block type="text_getSubstring" id="D]{Nt#0==?Be!gM8g0a!">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_START</field>
<field name="WHERE2">FROM_START</field>
<value name="STRING">
<block type="text_getSubstring" id="D+OMNu(5^{2Mv1H4,;wM">
<mutation at1="true" at2="true"></mutation>
<field name="WHERE1">FROM_START</field>
<field name="WHERE2">FROM_START</field>
<value name="STRING">
<block type="on_source" id="r`JQa/t*S1!=6A(7h5a8">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="AT1">
<block type="text_indexOf" id=".LjISqpQ7lRT](JKyTDm">
<field name="END">FIRST</field>
<value name="VALUE">
<block type="on_source" id="1:i7_,k^20;DqOwZUobp">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="FIND">
<shadow type="text" id="F3ztr8,]U8-j+dis#/Mi">
<field name="TEXT">]</field>
</shadow>
<block type="text" id="ml8Vw)#8o=cn-;j5F=;y">
<field name="TEXT">]</field>
</block>
</value>
</block>
</value>
<value name="AT2">
<block type="math_number" id="#Flj-rk;[^%[poxa=E9Z">
<field name="NUM">99</field>
</block>
</value>
</block>
</value>
<value name="AT1">
<block type="math_number" id="mhW:[z:Sk}_SK@lU!E+7">
<field name="NUM">2</field>
</block>
</value>
<value name="AT2">
<block type="math_number" id="Vp8~yzscuwGJy,zkinqi">
<field name="NUM">99</field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="WcWO4:ftW,M9)GZSg!}Y">
<mutation elseif="3" else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="k8,3$N7H9YZRZS^[F_W`">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="}#v$9rMf:T8RcE5jorcY">
<field name="VAR" id="VgV^^$s(/@_k5HsTg(_,">nachricht</field>
</block>
</value>
<value name="B">
<block type="text" id="ed.{_wS[!SYv8?:en+s#">
<field name="TEXT">Menü</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="procedures_callcustomnoreturn" id="_Q/e+6r,Yi4BfU2kT;E)">
<mutation name="Hauptmenü"></mutation>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="v=N-bl4|gdY0y!txRg!l">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="^HICIJ@#q(L;t0sa_rIb">
<field name="VAR" id="VgV^^$s(/@_k5HsTg(_,">nachricht</field>
</block>
</value>
<value name="B">
<block type="text" id="So`k._`2yRU+U;a)%yOe">
<field name="TEXT">Mach was</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="procedures_callcustomnoreturn" id="pkt{eI$~5WgZSs)ihFu~">
<mutation name="Mach was"></mutation>
</block>
</statement>
<value name="IF2">
<block type="logic_compare" id="zK86wl8v;xQaUaXj/84z">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="@FLbW6F#WoFq8q2tVao_">
<field name="VAR" id="VgV^^$s(/@_k5HsTg(_,">nachricht</field>
</block>
</value>
<value name="B">
<block type="text" id="a]Z79`R%ouC9jNJG^Smc">
<field name="TEXT">Mache dies</field>
</block>
</value>
</block>
</value>
<statement name="DO2">
<block type="procedures_callnoreturn" id="-gl`LiO-:-b)z|(SnS-H">
<mutation name="Mache dies"></mutation>
</block>
</statement>
<value name="IF3">
<block type="logic_compare" id="I?VsyYbi536GN88z$)?z">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="0H4^M:oCm=9tUq!*/22c">
<field name="VAR" id="VgV^^$s(/@_k5HsTg(_,">nachricht</field>
</block>
</value>
<value name="B">
<block type="text" id="IaJ^*ZXfKv,0?s|hYO*#">
<field name="TEXT">mache das</field>
</block>
</value>
</block>
</value>
<statement name="DO3">
<block type="procedures_callnoreturn" id=".sWjBZ[`(iMovhNXIUCf">
<mutation name="mache das"></mutation>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="procedures_defcustomnoreturn" id="6)V^on?Mmzn;Vk$-p(cG" x="238" y="188">
<mutation statements="false"></mutation>
<field name="NAME">Hauptmenü</field>
<field name="SCRIPT">c2VuZFRvKCd0ZWxlZ3JhbS4wJywgew0KICAgIHVzZXI6IGJlbnV0emVyLA0KICAgIHRleHQ6ICAgJ01lbsO8JywNCiAgICByZXBseV9tYXJrdXA6IHsNCiAgICAgICAga2V5Ym9hcmQ6IFsNCiAgICAgICAgICAgIFsnTWFjaCB3YXMnXSwNCiAgICAgICAgICAgIFsnTWVuw7wnXQ0KICAgICAgICBdLA0KICAgICAgICByZXNpemVfa2V5Ym9hcmQ6ICAgdHJ1ZSwNCiAgICAgICAgb25lX3RpbWVfa2V5Ym9hcmQ6IGZhbHNlDQogICAgfQ0KfSk7</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="procedures_defcustomnoreturn" id="`4:lxrv~+58vli.ZZag}" x="588" y="188">
<mutation statements="false"></mutation>
<field name="NAME">Mach was</field>
<field name="SCRIPT">c2VuZFRvKCd0ZWxlZ3JhbS4wJywgew0KICAgIHVzZXI6IGJlbnV0emVyLA0KICAgIHRleHQ6ICAgJ0JpbGRlcicsDQogICAgcmVwbHlfbWFya3VwOiB7DQogICAgICAgIGtleWJvYXJkOiBbDQogICAgICAgICAgICBbJ01hY2hlIGRpZXMnXSwNCiAgICAgICAgICAgIFsnbWFjaGUgZGFzJ10sIA0KICAgICAgICAgICAgWydNZW7DvCddIA0KICAgICAgICBdLA0KICAgICAgICByZXNpemVfa2V5Ym9hcmQ6ICAgdHJ1ZSwNCiAgICAgICAgb25lX3RpbWVfa2V5Ym9hcmQ6IGZhbHNlDQogICAgfQ0KfSk7</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="procedures_defnoreturn" id="CnZY;5Ct|Lj@KV$ZF/q#" x="238" y="238">
<field name="NAME">Mache dies</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
<statement name="STACK">
<block type="telegram" id="SqJ~@3mh/UY:D8rR:x[6">
<field name="INSTANCE">.0</field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
<value name="MESSAGE">
<shadow type="text" id="Khu{v^q4H$`GJD4x+%qG">
<field name="TEXT">Jetzt mache ich dies</field>
</shadow>
</value>
<value name="USERNAME">
<block type="variables_get" id="XY!_/uKUIEj~d2@}Ns5F">
<field name="VAR" id="eU+!Rg)DfHx1yE3@-1L$">benutzer</field>
</block>
</value>
</block>
</statement>
</block>
<block type="procedures_defnoreturn" id="bBNZ;Ioc*/yPD{lhYjny" x="738" y="238">
<field name="NAME">mache das</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
<statement name="STACK">
<block type="telegram" id="43:Z8O|#f*k0b?z1$:ek">
<field name="INSTANCE">.0</field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
<value name="MESSAGE">
<shadow type="text" id="A58Ho#+C567}@g-8-;1+">
<field name="TEXT">Jetzt mache ich das</field>
</shadow>
</value>
<value name="USERNAME">
<block type="variables_get" id="h!L*kU`=gsBxI/]p,DKY">
<field name="VAR" id="eU+!Rg)DfHx1yE3@-1L$">benutzer</field>
</block>
</value>
</block>
</statement>
</block>
<block type="procedures_defnoreturn" id="tRE`L?4If-BB]+7~UZ(/" x="238" y="513">
<field name="NAME">Fehler</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
<statement name="STACK">
<block type="telegram" id="b,!rYmoJ^JVku5~Q4K9C">
<field name="INSTANCE">.0</field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
<value name="MESSAGE">
<shadow type="text" id="zi^t}-v;eu{ah#CQJzbq">
<field name="TEXT">Falsche Eingabe</field>
</shadow>
</value>
<value name="USERNAME">
<block type="variables_get" id="fc-yr!4wqHsve]g:;Uo,">
<field name="VAR" id="eU+!Rg)DfHx1yE3@-1L$">benutzer</field>
</block>
</value>
</block>
</statement>
</block>
</xml>