Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send user fullname when sending messages from moodle. #7

Open
Tehnari opened this issue Aug 18, 2017 · 2 comments
Open

Send user fullname when sending messages from moodle. #7

Tehnari opened this issue Aug 18, 2017 · 2 comments

Comments

@Tehnari
Copy link

Tehnari commented Aug 18, 2017

It will help if with messages from the user to Telegram bot will send user fullname (Ex.: Surname + " "+ Lastname) and then fullmesage.
This can be added/changed on message_output_telegram.php on return value, just before $eventdata->fullmessage.

@mchurchward
Copy link
Collaborator

I think we would need to differentiate between messages sent from notifications (such as assignment submissions) and messages sent from the Moodle message system. Thoughts?

@Tehnari
Copy link
Author

Tehnari commented Aug 23, 2017

One of the way is to put word Message from { user name } ... Ex.:
Message from John Smith: Here we have a very importantn message ... :)
For rest of messages like this:
Message from the moodle system: ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants