Fix sending local photos by ctaulien
This commit is contained in:
@@ -231,7 +231,7 @@ sub sendPhoto {
|
|||||||
# request
|
# request
|
||||||
croak 'No photo supplied in sendPhoto()' unless $args->{photo};
|
croak 'No photo supplied in sendPhoto()' unless $args->{photo};
|
||||||
if (-e $args->{photo}) {
|
if (-e $args->{photo}) {
|
||||||
$send_args->{photo} = { photo => { file => $args->{photo} } };
|
$send_args->{photo} = { file => $args->{photo} };
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$send_args->{photo} = $args->{photo};
|
$send_args->{photo} = $args->{photo};
|
||||||
|
|||||||
Reference in New Issue
Block a user