| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
MatrixBot.Bot.EventsListener.Handlers.ReplyToMedia
Synopsis
- replyToMedia :: (BotM r m, HasBotJobsWriter r) => [BotConfigReplyToMedia] -> RoomId -> Mxid -> EventId -> MRoomMessageClientEventContent -> m ()
Documentation
Arguments
| :: (BotM r m, HasBotJobsWriter r) | |
| => [BotConfigReplyToMedia] | Bot configuration for “react to users” feature |
| -> RoomId | Matrix room where there event was sent to |
| -> Mxid | User ID (who sent the event) |
| -> EventId | Unique identifier of the event |
| -> MRoomMessageClientEventContent | Client content for the event |
| -> m () |
Process m.room.message event and see if there is a need to reply to an event with a message
template.