This Plugin is mostly useless without documention “step by step” how to get the Telegram code to add to the settings page. It’s overcomplicated thus uninstall.
]]>When sending messages to the bot. The text is sent. The photo is not sent.
“{\”update_id\”:20828724,\n\”message\”:{\”message_id\”:157,\”from\”:{\”id\”:1889383449,\”is_bot\”:false,\”first_name\”:\”test\”,\”username\”:\”jjj222333\”,\”language_code\”:\”ru\”},\”chat\”:{\”id\”:1889383449,\”first_name\”:\”test\”,\”username\”:\”jjj222333\”,\”type\”:\”private\”},\”date\”:1682352760,\”text\”:\”\/command2\”,\”entities\”:[{\”offset\”:0,\”length\”:9,\”type\”:\”bot_command\”}]}}”
]]>I want to extra chat room send message to specialist users.
]]>When you click the save button, this error appear shttps://skr.sh/sIg456Yn1UI how to fix it?
]]>When the number of users subscribed to the bot starts to be high (1000+), message delivery takes a lot of time (more than 2 minutes), causing an error 524 (timeout between the original server and CloudFlare).
This is my suggestion: when a new message is going to be sent and the users subscribed to the bot are exceeding a certain number, the plugin should automatically split the list in multiple chunks (for example 200 each), sending the messages asynchronously using those chunks. In this way each task is way faster and the server don’t need to wait too much for a response.
]]>Hi!
I have updated to PHP 8.1 because support for 7.4 will be discontinued at the end of the year. Unfortunately, after updating to PHP 8.1, it is no longer possible to send a direct message to the group associated with the bot. Also, the bot no longer responds to requests made from within the group. In direct chat with the bot everything works fine!
The error log shows the following messages:
mod_fcgid: stderr: PHP Fatal error: Uncaught TypeError: str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string in /exaple.com/httpdocs/wp-content/plugins/telegram-bot/telegram-bot.php:164, referer: https://example.com/wp-admin/admin.php?page=telegram_send
After a short consultation with a WebDev friend, the assumption was that there might be a problem with the variable used and that the stricter checking by PHP 8.1 causes an error. Unfortunately, the bot is so under PHP 8.1 in groups no longer usable.
If you have any questions about the error, I’m happy to help!
]]>Hello, I have in woocomerce, a product that lasts 30 days, this is 30 days active in a channel group. after 30 days you must renew the subscription so that it is active in the telegram channel. otherwise they remove it from the user of the telegram channel. is this possible with this plugin?
thanks
]]>how i can send file to telegram bot as attached file
]]>How to display total number of members in a telegram channel? Is it possible with this plugin?
]]>Hi Friend. Thanks for your plugin!
I can’t find the username of my private channel in telegram.
I put the code after t.me/ of my channel link (https://t.me/+R_e_VVxxxxxxxxxx – So I input +R_e_VVxxxxxxxxxx) into the field “Channel Username” but cannot send messages.
What must I input here?
]]>Salve,
ho un problema con la condivisione dei post sul canale Telegram, in particolare con le immagini. Quando condivido un Post dal mio sito https://laviadiuscita.net su Telegram, l’immagine in evidenza del post appare piccola e quadrata, anzichè essere grande e rettangolare come di solito avviene. Ho cercato di risolvere il problema ma non ci sono riuscito. Ho trovato il vostro plugin e mi chiedevo se può essermi di aiuto nella condivisione corretta delle immagini quando condivido dei post su Telegram. Potreste essermi di aiuto? Grazie. Un cordiale saluto.
Alessandro
Hi,
I would like to create a custom /start, currently it generates me a start with all the latest articles but this does not interest me. How can I solve?
Hallo, I have this notice in the admin dashboard:
Notice: Trying to get property ‘post_type’ of non-object in ….\wp-content\plugins\telegram-bot\telegram-bot.php on line 399
Wordpress version 5.8.2
]]>When I send to either group or channel I get:
TypeError thrown
str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string
]]>
Hello
I can’t figure out what is wrong with the plugin or config. I can see incoming messages and I can see that the autoresponder is responding in the logs, however, nothing is sent by the bot.
Any ideas?
]]>Ciao Marco!
You know I love your plugin and thank you again so much for all the great work ??
May I suggest 2 modifications so that I don’t have to modify your files after each update?
1. (telegram-bot.php lines 188 and 212) Being able to optionnaly pass the parse_mode to telegram_sendMessage so that we can use MarkdownV2 or HTML instead of the default Markdown
2. (parse.php line 10) Adding a second hook right after receiving the json input so that we can handle specific workflows (sendPoll, sendInvoice etc…)
What do you think?
Cheers,
Pierre
Ciao Marco,
I really like your plugin and I wanted to use it with a multisite config but I cannot receive messages from Telegram.
No issue to send message with telegram_sendMessage so the webhook is working but I don’t receive the ones from Telegram when a user talks to the bot.
If I go directly to the callback URL which ends with $api_token=1 I see a list of my last posts. Apparently parse.php doesn’t receive the PHP input.
Any idea?
Grazie mille ??
]]>Ciao Marco,
Too bad you are not really improving this amazing plugin, it has a lot of potential, thanks for the great work ganyway ??
I had all these warnings that prevented from updating the postmeta because there is apparently no post $o to be updated : :
[02-Jul-2021 03:10:34 UTC] PHP Notice: Undefined variable: o in /home3/eventtf0/public_html/mycommunity/wp-content/plugins/telegram-bot/parse.php on line 64
[02-Jul-2021 03:10:34 UTC] PHP Notice: Trying to get property 'ID' of non-object in /home3/eventtf0/public_html/mycommunity/wp-content/plugins/telegram-bot/parse.php on line 64
So I added these 2 lines and now it works better:
$plugin_post_id = telegram_getid( $USERID );
if ( $plugin_post_id ) $o = get_post($plugin_post_id);
I am not a developper so not sure it’s good coding but at least it works =)
Cheers!
How to create a WP post based on a Telegram channel (private) incoming message?
]]>Hi,
Since 19 April plugin doesn’t seem to work anymore, I had to restart the plugin but when I check logs I got this : ”
Error: incorrect parameters due to: HTTP/1.1 400 Bad Request -1001108618306 test Markdown {“keyboard”:[[“Tao”],[“Antares”,”Dai”],[“Qubit”]],”resize_keyboard”:true,”one_time_keyboard”:false}
”
Only the /start command and send a message seems to sent something in logs but nothing with the bot.
]]>Hi,
Anyone tried on wordpress 5.7 if is compatible please ?
]]>hi creator,
i have problem.
I can broadcast message to all but, cannot send new post to all ( user, channel , group )
How do I link a command to the “standard template” button? And make such a bot? – https://www.telegram.me/CosenzApp_bot with this principle but with my commands/responses?
]]>Hi, is it possible to add an inline button that refers to the linkayo ??article at that moment? For example, the bot sends a link to the channel with a description and under it insert a “click here to open article” button.
Thanks.
Hello,
i updated to the last version.
Today i see that telegram doesn’t updates articles that we put.
Also, at the name of the channel now is showed a lock near the name, that before there wasn’t.
Also in log on the backend plugin i see a webhook with “WebHook” aggiornato” that before it never wrote.
Also last article showed on log is from 19/2/2021, while we have others today.
Also, sometimes, it push double article or last friday a user received an article 7 times.
What can be happened ?
Can you help me?
]]>Hello,
Bot was working great but suddently it stoped reply with Keyboard with any commands.
Could somoene help me please ?
]]>Hello,
i wanted to ask if it is possible to get the Location from a User when he klicks a KeyboardButton in our Telegram Bot.
I know that i should be possible with “request_location: true”, but somehow it doesnt work, and the Bot stops responding.
]]>Hello,
I am trying to add a <br> on custom welcome message. I try some code like \n \ or <br> but it seems not work.
Is there a way to insert line break?
Thanks!
]]>The link in the telegram post is https://fakeologist.com/blog/2020/10/1/
when it’s supposed to be https://fakeologist.com/blog/2020/10/14/social-civilization-credit-diagram/
Is it being truncated?
Bot/webhook stop processing after like 3 minutes.
change connection mode in settings, work for 3 minutes after that it stop.