mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 16:56:04 +00:00
32_yowsup.pm: fixed sendimg images to groups
git-svn-id: https://svn.fhem.de/fhem/trunk@10055 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e65ce0a8b1
commit
7aa3fbc0c7
@ -284,7 +284,12 @@ yowsup_Set($$@)
|
||||
return undef;
|
||||
|
||||
} elsif( $cmd eq 'image' ) {
|
||||
return yowsup_Write( $hash, "/image send $args[0] $args[1]" );
|
||||
readingsSingleUpdate( $hash, "sent", 'image: '. join( ' ', @args ), 1 );
|
||||
|
||||
my $number = shift(@args);
|
||||
$number =~ s/\./-/;
|
||||
|
||||
return yowsup_Write( $hash, "/image send $number $args[0]" );
|
||||
|
||||
return undef;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user