Telegram Autopost Bot

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

Previous topic - Next topic

kpm21

Maybe cloudflare.com has some settings for the mod to start working?

vbgamer45

No it would not.

Try this one. Added support for SMF's fetch remote file function
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


vbgamer45

Glad to help! Will push the update
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

vbgamer45

1.0.1
!Improvements to handle hosts without cURL uses SMF's fetch web data function before fsockopen

1.0 Initial Release
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

question, is it possible to add the image to the post on telegram? using the "send photo" function and attaching the photo with the description? and add the "bold" character is possible?

vbgamer45

It might be. But I haven't' done much with Telegram other than create this quick autopost.
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


this mod is very useful, but you should customize it to make it to the top, can you see if you can integrate these functions?

vbgamer45

Maybe one day but busy at the moment so not likely.
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


vbgamer45

Nothing. Not working on the mod at this time.
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 June 10, 2020, 08:52:22 PM
Nothing. Not working on the mod at this time.
i see you post new version of telegram bot?

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

Snrj

turkish translate


modu türkçeleştirme sitenizin dil yapısına göre telegram.turkish-utf8.php veya telegram.turkish.php adında dosya oluşturun içine Alttaki kodları yapıştırıp Themes\default\languages klasörüne atın
<?php
/*
Telegram Autopost
Version 1.0
by:vbgamer45
https://www.smfhacks.com

License Information:
Links to https://www.smfhacks.com must remain unless
branding free option is purchased.
*/

$txt['telegram_txt_settings'] = 'Ayarlar';
$txt['telegram_txt_settings_desc'] = 'Telegram Ayarları için ayarlar ve seçenekler';
$txt['telegram_txt_savesettings'] = 'Ayarları Kaydet';
$txt['telegram_admin'] = 'Telegram Botu Otomatik Yayın Ayarları';


$txt['telegram_enable_bot_auth_token'] = 'Telegram Bot Token';
$txt['telegram_enable_bot_auth_token_desc'] = 'Bot Token Nasıl Alınır: <a href="https://core.telegram.org/bots/api#authorizing-your-bot" target="_blank">https://core.telegram.org/bots/api#authorizing-your-bot</a>';
$txt['telegram_enable_chat_id'] = 'Telegram Chat ID';
$txt['telegram_enable_chat_id_desc'] = 'Chat ID Nasıl Alınır: <a href="https://stackoverflow.com/questions/31078710/how-to-obtain-telegram-chat-id-for-a-specific-user" target="_blank">https://stackoverflow.com/questions/31078710/how-to-obtain-telegram-chat-id-for-a-specific-user</a>';


$txt['telegram_guest'] = 'Ziyaretçi';


$txt['telegram_enable_push_registration'] = 'Anlık Kayıt Bildirimlerini Etkinleştir';
$txt['telegram_enable_push_topic'] = 'Anlık Konu Bildirimlerini Etkinleştir';
$txt['telegram_enable_push_post'] = 'Anlık Cevap Bildirimlerini Etkinleştir';
$txt['telegram_boardstopush'] = 'Konu / Cevap Bildirimleri için Bölümler';
$txt['telegram_boardstopush_desc'] = 'İstediğiniz Bölümleri seçmek için shift veya ctrl basılı tutun';
$txt['telegram_dateformat'] = 'Tarih Biçimi';
$txt['telegram_dateformat_desc'] = 'Tarih Biçimleri hakkında daha fazla bilgiye burdan <a href="http://php.net/manual/en/function.date.php" target="_blank">http://php.net/manual/en/function.date.php</a>';
$txt['telegram_msg_reg'] = 'Anlık Kayıt Mesajı';
$txt['telegram_msg_topic'] = 'Anlık Konu Mesajı';
$txt['telegram_msg_post'] = 'Anlık Cevap Mesajı';
$txt['telegram_botname_reg'] = 'Kayıt için Botname';
$txt['telegram_botname_topic'] = 'Konular için Botname';
$txt['telegram_botname_post'] = 'Cevaplar için Botname';


?>


Modifications.turkish-utf8.php veya Modifications.turkish.php ekleyin
$txt['telegram_admin'] = 'Telegram Ayarları';

mod ayar sayfasından mesajları şu şekil düzeltebilirisiniz
yeni kayıt
Yeni Kullanıcı - **(username)** - Kayıt Oldu **(date)**
yeni konu
@(username) Yeni Konu Başlattı *(title)* - (url) Şu Bölümde *(board)*
yeni cevap
@(username) Yeni Mesaj Yazdı *(title)* - (url) Şu Bölümde *(board)*

Matthias

Very nice Mod!  ;)

Is it also possible that the actual message is included, not just the subject.
Quality first

vbgamer45

Would have been changed to do so but could be possible. pass the body instead of subject.
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

Matthias

Maybe, there is a little issue at that mod.

It works only for Boards and Topics with utf8 conform characters. If there is a non utf8 character, it doesn't work.

Error log:
Bad Request: strings must be encoded in UTF-8
400:{"ok":false,"error_code":400,"description":"Bad Request: strings must be encoded in UTF-8"}
Quality first

vbgamer45

What's an example of a non utf8 character? like an emoji?
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

Matthias

Didn't test it with emojis.

But with non utf8 characters like ö- ü - ä
For other languages it's maybe the same ...
Quality first

vbgamer45

Hmm i wonder if utf8_encode before sending it to telegram will help
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: