Telegram Autopost Bot

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

Previous topic - Next topic

vbgamer45

Link to the mod

Adds support for posting of new topics and messages to Telegram
Also supports posting when a new user registers.

You can customize the messages posted for these actions

Uses either cURL or fsockopen to make the post.
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

-Rock Lee-

I was testing it and it is good, I also have a somewhat more worked bot that complements well with what I already had. Thanks for sharing :D!


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Massl

Very useful, thanks vbgamer45  :)

Dhayzon

Me ganó xD jajaja  yo llo iba  a publicar

pero tengan cuidado te pueden  eliminar  la cuenta no estoy seguro
pero cuando empece a utilizarlo mi cuenta de telegram fue eliminda ojo, el mod que yo había  desarrollado


en cuando a este mod úsenlo es muy bueno  para verificar la actividad de tu foro  a mi me servia  para controlar el spam

4Kstore

Nice job man, thanks for sharing!

¡¡NEW MOD: Sparkles User Names!!!

goldenstudios


hi I installed this mod


https://custom.simplemachines.org/mods/index.php?mod=4254

for the automatic bot but I can't configure it how to set the chat id and the token I can't understand the guide, does anyone know how to do it?

vbgamer45

Did you create the bot yet?  You have to message the BotFather on telegram
Then do /newbot

That will give you the token

The chatID you can get via taking to the getid bot with /start that will reply back with your chat id.
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 he gave me the token code but I did not understand the ideal of the chat where I take it

vbgamer45

Chat id is the room/channel you want to use I believe.
Another way to find it check out https://docs.influxdata.com/kapacitor/v1.5/event_handlers/telegram/  the get telegram chat id page section
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

my token is format this:
numer:letterAndNumer

can't understand where to find the chatid
and how to set it up in the smf mod

I go to my newly created bot and put /start ? because it doesn't give me anything

vbgamer45

token is good you just need the chat id number.
Check my post above on how to find it.
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

i have contact this myidbot
but you say me is i not a bot because i write my account no bot

goldenstudios

ok solved with my id
thanks man ;)

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

#14
I noticed, however, that the bot sends messages only to me..how did I force it to send messages in a public group?
when i send message show this:
/getgroupid
This is not a group! Stop fooling me!


goldenstudios

Quote from: goldenstudios on April 17, 2020, 06:25:59 AM
I noticed, however, that the bot sends messages only to me..how did I force it to send messages in a public group?
when i send message show this:
/getgroupid
This is not a group! Stop fooling me!

in the end I solved it :)
but I wanted to ask and is it possible for the mod to also insert a preview image of the links it sends? when do you create a post? maybe attached

vbgamer45

Yes I think it is possible there is a setting you can pass with the API but i i did not build it into the mod.
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


can you tell me how to do it? so I try and if it works it can be implemented

vbgamer45

Open sources/telegram2.php
Find

'disable_web_page_preview' => 'true',

Change to

'disable_web_page_preview' => 'false',
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

set false and when i add attachment in telegram show img?

Advertisement: