Jump to content

Featured Replies

Posted
comment_81

Telegram Notifications

Telegram Notifications application is intended for users to receive instant notifications in Telegram on all Invision Community events: Achievements, Moderation, Mentions & My Content, Followed Content, Messenger, Profile, Newsletter, Event Reminders, File Updates.

You can configure which groups will be able to set up notifications in Telegram for themselves, as well as which types of notifications will be enabled / disabled by default.

Информация

Submitter Kirill Gromov

Submitted 02.09.2023

Category Applications

Просмотр файла

Telegram Notifications

comment_347

Hi, could you give to that add on a litte improvement more? Currently when a topic receive replies the Telegram bot send the chat notification, but all that notifications messages contain the same format and content...that messages don´t provide a insith view which is the content of that notification....Then we just receive the exactly notifications repeatly and can´t see their differences of messages

Could you made it showing the replies messages instead only show the first post of the topic? something similar to the email notification, from that notification we can see what about is the notification... 

  • Author
comment_348
45 minutes ago, kmk said:

Hi, could you give to that add on a litte improvement more? Currently when a topic receive replies the Telegram bot send the chat notification, but all that notifications messages contain the same format and content...that messages don´t provide a insith view which is the content of that notification....Then we just receive the exactly notifications repeatly and can´t see their differences of messages

Could you made it showing the replies messages instead only show the first post of the topic? something similar to the email notification, from that notification we can see what about is the notification... 

Hello. Sure, we are improving it for IPS 5

comment_673

Hello,

I have a problem, the telegram bot didn't send anything to telegram users accounts.

Is there any problem if I use the same bot for Telegram Login Handler application? For example, the login app its works fine.

i made these steps:

  1. I am logged into the forum with my email account.

  2. In ACP>Community>Telegram>Settings, I set up bot name and the API key (its same like Login Handler app), add set up access for certain groups. (no guests)

  3. In ACP>Community>Telegram>Notifications, I enabled all Notifications

  4. In Notifications setting i set up my TG username and saved.

    image.png

Notifications seems activated:

image.png

  1. In Telegram, my bot, i edit settings and i add command /start

  2. image.png

  3. but there is not feedback.

    What did I forget to do?

    Thanks for any tips to help

  • Author
comment_675

Hello. Full instruction:

Creating a bot in Telegram

In the Telegram client, find the BotFather bot and send it the "/start" command, after which the bot will send you all possible commands to communicate with it. To create a new bot, we need the command "/newbot", then follow the further instructions and specify the name. After the bot is created, you will be shown the API in the Use this token to access the HTTP API line: It must be specified in the settings in the Admin center> Community> Telegram> Settings API token of your Telegram bot.

In the Bot name field, enter the name of the bot.

Installing the webhook

For the bot to send notifications, you need to set up a web hook. To do this, compose a URL and navigate to it in your browser:

https://api.telegram.org/bot{BOT_API}/setWebhook?url=https://{SITE_URL}/?app=telegram&module=telegram&controller=telegram
After that, the screen should display approximately the following information:

{"ok": true, "result": true, "description": "Webhook was set"}

Configuring notifications

Notification options are enabled in the app, but not activated for all users at once. Therefore, you can make each notification event not as a suggested option, but enabled by default for all users.

Each user will receive a notification on Telegram if two conditions are met:

Enabled parameter in notification settings (/notifications/options/).
The user's nickname is indicated in "Your nickname in Telegram" on the same page.

comment_677

i made all steps,

the response for webhook was:

{"ok":true,"result":true,"description":"Webhook was set"}

then i saw in System Logs:

image.png

and this:

image.png

but my telegram username is added in notifications settings.

What should I check now?

comment_680
{"ok":true,"result":{"url":"https://mysite/?app=telegram","has_custom_certificate":false,"pending_update_count":6,"last_error_date":1731956602,"last_error_message":"Wrong response from the webhook: 404 Not Found","max_connections":40,"ip_address":"9x.26.41.227"}}
comment_684
3 hours ago, Kirill Gromov said:

Hello. Can you check this url?

https://api.telegram.org/bot{YOURAPIKEY}/getWebhookInfo

somehow still a problem.

i check again the url and its said:

{"ok":true,"result":{"url":"https://mysite/?app=telegram&module=telegram&controller=telegram","has_custom_certificate":false,"pending_update_count":0,"max_connections":40,"ip_address":"9x.26.41.227"}}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.


Guest
Reply to this topic...