lambdabot-telegram-plugins-0.2.0: Lambdabot for Telegram
Safe HaskellNone
LanguageHaskell2010

Lambdabot.Plugin.Telegram.Callback

Synopsis

Documentation

doTGMSG :: IrcMessage -> Telegram () Source #

In order to read messages from a different plugin, it is necessary to set a callback with a known label. This function is a main entry point as a plugin callback.

Since we needed an extended functionality from eval plugin, we used these non-exported functions from corresponding lambdabot-haskell-plugins module.

doTGMSG' Source #

Arguments

:: [String]

Commands.

-> Nick

My name.

-> IrcMessage

IRC Message.

-> Nick

Target name.

-> Telegram () 

doMsg :: IrcMessage -> String -> String -> Nick -> Telegram () Source #

normal commands.

check privledges, do any spell correction, dispatch, handling possible timeouts.