Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- makeIrcMessage :: Text -> Text -> Text -> IrcMessage
- getTgChatId :: IrcMessage -> Text
- getTgMsgId :: IrcMessage -> Text
- tgIrcPrivMsg :: Text -> Text -> Text -> LB ()
- ldebug :: String -> Telegram ()
IRC Messaging
makeIrcMessage :: Text -> Text -> Text -> IrcMessage Source #
IRC communicating model consists of the core and plugins which are sending messages to each other.
Telegram module --- Lambdabot core module ------ Haskell/Telegram module
In order to pass Telegram-related necessary information for responding, we are embedding Telegram metadata into IrcMessage
inside ircMsgPrefix
: "null!n=user@" + chatId + "/" + msgId
getTgChatId :: IrcMessage -> Text Source #
To extract Telegram chatId
from IrcMessage
.
getTgMsgId :: IrcMessage -> Text Source #
To extract Telegram msgId
from IrcMessage
.