Module
TelegramBot
- Package
- purescript-node-telegram-bot-api
- Repository
- justinwoo/purescript-node-telegram-bot-api
#TelegramEffects Source
type TelegramEffects e = (telegram :: TELEGRAM | e)#Message Source
type Message = { chat :: Chat, date :: Int, from :: NullOrUndefined User, location :: NullOrUndefined Location, message_id :: Int, text :: NullOrUndefined String }The Telegram Message type. See https://core.telegram.org/bots/api#message
#User Source
type User = { first_name :: NullOrUndefined String, id :: Int, last_name :: NullOrUndefined String, username :: NullOrUndefined String }The Telegram User type. See https://core.telegram.org/bots/api#user
#Chat Source
type Chat = { first_name :: NullOrUndefined String, id :: Int, last_name :: NullOrUndefined String, type :: String, username :: NullOrUndefined String }The Telegram Chat type. See https://core.telegram.org/bots/api#chat
#Location Source
type Location = { latitude :: Number, longitude :: Number }The Telegram Location type. See https://core.telegram.org/bots/api#location
#Matches Source
type Matches = NullOrUndefined (Array String)The Regex execution matches. See https://github.com/yagop/node-telegram-bot-api#TelegramBot+onText
#_sendMessage Source
_sendMessage :: forall e. Fn3 Bot Int String (Eff (TelegramEffects e) Unit)#sendMessage Source
sendMessage :: forall e. Bot -> Int -> String -> Eff (TelegramEffects e) Unit#_onMessage Source
_onMessage :: forall e. Fn2 Bot (Foreign -> Eff (TelegramEffects e) Unit) (Eff (TelegramEffects e) Unit)#onMessage Source
onMessage :: forall e. Bot -> (F Message -> Eff (TelegramEffects e) Unit) -> (Eff (TelegramEffects e) Unit)For adding a callback for all messages.
#onMessage' Source
onMessage' :: forall e. Bot -> (Foreign -> Eff (TelegramEffects e) Unit) -> (Eff (TelegramEffects e) Unit)For getting the Foreign value directly from onMessage
- Modules
- TelegramBot