From 738c5e5f6dd0f80eff74cbed01a692d377817549 Mon Sep 17 00:00:00 2001 From: konqi <44301655+konqiDAM@users.noreply.github.com> Date: Fri, 5 Nov 2021 23:38:20 +0100 Subject: [PATCH 1/3] fix edit_inline_buttons fix edit_inline_buttons instead of edit_inline_keyboard --- doc/6_reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/6_reference.md b/doc/6_reference.md index ed3f36a..4bdd237 100644 --- a/doc/6_reference.md +++ b/doc/6_reference.md @@ -308,10 +308,10 @@ echo ${BOTSEND[ID]} 567 # add one button row -edit_inline_keyboard "${CHAT[ID]}" "567" "button 1|http://rrr.de" "button 2|http://rrr.de" +edit_inline_buttons "${CHAT[ID]}" "567" "button 1|http://rrr.de" "button 2|http://rrr.de" # change buttons -edit_inline_keyboard "${CHAT[ID]}" "567" "Success edit_inline_keyboard|http://rrr.de" +edit_inline_buttons "${CHAT[ID]}" "567" "Success edit_inline_keyboard|http://rrr.de" # delete button by replace whole message edit_markdownv2_message "${CHAT[ID]}" "*HI* this is a _markdown_ message inline *removed*..." From 93dc4a09d67b204641436b3bcb6543bc0c663afe Mon Sep 17 00:00:00 2001 From: konqi <44301655+konqiDAM@users.noreply.github.com> Date: Fri, 5 Nov 2021 23:39:59 +0100 Subject: [PATCH 2/3] fix another edit_inline_buttons --- doc/6_reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/6_reference.md b/doc/6_reference.md index 4bdd237..e31bb9f 100644 --- a/doc/6_reference.md +++ b/doc/6_reference.md @@ -311,7 +311,7 @@ echo ${BOTSEND[ID]} edit_inline_buttons "${CHAT[ID]}" "567" "button 1|http://rrr.de" "button 2|http://rrr.de" # change buttons -edit_inline_buttons "${CHAT[ID]}" "567" "Success edit_inline_keyboard|http://rrr.de" +edit_inline_buttons "${CHAT[ID]}" "567" "Success edit_inline_buttons|http://rrr.de" # delete button by replace whole message edit_markdownv2_message "${CHAT[ID]}" "*HI* this is a _markdown_ message inline *removed*..." From 369d7f8d4d3301211384db13b94f29a350a71868 Mon Sep 17 00:00:00 2001 From: konqi <44301655+konqiDAM@users.noreply.github.com> Date: Sat, 6 Nov 2021 08:02:47 +0100 Subject: [PATCH 3/3] fix url quotes --- doc/6_reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/6_reference.md b/doc/6_reference.md index e31bb9f..3895144 100644 --- a/doc/6_reference.md +++ b/doc/6_reference.md @@ -408,7 +408,7 @@ An URL Button opens the given URL, a CALLBACK button sends an update the bot mus send_inline_keyboard "${CHAT[ID]}" "Best Dealz!" '[{"text":"Visit my Shop", "url":"https://dealz.rrr.de"}]' # send_inline_button -send_inline_keyboard "${CHAT[ID]}" "message" '[{"text":"button 1", url"":"http://rrr.de"}, {"text":"button 2", "url":"http://rrr.de"} ]' +send_inline_keyboard "${CHAT[ID]}" "message" '[{"text":"button 1", "url":"http://rrr.de"}, {"text":"button 2", "url":"http://rrr.de"} ]' # multiple button rows send_inline_keyboard "${CHAT[ID]}" "message" '[{"text":"b1", "url":"http://rrr.de"}, {"text":"b2", "url":"http://rrr.de"}], [{"text":"b3", "url":"http://rrr.de"}, "text":"b4", "url":"http://rrr.de"}]'