O365TeamsSendMessageService
class O365TeamsSendMessageService
This service is used to send messages to users / channels.
Properties
| protected AccountInterface | $currentUser | The current user. |
|
| protected GraphService | $graphService | The o365 graph service. |
|
| protected MessengerInterface | $messenger | The messenger. |
Methods
__construct(MessengerInterface $messenger, GraphService $graphService, AccountProxyInterface $accountProxy)
Constructs an O365TeamsSendMessageService object.
false|string
createOneOnOneChat(string $userPrincipalName)
Create a chat we can use to send the message to.
User|false
getUserDataFromRecipient(string $recipient)
Get the user data of a recipient.
mixed|null
sendMessageToUser(string $recipient, string $message)
Send a message to a single user.
Details
at line 48
__construct(MessengerInterface $messenger, GraphService $graphService, AccountProxyInterface $accountProxy)
Constructs an O365TeamsSendMessageService object.
at line 128
protected false|string
createOneOnOneChat(string $userPrincipalName)
Create a chat we can use to send the message to.
at line 108
User|false
getUserDataFromRecipient(string $recipient)
Get the user data of a recipient.
at line 69
mixed|null
sendMessageToUser(string $recipient, string $message)
Send a message to a single user.