News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Telegram Notifications

Started by Kira_, April 11, 2022, 02:50:09 AM

Previous topic - Next topic

Kira_

Link to the mod

Forwards all outgoing forum mail to the user's telegram.

To use this mod, you need

1. Create a telegram bot.
https://core.telegram.org/bots#6-botfather

2. Register a webhook for your bot.
The easiest way to do this is to write in the browser's address bar
"https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=https://YOUR_FORUM_URL/index.php?action=tg_bot"
а нас
за що?

-Rock Lee-

I'm testing how to further expand the bot I have, this is great to see how it goes... and then I'll tell you how it went.


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

Kira_

It will be interesting to see.
а нас
за що?

nishuFun

i dont get notifications,
i have registered user in tg bot.

any troubleshooting?
smf 2.1.2

Kira_

Try to write any text to the bot in telegram. If he responds with a smiley face, then the bot is configured correctly

The bot redirects or duplicates only those notifications that are sent to your email. Check your notification settings.
а нас
за що?

nishuFun

Quote from: Kira_ on May 05, 2022, 03:34:10 AMTry to write any text to the bot in telegram. If he responds with a smiley face, then the bot is configured correctly

The bot redirects or duplicates only those notifications that are sent to your email. Check your notification settings.

yes, it replies with smiley => :)

ok, i will try to enable all possible emails and check one by one later.
smf 2.1.2

-Rock Lee-

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

Filimonov207

Здравствуйте! Я установил ваш мод Tg notify на свой форум и включил его в настройках форума, настраивал своего тг бота по вашим указаниям, но он почему-то не работает. То есть почему то не интегрирует меня с форумом. В чём может быть проблема, не подскажите? Буду рад если Вы мне поможете в этой ситуации  :смеяться:

-Rock Lee-

Quote from: Filimonov207 on May 09, 2023, 07:28:59 PMЗдравствуйте! Я установил ваш мод Tg notify на свой форум и включил его в настройках форума, настраивал своего тг бота по вашим указаниям, но он почему-то не работает. То есть почему то не интегрирует меня с форумом. В чём может быть проблема, не подскажите? Буду рад если Вы мне поможете в этой ситуации  :смеяться:

Пожалуйста, это англоязычный форум, вы можете обращаться за поддержкой на своем родном языке. В кулуарах проверьте ID бота, это правильно, что-то могло пойти не так и не имея возможности валидировать токен, он не подключается, у меня так и случилось.
Please, this is an English forum, you can seek support in your native language. On the sidelines, check the ID of the bot, this is correct, something could go wrong and not being able to validate the token, it doesn't connect, that's what happened to me.
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Diego Andrés

Author speaks it so generally it's fine.
English is encouraged so others with the same issue/question can find answers.

SMF Tricks - Free & Premium Responsive Themes for SMF.


efimomax

Quote from: Filimonov207 on May 09, 2023, 07:28:59 PMЗдравствуйте! Я установил ваш мод Tg notify на свой форум и включил его в настройках форума, настраивал своего тг бота по вашим указаниям, но он почему-то не работает. То есть почему то не интегрирует меня с форумом. В чём может быть проблема, не подскажите? Буду рад если Вы мне поможете в этой ситуации  :смеяться:

Может потому что обратный вебхук на сайт не на HTTPS? (требование телеграм)
May be because webhook on site not on HTTPS (telegram requirements)
hxxp:api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url= [nonactive]https://YOUR_FORUM_URL/index.php?action=tg_bot

Advertisement: