• Resolved pgDarkness

    (@pgdarkness)


    Hi, this is the last 3 entries in my log :

    #### 02/17/2016 21:16:32 ********* Error: incorrect parameters
    #### 02/17/2016 21:16:31 ********* Error: incorrect parameters
    #### 02/17/2016 21:16:30 ********* Error: incorrect parameters

    The message was sent manually through the menu but same goes for automatic ones using Zappier app.

    Please walk me through the process to narrow down and fix this problem.
    Thanks in advance.

    https://wordpress.org/plugins/telegram-bot/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Marco Milesi

    (@milmor)

    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.

    Thread Starter pgDarkness

    (@pgdarkness)

    This was the message :
    Darkness Solutions – Automation Solution is official | http://pgdarkness.ir/automation-solution

    Plugin Author Marco Milesi

    (@milmor)

    Try without | and let me know if it works

    Thread Starter pgDarkness

    (@pgdarkness)

    Same problem with only english alphabet.
    My website is in Persian language, would it matter?

    Plugin Author Marco Milesi

    (@milmor)

    Strange. Does it happen to everyone of your subscribers or only some of them?

    Thread Starter pgDarkness

    (@pgdarkness)

    Everyone
    😕

    Thread Starter pgDarkness

    (@pgdarkness)

    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?

    Plugin Author Marco Milesi

    (@milmor)

    Persian numbers? Telegram IDs should be english numbers!

    Thread Starter pgDarkness

    (@pgdarkness)

    I mean this picture.
    I cut the last digits for privacy reasons.

    Plugin Author Marco Milesi

    (@milmor)

    Please contact me directly: milesimarco AT outlook.com

    Thread Starter pgDarkness

    (@pgdarkness)

    I did, no response.
    check your spam?!

    Plugin Author Marco Milesi

    (@milmor)

    Replied 🙂

    Thread Starter pgDarkness

    (@pgdarkness)

    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.

    epic_serj

    (@epic_serj)

    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.

    Plugin Author Marco Milesi

    (@milmor)

    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?

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Error: incorrect parameters’ is closed to new replies.