Moodle Plugins directory: telegram_forum | Moodle.org
telegram_forum
Many students do not use email anymore. Telegram is an alternative with free bot API. This plugin is based in two elements of Telegram:
- Bot created by the administrator
- Channel created by the teacher
If a teacher installs the block and configures it in a proper way, every new topic of the course in which the block is enabled will be sent to the Telegram Channel configured. This way, the student has an alert in its mobile phone.
We will probably increase the plugin to include other alerts and the selection of them.
------------
Subscription needed
In order to send forum topics to Telegram Channel the administrator of Moodle and the teacher that uses the block in a course need to have an account in telegram and to make some configurations. Following you can learn what you need to do.
- Administrator
The administrator needs to:
- Create a Telegram account for the organization where Moodle is installed or use its own (https://telegram.org or download Telegram APP in cell phone).
- Create a Telegram Bot and take note of its token and its name (https://core.telegram.org/bots, item 6).
- Fill Bot Token and Bot Name when installing de plugin.
- Teacher
The teacher needs to:
- Create a Telegram account (https://telegram.org or download Telegram APP in cell phone).
- Create a Telegram Private Channel.
- Add the bot as an admin of the Private Channel.
- Take note of the channel share link. Just go into your channel and click in the channel name.
- Take note of Channel ID.
- log in web telegram
- Click on the target channel then you will find the url displayed on your browser.
https://web.telegram.org/#/im?p=c1018013852_555990343349619165
For this case, the channel ID would be 1018013852.
It's important to know that channel's IDs are always negative and 13 characters long!
So add -100 to it, making the correct ID -1001018013852.
- Fill Channel ID and Channel Link when enabling block in course.
I want to take screenshots of how we configured. Can I get your email or telegram?
Question: can this bot work with private TG group, not TG channel as described in docs ?
Pls advise about max symbols length for the topic or message and how is it possible to increase it? For example note which is more than 15000 symbols length fail to forward to telegram
Natasia, I will have to take a look.
I tested the plugin on Moodle 4.1 but when configuring the block I got this error message: "Exception: Class "block_telegram_forum\privacy\block_edit_form" not found".
I managed to get it working on Moodle 3.9
You are correct. There was an error in edit_form.php. I fixed. Uploading correct code in Moodle.org. Github is already fixed.
Thanks a lot.
Marcelo
Today I just tried the plugin for Moodle 4.2.x and 4.5.2+.
It works for 4.5.2+, but does not work for 4.2.x
I hope you can make it official for 4.5.2+
Thanks a lot for creating this plugin.
Best Wishes
Thanks & Best Wishes