Hi,
are you sending messages with special characters? if yes, try with plain text only.
Placeholders like %FIRST_NAME% are allowed, so if you included them please make that they are written correctly.
This was the message :
Darkness Solutions – Automation Solution is official | http://pgdarkness.ir/automation-solution
Try without | and let me know if it works
Same problem with only english alphabet.
My website is in Persian language, would it matter?
Strange. Does it happen to everyone of your subscribers or only some of them?
I noticed the section I covered with * in log on my first post, which I figured should do some thing with subscriber identity, is in Persian numbers while the same section for other log entries with successful sent is in English.
Does that have to do with anything? Maybe codepages while parsing the arguments went wrong in my case?
Persian numbers? Telegram IDs should be english numbers!
I mean this picture.
I cut the last digits for privacy reasons.
Please contact me directly: milesimarco AT outlook.com
I did, no response.
check your spam?!
Good job with tracking down and fixing the Persian numbers conversion problem.
For you who might have the problem, update the plugin.
Thanks again for your time and effort.
Hi! I’m getting same problem and can’t understand why.
My site is on Russian and it is not a problem (UTF-8, baby) — the bot works correctly in most times.
But sometimes the bot doesn’t reply. The log has the same line: “Error: incorrect parameters”. I guess it’s due to some incorrect character, but the log can’t tell me which one is.
You can check the output of the command here (the text sent to telegram):
http://www.mirf.ru/?telegram_commands=book-telegram
The post is generated by shortcode doing loop via template. The template code is:
<?php
// Posts are found
if ( $posts->have_posts() ) {
while ( $posts->have_posts() ) :
$posts->the_post();
global $post;
$bot_mark = get_post_meta(get_the_ID(), 'cb_final_score_override', true);
if($bot_mark>60){
?>
[<?php the_title(); ?>](<?php the_permalink(); ?>)
<?php the_excerpt(); ?>
<?php echo '*Оценка МирФ*: ' . $bot_mark / 10 . '/10';?>
<?php }
endwhile;
}
// Posts not found
else {
echo 'Ошибка';
}
?>
Is there any chance to find bad character? Or I should sanitize output of php loop by some function?
The bot is here:
http://telegram.me/mirf_bot
You can check it with /book command.
The persian case was a bug related to id parsing (conflict with wp-jalali).
Try to send that text as manual message, and see if it work.
Also, when you get incorrect parameters error, it’s for everyone or only for some of your subscribers?