Thank you, I guess I’ll keep the php way.
Just a quick final question since I’m not a developer: I’m having problems in retrieving first name variables using php. I tried $telegram_first_name but it returns empty.
function telegramcustom_parse( $telegram_user_id, $text ) {
$plugin_post_id = telegram_getid( $telegram_user_id );
if ( !$plugin_post_id ) {
return;
}
if ( substr( $text, 0, 8 ) === "/suggest" ) {
$textkw = explode(" ", $text);
telegram_sendmessage( $telegram_user_id, 'Hi ' . $telegram_first_name . ', you entered *' . $textkw[1] . '*');
}
return;
}
What am I doing wrong?
Thx
Please someone could help me? I’m really banging the head on the wall!