• Welcome to Simple Machines Community Forum. Please login or sign up.
January 22, 2022, 10:29:22 PM

News:

Join the Facebook Fan Page.


Telegram Autopost Bot

Started by vbgamer45, April 11, 2020, 05:57:59 AM

Previous topic - Next topic

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

goldenstudios

ok i try now...
but this bot not set "bold" text right?

vbgamer45

It just posts the topic titles so not sure what would be bold?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

goldenstudios


the BOLD does not mark it on telegram,
however I tried the change you said but it doesn't work

vbgamer45

Try changing the parse_mode field to  Markdown

And see if that helps with the bold
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

goldenstudios

Quote from: vbgamer45 on April 17, 2020, 10:25:45 AM
Try changing the parse_mode field to  Markdown

And see if that helps with the bold
where man?

goldenstudios

            $push = array(
'chat_id' => $modSettings['telegram_enable_chat_id'],
'disable_web_page_preview' => 'false',
'parse_mode' => 'HTML',
'text' => $message,
);


i set false but not work the img..
and the BOLD test same... show this
<b>test</b>

vbgamer45

No idea then... try text
and use MarkDown as parse_mode
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

goldenstudios

Quote from: vbgamer45 on April 17, 2020, 11:00:28 AM
No idea then... try text
and use MarkDown as parse_mode
not work...same img

goldenstudios


per hour the only way to get the image sent is to load the url into the message sent to the telegram bot
therefore the code of the mod
because it would take a query first to take the url of the attached img

kpm21


vbgamer45

The posting? It shouldn't matter on that.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kpm21

I used cloudflare.com for https SSL and Telegram Autopost Bot stopped working.

vbgamer45

That should have zero impact. since this software runs server side. Check your forum error logs.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kpm21

2: strlen() expects parameter 1 to be string, array given
     index.php?board=135;action=post2
     Sources/telegram2.php (Line 177)

kpm21

2: strlen() expects parameter 1 to be string, array given
     index.php?action=signup2
     Sources/telegram2.php (Line 177)

vbgamer45

Copy this to your sources folder and let me know if this change helped.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kpm21

No. And a very long time server response.
No new errors in the forum logs.

kpm21

No messages in the telegram.

vbgamer45

What happens is the mod trys to use cURL if not installed.
Last attempt is to try fsockopen.

Will see if I can do another way
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: