2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

49_SSCam: internal code change for SSChatBot

git-svn-id: https://svn.fhem.de/fhem/trunk@22063 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-05-29 11:23:48 +00:00
parent 0761e2bf72
commit ab91832ba2

View File

@ -54,6 +54,7 @@ eval "use Cache::Cache;1;" or my $SScamMMCacheCache = "Cache::Cache";
# Versions History intern
our %SSCam_vNotesIntern = (
"9.2.3" => "29.05.2020 change SSChatBot_formText to SSChatBot_formString ",
"9.2.2" => "14.04.2020 increase read timeout of Redis server cache, fix autocreate bug with https ",
"9.2.1" => "24.02.2020 set compatibility to SVS version 8.2.7 ",
"9.2.0" => "10.12.2019 attribute \"recChatTxt\" for sending recordings by SSChatBot ",
@ -420,7 +421,7 @@ sub FW_pH(@); # add href
use vars qw(%SSCam_vHintsExt_en);
use vars qw(%SSCam_vHintsExt_de);
sub SSCam_TBotSendIt($$$$$$$;$$$);
sub SSChatBot_formText($);
sub SSChatBot_formString($);
sub SSChatBot_addQueue($$$$$$$$);
sub SSChatBot_getapisites($);
@ -8791,8 +8792,8 @@ sub SSCam_sendChat ($$) {
# Eintrag zur SendQueue hinzufügen
# Werte: (name,opmode,method,userid,text,fileUrl,channel,attachment)
$fileUrl = $rootUrl."/".$mtype."/".$fname;
$subject = SSChatBot_formText($subject);
$ret = SSChatBot_addQueue($chatbot, "sendItem", "chatbot", $uid, $subject, $fileUrl, "", "");
$subject = SSChatBot_formString ($subject);
$ret = SSChatBot_addQueue ($chatbot, "sendItem", "chatbot", $uid, $subject, $fileUrl, "", "");
if($ret) {
readingsSingleUpdate($hash, "sendChatState", $ret, 1);
@ -8851,8 +8852,8 @@ sub SSCam_sendChat ($$) {
# Eintrag zur SendQueue hinzufügen
# Werte: (name,opmode,method,userid,text,fileUrl,channel,attachment)
$fileUrl = $rootUrl."/".$mtype."/".$fname;
$subject = SSChatBot_formText($subject);
$ret = SSChatBot_addQueue($chatbot, "sendItem", "chatbot", $uid, $subject, $fileUrl, "", "");
$subject = SSChatBot_formString ($subject);
$ret = SSChatBot_addQueue ($chatbot, "sendItem", "chatbot", $uid, $subject, $fileUrl, "", "");
if($ret) {
readingsSingleUpdate($hash, "sendChatState", $ret, 1);